Make WordPress Core

Ticket #46819: 46819.2.diff

File 46819.2.diff, 2.4 KB (added by garrett-eclipse, 6 years ago)

Removed the bubble code from 'Settings'

  • src/wp-admin/menu.php

     
    271271        $submenu['tools.php'][50] = array( __( 'Network Setup' ), 'setup_network', 'network.php' );
    272272}
    273273
    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 /* translators: %s: update notification bubble, if updates are available */
    283 $menu[80]                               = array( sprintf( __( 'Settings %s' ), $change_notice ), 'manage_options', 'options-general.php', '', 'menu-top menu-icon-settings', 'menu-settings', 'dashicons-admin-settings' );
     274$menu[80]                               = array( __( 'Settings' ), 'manage_options', 'options-general.php', '', 'menu-top menu-icon-settings', 'menu-settings', 'dashicons-admin-settings' );
    284275        $submenu['options-general.php'][10] = array( _x( 'General', 'settings screen' ), 'manage_options', 'options-general.php' );
    285276        $submenu['options-general.php'][15] = array( __( 'Writing' ), 'manage_options', 'options-writing.php' );
    286277        $submenu['options-general.php'][20] = array( __( 'Reading' ), 'manage_options', 'options-reading.php' );
    287278        $submenu['options-general.php'][25] = array( __( 'Discussion' ), 'manage_options', 'options-discussion.php' );
    288279        $submenu['options-general.php'][30] = array( __( 'Media' ), 'manage_options', 'options-media.php' );
    289280        $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' );
     281        $submenu['options-general.php'][45] = array( __( 'Privacy' ), 'manage_privacy_options', 'privacy.php' );
    292282
    293283$_wp_last_utility_menu = 80; // The index of the last top-level menu in the utility menu group
    294284