I18N: Add missing translation functions for REST API app login.
Developed in https://github.com/WordPress/wordpress-develop/pull/10578 Follow-up to [49110], [49109]. Props geminorum. See #42790. Fixes #64331. Built from https://develop.svn.wordpress.org/trunk@61368 git-svn-id: http://core.svn.wordpress.org/trunk@60680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '7.0-alpha-61367';
|
||||
$wp_version = '7.0-alpha-61368';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
||||
@@ -1462,10 +1462,10 @@ switch ( $action ) {
|
||||
|
||||
if ( ! empty( $query['app_name'] ) ) {
|
||||
/* translators: 1: Website name, 2: Application name. */
|
||||
$message = sprintf( 'Please log in to %1$s to authorize %2$s to connect to your account.', get_bloginfo( 'name', 'display' ), '<strong>' . esc_html( $query['app_name'] ) . '</strong>' );
|
||||
$message = sprintf( __( 'Please log in to %1$s to authorize %2$s to connect to your account.' ), get_bloginfo( 'name', 'display' ), '<strong>' . esc_html( $query['app_name'] ) . '</strong>' );
|
||||
} else {
|
||||
/* translators: %s: Website name. */
|
||||
$message = sprintf( 'Please log in to %s to proceed with authorization.', get_bloginfo( 'name', 'display' ) );
|
||||
$message = sprintf( __( 'Please log in to %s to proceed with authorization.' ), get_bloginfo( 'name', 'display' ) );
|
||||
}
|
||||
|
||||
$errors->add( 'authorize_application', $message, 'message' );
|
||||
|
||||
Reference in New Issue
Block a user