WordPress.org

Make WordPress Core

Changeset 50947


Ignore:
Timestamp:
05/21/2021 10:48:53 AM (6 months ago)
Author:
SergeyBiryukov
Message:

Text Changes: Improve the wording of some error messages.

Props dartiss, williampatton, johnbillion, SergeyBiryukov.
Fixes #50382.

Location:
trunk/src/wp-includes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/load.php

    r50786 r50947  
    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        );
  • trunk/src/wp-includes/pluggable.php

    r50792 r50947  
    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
     
    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
  • trunk/src/wp-includes/rest-api.php

    r50654 r50947  
    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
Note: See TracChangeset for help on using the changeset viewer.