Make WordPress Core


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

Text Changes: Improve the wording of some error messages.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.