Verify widget option sanity. Props Viper007Bond. fixes #6578 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7721 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d5f5f07270
commit
66ad98c078
|
@ -4,7 +4,8 @@
|
|||
function wp_dashboard_setup() {
|
||||
global $wpdb, $wp_dashboard_sidebars;
|
||||
$update = false;
|
||||
if ( !$widget_options = get_option( 'dashboard_widget_options' ) )
|
||||
$widget_options = get_option( 'dashboard_widget_options' )
|
||||
if ( !$widget_options || !is_array($widget_options) )
|
||||
$widget_options = array();
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue