Make WordPress Core

Changeset 28592


Ignore:
Timestamp:
05/27/2014 03:40:19 PM (11 years ago)
Author:
SergeyBiryukov
Message:

Remove obsolete code from wp_dashboard_setup().

props kitchin.
fixes #26604.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/dashboard.php

    r28545 r28592  
    1818    $wp_dashboard_control_callbacks = array();
    1919    $screen = get_current_screen();
    20 
    21     $update = false;
    22     $widget_options = get_option( 'dashboard_widget_options' );
    23     if ( !$widget_options || !is_array($widget_options) )
    24         $widget_options = array();
    2520
    2621    /* Register Widgets and Controls */
     
    123118        exit;
    124119    }
    125 
    126     if ( $update )
    127         update_option( 'dashboard_widget_options', $widget_options );
    128120
    129121    /** This action is documented in wp-admin/edit-form-advanced.php */
Note: See TracChangeset for help on using the changeset viewer.