WordPress.org

Make WordPress Core

Ticket #19338: hide-entire-welcome-panel.diff

File hide-entire-welcome-panel.diff, 451 bytes (added by duck_, 2 years ago)
  • wp-admin/includes/dashboard.php

     
    12741274        if ( ! current_user_can( 'edit_theme_options' ) ) 
    12751275                return; 
    12761276 
    1277         $classes = 'welcome-panel'; 
     1277        $classes = 'welcome-panel hide-if-no-js'; 
    12781278 
    12791279        if ( ! get_user_option( 'show_welcome_panel' ) ) 
    12801280                $classes .= ' hidden';