diff -r be944660c56a -r 3d72ae0968f4 wp/wp-admin/authorize-application.php --- a/wp/wp-admin/authorize-application.php Wed Sep 21 18:19:35 2022 +0200 +++ b/wp/wp-admin/authorize-application.php Tue Sep 27 16:37:53 2022 +0200 @@ -62,6 +62,7 @@ } } +// Used in the HTML title tag. $title = __( 'Authorize Application' ); $app_name = ! empty( $_REQUEST['app_name'] ) ? $_REQUEST['app_name'] : ''; @@ -90,7 +91,7 @@ if ( wp_is_site_protected_by_basic_auth( 'front' ) ) { wp_die( - __( 'Your website appears to use Basic Authentication, which is not currently compatible with Application Passwords.' ), + __( 'Your website appears to use Basic Authentication, which is not currently compatible with application passwords.' ), __( 'Cannot Authorize Application' ), array( 'response' => 501, @@ -147,30 +148,42 @@ ' . esc_html( $app_name ) . '' ); ?>
- + ID, true ); $blogs_count = count( $blogs ); + if ( $blogs_count > 1 ) { ?>the %2$s site in this installation that you have permissions on.', + 'This will grant access to all %2$s sites in this installation that you have permissions on.', + $blogs_count + ); + + if ( is_super_admin() ) { /* translators: 1: URL to my-sites.php, 2: Number of sites the user has. */ - _n( - 'This will grant access to the %2$s site in this installation that you have permissions on.', - 'This will grant access to all %2$s sites in this installation that you have permissions on.', + $message = _n( + 'This will grant access to the %2$s site on the network as you have Super Admin rights.', + 'This will grant access to all %2$s sites on the network as you have Super Admin rights.', $blogs_count - ), + ); + } + + printf( + $message, admin_url( 'my-sites.php' ), number_format_i18n( $blogs_count ) ); @@ -224,7 +237,7 @@
' . esc_html(
add_query_arg(
array(
'site_url' => site_url(),
@@ -271,7 +284,7 @@
),
$success_url
)
- ) . '
'
+ ) . ''
);
} else {
_e( 'You will be given a password to manually enter into the application in question.' );
@@ -281,7 +294,7 @@
' . esc_html( $reject_url ) . ''
+ '' . esc_html( $reject_url ) . '
'
);
} else {
_e( 'You will be returned to the WordPress Dashboard, and no changes will be made.' );