WordPress.org

Make WordPress Core

Ticket #21761: 21761.patch

File 21761.patch, 486 bytes (added by SergeyBiryukov, 2 years ago)
  • wp-includes/functions.php

     
    25392539 */ 
    25402540function wp_widgets_add_menu() { 
    25412541        global $submenu; 
     2542 
     2543        if ( ! current_theme_supports( 'widgets' ) ) 
     2544                return; 
     2545 
    25422546        $submenu['themes.php'][7] = array( __( 'Widgets' ), 'edit_theme_options', 'widgets.php' ); 
    25432547        ksort( $submenu['themes.php'], SORT_NUMERIC ); 
    25442548}