Make WordPress Core

Changeset 48692


Ignore:
Timestamp:
07/30/2020 12:26:45 PM (4 years ago)
Author:
SergeyBiryukov
Message:

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

Props ramiy.
Fixes #50812.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php

    r48526 r48692  
    12921292            return new WP_Error(
    12931293                'rest_user_invalid_password',
    1294                 __( 'Passwords cannot contain the "\\" character.' ),
     1294                sprintf(
     1295                    /* translators: %s: The '\' character. */
     1296                    __( 'Passwords cannot contain the "%s" character.' ),
     1297                    '\\'
     1298                ),
    12951299                array( 'status' => 400 )
    12961300            );
Note: See TracChangeset for help on using the changeset viewer.