diff options
author | Daniel Weipert <code@drogueronin.de> | 2021-03-19 10:29:57 +0100 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2021-03-19 10:29:57 +0100 |
commit | 10218cf8b91e8d63ee3176de66b01842fc312e24 (patch) | |
tree | f0378f93f3c123721f895ae55facc57e9f1d15b6 /src | |
parent | c459b2b3565fd849856d046eb9eb9e27d85718c7 (diff) |
Fixes nonce verification correctly
Diffstat (limited to 'src')
-rw-r--r-- | src/class-draggable-post-order.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class-draggable-post-order.php b/src/class-draggable-post-order.php index f793a1d..3ff38ed 100644 --- a/src/class-draggable-post-order.php +++ b/src/class-draggable-post-order.php @@ -95,8 +95,8 @@ class Draggable_Post_Order { public static function save_post( $post_id, $post ) { if ( ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) || - ! wp_verify_nonce( self::$nonce, self::$nonce ) || ( ! isset( $_POST['post_ID'] ) || intval( $_POST['post_ID'] ) !== intval( $post_id ) ) || + ! wp_verify_nonce( $_POST[ self::$nonce ], self::$nonce ) || ! isset( $_POST[ self::$meta_key ] ) ) { return; |