summaryrefslogtreecommitdiff
path: root/src/class-draggable-post-order.php
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2021-03-19 10:14:20 +0100
committerDaniel Weipert <code@drogueronin.de>2021-03-19 10:14:20 +0100
commit1b849eca97ecd2d20e682a0163bf7af1136f344c (patch)
treecae822fd64137534fd6d4da5995b8333413c3b44 /src/class-draggable-post-order.php
parent1394e2014216927475342ddd5159ccd5f630198b (diff)
Fixes nonce verification
Diffstat (limited to 'src/class-draggable-post-order.php')
-rw-r--r--src/class-draggable-post-order.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class-draggable-post-order.php b/src/class-draggable-post-order.php
index 5645092..f793a1d 100644
--- a/src/class-draggable-post-order.php
+++ b/src/class-draggable-post-order.php
@@ -95,7 +95,7 @@ class Draggable_Post_Order {
public static function save_post( $post_id, $post ) {
if (
( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) ||
- ! check_admin_referer( self::$nonce, self::$nonce ) ||
+ ! wp_verify_nonce( self::$nonce, self::$nonce ) ||
( ! isset( $_POST['post_ID'] ) || intval( $_POST['post_ID'] ) !== intval( $post_id ) ) ||
! isset( $_POST[ self::$meta_key ] )
) {