mirror of
git://develop.git.wordpress.org/
synced 2025-04-13 08:32:10 +02:00
Text Changes: Improve the wording of some error messages.
Props dartiss, williampatton, johnbillion, SergeyBiryukov. Fixes #50382. git-svn-id: https://develop.svn.wordpress.org/trunk@50947 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4840a9267e
commit
450df57289
@ -1587,7 +1587,7 @@ function wp_start_scraping_edited_file_errors() {
|
||||
echo wp_json_encode(
|
||||
array(
|
||||
'code' => 'scrape_nonce_failure',
|
||||
'message' => __( 'Scrape nonce check failed. Please try again.' ),
|
||||
'message' => __( 'Scrape key check failed. Please try again.' ),
|
||||
)
|
||||
);
|
||||
echo "###### wp_scraping_result_end:$key ######";
|
||||
|
@ -1176,7 +1176,7 @@ if ( ! function_exists( 'check_admin_referer' ) ) :
|
||||
*/
|
||||
function check_admin_referer( $action = -1, $query_arg = '_wpnonce' ) {
|
||||
if ( -1 === $action ) {
|
||||
_doing_it_wrong( __FUNCTION__, __( 'You should specify a nonce action to be verified by using the first parameter.' ), '3.2.0' );
|
||||
_doing_it_wrong( __FUNCTION__, __( 'You should specify an action to be verified by using the first parameter.' ), '3.2.0' );
|
||||
}
|
||||
|
||||
$adminurl = strtolower( admin_url() );
|
||||
@ -1221,7 +1221,7 @@ if ( ! function_exists( 'check_ajax_referer' ) ) :
|
||||
*/
|
||||
function check_ajax_referer( $action = -1, $query_arg = false, $die = true ) {
|
||||
if ( -1 == $action ) {
|
||||
_doing_it_wrong( __FUNCTION__, __( 'You should specify a nonce action to be verified by using the first parameter.' ), '4.7' );
|
||||
_doing_it_wrong( __FUNCTION__, __( 'You should specify an action to be verified by using the first parameter.' ), '4.7' );
|
||||
}
|
||||
|
||||
$nonce = '';
|
||||
|
@ -1012,7 +1012,7 @@ function rest_cookie_check_errors( $result ) {
|
||||
$result = wp_verify_nonce( $nonce, 'wp_rest' );
|
||||
|
||||
if ( ! $result ) {
|
||||
return new WP_Error( 'rest_cookie_invalid_nonce', __( 'Cookie nonce is invalid' ), array( 'status' => 403 ) );
|
||||
return new WP_Error( 'rest_cookie_invalid_nonce', __( 'Cookie check failed' ), array( 'status' => 403 ) );
|
||||
}
|
||||
|
||||
// Send a refreshed nonce in header.
|
||||
|
Loading…
x
Reference in New Issue
Block a user