Ticket #50382: 50382.diff
File 50382.diff, 2.1 KB (added by , 2 years ago) |
---|
-
src/wp-includes/load.php
1587 1587 echo wp_json_encode( 1588 1588 array( 1589 1589 'code' => 'scrape_nonce_failure', 1590 'message' => __( 'Scrape noncecheck failed. Please try again.' ),1590 'message' => __( 'Scrape key check failed. Please try again.' ), 1591 1591 ) 1592 1592 ); 1593 1593 echo "###### wp_scraping_result_end:$key ######"; -
src/wp-includes/pluggable.php
1176 1176 */ 1177 1177 function check_admin_referer( $action = -1, $query_arg = '_wpnonce' ) { 1178 1178 if ( -1 === $action ) { 1179 _doing_it_wrong( __FUNCTION__, __( 'You should specify a nonceaction to be verified by using the first parameter.' ), '3.2.0' );1179 _doing_it_wrong( __FUNCTION__, __( 'You should specify an action to be verified by using the first parameter.' ), '3.2.0' ); 1180 1180 } 1181 1181 1182 1182 $adminurl = strtolower( admin_url() ); … … 1221 1221 */ 1222 1222 function check_ajax_referer( $action = -1, $query_arg = false, $die = true ) { 1223 1223 if ( -1 == $action ) { 1224 _doing_it_wrong( __FUNCTION__, __( 'You should specify a nonceaction to be verified by using the first parameter.' ), '4.7' );1224 _doing_it_wrong( __FUNCTION__, __( 'You should specify an action to be verified by using the first parameter.' ), '4.7' ); 1225 1225 } 1226 1226 1227 1227 $nonce = ''; -
src/wp-includes/rest-api.php
1012 1012 $result = wp_verify_nonce( $nonce, 'wp_rest' ); 1013 1013 1014 1014 if ( ! $result ) { 1015 return new WP_Error( 'rest_cookie_invalid_nonce', __( 'Cookie nonce is invalid' ), array( 'status' => 403 ) );1015 return new WP_Error( 'rest_cookie_invalid_nonce', __( 'Cookie check failed' ), array( 'status' => 403 ) ); 1016 1016 } 1017 1017 1018 1018 // Send a refreshed nonce in header.