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