From: Steve Sutton Date: Sat, 28 May 2016 21:58:49 +0000 (-0400) Subject: fix for not operato X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=5558c62799c2ac535ee85fc9cb86fb08411dd6e1;p=WP-Plugins%2Fmichsci-products.git fix for not operato --- 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 );