mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Verify widget option sanity. Props Viper007Bond. fixes #6578 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@7721 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2d413e83cd
commit
228eab4870
@ -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
Block a user