Ticket #53234: 53234.2022032000.patch
File 53234.2022032000.patch, 3.1 KB (added by , 3 years ago) |
---|
-
src/wp-admin/authorize-application.php
165 165 ?> 166 166 <p> 167 167 <?php 168 printf( 168 /* translators: 1: URL to my-sites.php, 2: Number of sites the user has. */ 169 $msg_fmt = _n( 170 'This will grant access to <a href="%1$s">the %2$s site in this installation that you have permissions on</a>.', 171 'This will grant access to <a href="%1$s">all %2$s sites in this installation that you have permissions on</a>.', 172 $blogs_count 173 ); 174 if ( is_super_admin() ) { 169 175 /* translators: 1: URL to my-sites.php, 2: Number of sites the user has. */ 170 _n(171 'This will grant access to <a href="%1$s">the %2$s site in this installation that you have permissions on</a>.',172 'This will grant access to <a href="%1$s">all %2$s sites in this installation that you have permissions on</a>.',176 $msg_fmt = _n( 177 'This will grant access to <a href="%1$s">the %2$s site on the network as you have Super Admin rights</a>.', 178 'This will grant access to <a href="%1$s">all %2$s sites on the network as you have Super Admin rights</a>.', 173 179 $blogs_count 174 ), 180 ); 181 } 182 printf( 183 $msg_fmt, 175 184 admin_url( 'my-sites.php' ), 176 185 number_format_i18n( $blogs_count ) 177 186 ); -
src/wp-admin/user-edit.php
746 746 ?> 747 747 <p> 748 748 <?php 749 printf( 749 /* translators: 1: URL to my-sites.php, 2: Number of sites the user has. */ 750 $msg_fmt = _n( 751 'Application passwords grant access to <a href="%1$s">the %2$s site in this installation that you have permissions on</a>.', 752 'Application passwords grant access to <a href="%1$s">all %2$s sites in this installation that you have permissions on</a>.', 753 $blogs_count 754 ); 755 if ( is_super_admin( $user_id ) ) { 750 756 /* translators: 1: URL to my-sites.php, 2: Number of sites the user has. */ 751 _n(752 'Application passwords grant access to <a href="%1$s">the %2$s site in this installation that you have permissions on</a>.',753 'Application passwords grant access to <a href="%1$s">all %2$s sites in this installation that you have permissions on</a>.',757 $msg_fmt = _n( 758 'Application passwords grant access to <a href="%1$s">the %2$s site on the network as you have Super Admin rights</a>.', 759 'Application passwords grant access to <a href="%1$s">all %2$s sites on the network as you have Super Admin rights</a>.', 754 760 $blogs_count 755 ), 761 ); 762 } 763 printf( 764 $msg_fmt, 756 765 admin_url( 'my-sites.php' ), 757 766 number_format_i18n( $blogs_count ) 758 767 );