Changeset 53102
- Timestamp:
- 04/08/2022 12:01:18 AM (3 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/authorize-application.php
r53101 r53102 162 162 $blogs = get_blogs_of_user( $user->ID, true ); 163 163 $blogs_count = count( $blogs ); 164 164 165 if ( $blogs_count > 1 ) { 165 166 ?> … … 167 168 <?php 168 169 /* translators: 1: URL to my-sites.php, 2: Number of sites the user has. */ 169 $m sg_fmt= _n(170 $message = _n( 170 171 'This will grant access to <a href="%1$s">the %2$s site in this installation that you have permissions on</a>.', 171 172 'This will grant access to <a href="%1$s">all %2$s sites in this installation that you have permissions on</a>.', 172 173 $blogs_count 173 174 ); 175 174 176 if ( is_super_admin() ) { 175 $msg_fmt = _n( 177 /* translators: 1: URL to my-sites.php, 2: Number of sites the user has. */ 178 $message = _n( 176 179 'This will grant access to <a href="%1$s">the %2$s site on the network as you have Super Admin rights</a>.', 177 180 'This will grant access to <a href="%1$s">all %2$s sites on the network as you have Super Admin rights</a>.', … … 179 182 ); 180 183 } 184 181 185 printf( 182 $m sg_fmt,186 $message, 183 187 admin_url( 'my-sites.php' ), 184 188 number_format_i18n( $blogs_count ) -
trunk/src/wp-admin/user-edit.php
r53101 r53102 743 743 $blogs = get_blogs_of_user( $user_id, true ); 744 744 $blogs_count = count( $blogs ); 745 745 746 if ( $blogs_count > 1 ) : 746 747 ?> … … 748 749 <?php 749 750 /* translators: 1: URL to my-sites.php, 2: Number of sites the user has. */ 750 $m sg_fmt= _n(751 $message = _n( 751 752 'Application passwords grant access to <a href="%1$s">the %2$s site in this installation that you have permissions on</a>.', 752 753 'Application passwords grant access to <a href="%1$s">all %2$s sites in this installation that you have permissions on</a>.', 753 754 $blogs_count 754 755 ); 756 755 757 if ( is_super_admin( $user_id ) ) { 756 $msg_fmt = _n( 758 /* translators: 1: URL to my-sites.php, 2: Number of sites the user has. */ 759 $message = _n( 757 760 'Application passwords grant access to <a href="%1$s">the %2$s site on the network as you have Super Admin rights</a>.', 758 761 'Application passwords grant access to <a href="%1$s">all %2$s sites on the network as you have Super Admin rights</a>.', … … 760 763 ); 761 764 } 765 762 766 printf( 763 $m sg_fmt,767 $message, 764 768 admin_url( 'my-sites.php' ), 765 769 number_format_i18n( $blogs_count )
Note: See TracChangeset
for help on using the changeset viewer.