Remove obsolete code from wp_dashboard_setup().

props kitchin.
fixes #26604.

git-svn-id: https://develop.svn.wordpress.org/trunk@28592 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2014-05-27 15:40:19 +00:00
parent 2f1ad4ddbf
commit 7b133a336f
1 changed files with 0 additions and 8 deletions

View File

@ -18,11 +18,6 @@ function wp_dashboard_setup() {
$wp_dashboard_control_callbacks = array();
$screen = get_current_screen();
$update = false;
$widget_options = get_option( 'dashboard_widget_options' );
if ( !$widget_options || !is_array($widget_options) )
$widget_options = array();
/* Register Widgets and Controls */
$response = wp_check_browser_version();
@ -123,9 +118,6 @@ function wp_dashboard_setup() {
exit;
}
if ( $update )
update_option( 'dashboard_widget_options', $widget_options );
/** This action is documented in wp-admin/edit-form-advanced.php */
do_action( 'do_meta_boxes', $screen->id, 'normal', '' );