diff --git a/wp-includes/rest-api/rest-functions.php b/wp-includes/rest-api/rest-functions.php index ae8f123b53..d0e7cc0f99 100644 --- a/wp-includes/rest-api/rest-functions.php +++ b/wp-includes/rest-api/rest-functions.php @@ -575,8 +575,8 @@ function rest_cookie_check_errors( $result ) { // Determine if there is a nonce. $nonce = null; - if ( isset( $_REQUEST['_wp_rest_nonce'] ) ) { - $nonce = $_REQUEST['_wp_rest_nonce']; + if ( isset( $_REQUEST['_wpnonce'] ) ) { + $nonce = $_REQUEST['_wpnonce']; } elseif ( isset( $_SERVER['HTTP_X_WP_NONCE'] ) ) { $nonce = $_SERVER['HTTP_X_WP_NONCE']; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 473cfc3027..75aa255351 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-35322'; +$wp_version = '4.4-alpha-35323'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.