WordPress.org

Make WordPress Core

Ticket #50382: 50382.diff

File 50382.diff, 2.1 KB (added by SergeyBiryukov, 8 months ago)
  • src/wp-includes/load.php

     
    15871587                echo wp_json_encode(
    15881588                        array(
    15891589                                'code'    => 'scrape_nonce_failure',
    1590                                 'message' => __( 'Scrape nonce check failed. Please try again.' ),
     1590                                'message' => __( 'Scrape key check failed. Please try again.' ),
    15911591                        )
    15921592                );
    15931593                echo "###### wp_scraping_result_end:$key ######";
  • src/wp-includes/pluggable.php

     
    11761176         */
    11771177        function check_admin_referer( $action = -1, $query_arg = '_wpnonce' ) {
    11781178                if ( -1 === $action ) {
    1179                         _doing_it_wrong( __FUNCTION__, __( 'You should specify a nonce action 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' );
    11801180                }
    11811181
    11821182                $adminurl = strtolower( admin_url() );
     
    12211221         */
    12221222        function check_ajax_referer( $action = -1, $query_arg = false, $die = true ) {
    12231223                if ( -1 == $action ) {
    1224                         _doing_it_wrong( __FUNCTION__, __( 'You should specify a nonce action 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' );
    12251225                }
    12261226
    12271227                $nonce = '';
  • src/wp-includes/rest-api.php

     
    10121012        $result = wp_verify_nonce( $nonce, 'wp_rest' );
    10131013
    10141014        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 ) );
    10161016        }
    10171017
    10181018        // Send a refreshed nonce in header.