From 4143182d6bac45280a0d43dd8973eaf4b2747f91 Mon Sep 17 00:00:00 2001 From: Timothy Jacobs Date: Thu, 22 Oct 2020 02:34:16 +0000 Subject: [PATCH] App Passwords: Explain that apps can access to all sites in a network. Props georgestephanis, spacedmonkey, johnjamesjacoby, SergeyBiryukov, marybaum. Fixes #51489. git-svn-id: https://develop.svn.wordpress.org/trunk@49270 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/authorize-application.php | 24 ++++++++++++++++++++++++ src/wp-admin/user-edit.php | 23 +++++++++++++++++++++++ 2 files changed, 47 insertions(+) diff --git a/src/wp-admin/authorize-application.php b/src/wp-admin/authorize-application.php index cae92ec22a..978dfacec0 100644 --- a/src/wp-admin/authorize-application.php +++ b/src/wp-admin/authorize-application.php @@ -121,6 +121,30 @@ require_once ABSPATH . 'wp-admin/admin-header.php';

+ ID, true ); + if ( count( $blogs ) > 1 ) { + ?> +

+ the %2$s blog in this installation that you have permissions on.', + 'This will grant access to all %2$s blogs in this installation that you have permissions on.', + count( $blogs ) + ), + admin_url( 'my-sites.php' ), + number_format_i18n( count( $blogs ) ) + ); + ?> +

+ +

diff --git a/src/wp-admin/user-edit.php b/src/wp-admin/user-edit.php index 03bfcf2179..deacd1de29 100644 --- a/src/wp-admin/user-edit.php +++ b/src/wp-admin/user-edit.php @@ -715,6 +715,29 @@ endif;

+ 1 ) { + ?> +

+ the %2$s blog in this installation that you have permissions on.', + 'Application passwords grant access to all %2$s blogs in this installation that you have permissions on.', + count( $blogs ) + ), + admin_url( 'my-sites.php' ), + number_format_i18n( count( $blogs ) ) + ); + ?> +

+