WordPress.org

Make WordPress Core

Ticket #26604: dashboard.php.patch

File dashboard.php.patch, 882 bytes (added by kitchin, 7 years ago)

Remove dead code.

  • wp-admin/includes/dashboard.php

     
    1818        $wp_dashboard_control_callbacks = array();
    1919        $screen = get_current_screen();
    2020
    21         $update = false;
    22         $widget_options = get_option( 'dashboard_widget_options' );
    23         if ( !$widget_options || !is_array($widget_options) )
    24                 $widget_options = array();
    25 
    2621        /* Register Widgets and Controls */
    2722
    2823        $response = wp_check_browser_version();
     
    8378                exit;
    8479        }
    8580
    86         if ( $update )
    87                 update_option( 'dashboard_widget_options', $widget_options );
    88 
    8981        /** This action is documented in wp-admin/edit-form-advanced.php */
    9082        do_action('do_meta_boxes', $screen->id, 'normal', '');
    9183        /** This action is documented in wp-admin/edit-form-advanced.php */