Ticket #26604: dashboard.php.patch
| File dashboard.php.patch, 882 bytes (added by , 12 years ago) |
|---|
-
wp-admin/includes/dashboard.php
18 18 $wp_dashboard_control_callbacks = array(); 19 19 $screen = get_current_screen(); 20 20 21 $update = false;22 $widget_options = get_option( 'dashboard_widget_options' );23 if ( !$widget_options || !is_array($widget_options) )24 $widget_options = array();25 26 21 /* Register Widgets and Controls */ 27 22 28 23 $response = wp_check_browser_version(); … … 83 78 exit; 84 79 } 85 80 86 if ( $update )87 update_option( 'dashboard_widget_options', $widget_options );88 89 81 /** This action is documented in wp-admin/edit-form-advanced.php */ 90 82 do_action('do_meta_boxes', $screen->id, 'normal', ''); 91 83 /** This action is documented in wp-admin/edit-form-advanced.php */