From bb0630caa994eb3664b0f60cd94dbb39d74bcc38 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 30 Jul 2020 12:28:06 +0000 Subject: [PATCH] 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 --- .../rest-api/endpoints/class-wp-rest-users-controller.php | 6 +++++- wp-includes/version.php | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php index 2320668222..21a4b829a7 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php @@ -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 ) ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 12daa11936..68df00519e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.