From 5214638ff7751f815d1eac655db5eab5783aa51a Mon Sep 17 00:00:00 2001 From: Derek P Sifford Date: Mon, 15 Jan 2018 18:10:47 -0500 Subject: [PATCH] fix php json decoding issue that prevented state from saving. closes #416. --- src/php/class-backend.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/php/class-backend.php b/src/php/class-backend.php index d1a13e8c..c0fee533 100644 --- a/src/php/class-backend.php +++ b/src/php/class-backend.php @@ -160,7 +160,7 @@ public function save_meta( $post_id ) { if ( isset( $_POST['abt-reflist-state'], $_POST['abt_nonce'] ) && wp_verify_nonce( sanitize_key( $_POST['abt_nonce'] ), basename( __FILE__ ) ) ) { - $reflist_state = wp_unslash( $_POST['abt-reflist-state'] ); + $reflist_state = $_POST['abt-reflist-state']; update_post_meta( $post_id, '_abt-reflist-state', $reflist_state ); } // @codingStandardsIgnoreEnd