Changeset 45926 for trunk/src/wp-admin/menu.php
- Timestamp:
- 09/01/2019 05:12:43 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/menu.php
r45507 r45926 43 43 $cap = 'update_languages'; 44 44 } 45 /* translators: %s: number of pending updates */ 46 $submenu['index.php'][10] = array( sprintf( __( 'Updates %s' ), "<span class='update-plugins count-{$update_data['counts']['total']}'><span class='update-count'>" . number_format_i18n( $update_data['counts']['total'] ) . '</span></span>' ), $cap, 'update-core.php' ); 45 $submenu['index.php'][10] = array( 46 sprintf( 47 /* translators: %s: number of pending updates */ 48 __( 'Updates %s' ), 49 sprintf( 50 '<span class="update-plugins count-%s"><span class="update-count">%s</span></span>', 51 $update_data['counts']['total'], 52 number_format_i18n( $update_data['counts']['total'] ) 53 ) 54 ), 55 $cap, 56 'update-core.php', 57 ); 47 58 unset( $cap ); 48 59 } … … 79 90 $awaiting_mod = $awaiting_mod->moderated; 80 91 $awaiting_mod_i18n = number_format_i18n( $awaiting_mod ); 81 /* translators: %s: number of comments in moderation*/92 /* translators: %s: number of comments */ 82 93 $awaiting_mod_text = sprintf( _n( '%s Comment in moderation', '%s Comments in moderation', $awaiting_mod ), $awaiting_mod_i18n ); 83 94 84 95 $menu[25] = array( 85 /* translators: %s: number of comments in moderation*/96 /* translators: %s: number of comments */ 86 97 sprintf( __( 'Comments %s' ), '<span class="awaiting-mod count-' . absint( $awaiting_mod ) . '"><span class="pending-count" aria-hidden="true">' . $awaiting_mod_i18n . '</span><span class="comments-in-moderation-text screen-reader-text">' . $awaiting_mod_text . '</span></span>' ), 87 98 'edit_posts', … … 218 229 $update_data = wp_get_update_data(); 219 230 } 220 $count = "<span class='update-plugins count-{$update_data['counts']['plugins']}'><span class='plugin-count'>" . number_format_i18n( $update_data['counts']['plugins'] ) . '</span></span>'; 231 $count = sprintf( 232 '<span class="update-plugins count-%s"><span class="plugin-count">%s</span></span>', 233 $update_data['counts']['plugins'], 234 number_format_i18n( $update_data['counts']['plugins'] ) 235 ); 221 236 } 222 237
Note: See TracChangeset
for help on using the changeset viewer.