Ticket #46819: 46819.diff
File 46819.diff, 2.0 KB (added by , 6 years ago) |
---|
-
src/wp-admin/menu.php
271 271 $submenu['tools.php'][50] = array( __( 'Network Setup' ), 'setup_network', 'network.php' ); 272 272 } 273 273 274 $change_notice = '';275 if ( current_user_can( 'manage_privacy_options' ) && ! WP_Privacy_Policy_Content::text_change_check() ) {276 $change_notice_number = number_format_i18n( 1 );277 /* translators: %s: number of Privacy Policy update is always 1 */278 $change_notice_text = sprintf( __( '%s Privacy Policy update' ), $change_notice_number );279 $change_notice = '<span class="update-plugins 1"><span class="plugin-count" aria-hidden="true">' . $change_notice_number . '</span><span class="screen-reader-text">' . $change_notice_text . '</span></span>';280 }281 282 274 /* translators: %s: update notification bubble, if updates are available */ 283 275 $menu[80] = array( sprintf( __( 'Settings %s' ), $change_notice ), 'manage_options', 'options-general.php', '', 'menu-top menu-icon-settings', 'menu-settings', 'dashicons-admin-settings' ); 284 276 $submenu['options-general.php'][10] = array( _x( 'General', 'settings screen' ), 'manage_options', 'options-general.php' ); … … 287 279 $submenu['options-general.php'][25] = array( __( 'Discussion' ), 'manage_options', 'options-discussion.php' ); 288 280 $submenu['options-general.php'][30] = array( __( 'Media' ), 'manage_options', 'options-media.php' ); 289 281 $submenu['options-general.php'][40] = array( __( 'Permalinks' ), 'manage_options', 'options-permalink.php' ); 290 /* translators: %s: update notification bubble, if updates are available */ 291 $submenu['options-general.php'][45] = array( sprintf( __( 'Privacy %s' ), $change_notice ), 'manage_privacy_options', 'privacy.php' ); 282 $submenu['options-general.php'][45] = array( __( 'Privacy' ), 'manage_privacy_options', 'privacy.php' ); 292 283 293 284 $_wp_last_utility_menu = 80; // The index of the last top-level menu in the utility menu group 294 285