I18N: Use a placeholder instead of the \ character in a translatable string in WP_REST_Users_Controller::check_user_password().

Props ramiy.
Fixes #50812.
Built from https://develop.svn.wordpress.org/trunk@48692


git-svn-id: http://core.svn.wordpress.org/trunk@48454 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-07-30 12:28:06 +00:00
parent 72b87b3d74
commit bb0630caa9
2 changed files with 6 additions and 2 deletions

View File

@ -1291,7 +1291,11 @@ class WP_REST_Users_Controller extends WP_REST_Controller {
if ( false !== strpos( $password, '\\' ) ) {
return new WP_Error(
'rest_user_invalid_password',
__( 'Passwords cannot contain the "\\" character.' ),
sprintf(
/* translators: %s: The '\' character. */
__( 'Passwords cannot contain the "%s" character.' ),
'\\'
),
array( 'status' => 400 )
);
}

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.6-alpha-48689';
$wp_version = '5.6-alpha-48692';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.