From 5558c62799c2ac535ee85fc9cb86fb08411dd6e1 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Sat, 28 May 2016 17:58:49 -0400 Subject: [PATCH] fix for not operato --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 00dee99..9188b49 100644 --- a/index.php +++ b/index.php @@ -176,10 +176,10 @@ function miproduct_related_products() { */ function miproduct_save_meta() { global $post; - if ( ! wp_verify_nonce( $_POST['miproductmeta-meta-noncename'], 'miproductmeta-meta-noncename' ) ) { + if ( !wp_verify_nonce( $_POST['miproductmeta-meta-noncename'], 'miproductmeta-meta-noncename' ) ) { return $post->ID; } - if ( ! current_user_can( 'edit_post', $post->ID ) ) { + if ( !current_user_can( 'edit_post', $post->ID ) ) { return $post->ID; } $features = filter_var( $_POST['miproduct_features'], FILTER_SANITIZE_STRING ); -- 2.17.1