mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 17:48:01 +01:00
Remove obsolete code from wp_dashboard_setup().
props kitchin. fixes #26604. Built from https://develop.svn.wordpress.org/trunk@28592 git-svn-id: http://core.svn.wordpress.org/trunk@28417 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e94ee8f08c
commit
d3e6a5ded0
@ -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', '' );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user