fix for not operato
authorSteve Sutton <ssutton@gmail.com>
Sat, 28 May 2016 21:58:49 +0000 (17:58 -0400)
committerSteve Sutton <ssutton@gmail.com>
Sat, 28 May 2016 21:58:49 +0000 (17:58 -0400)
index.php

index 00dee99..9188b49 100644 (file)
--- 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 );