WordPress.org

Make WordPress Core

Changeset 7722


Ignore:
Timestamp:
04/17/08 20:14:22 (6 years ago)
Author:
ryan
Message:

Verify widget option sanity. Props Viper007Bond. fixes #6578 for 2.5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/wp-admin/includes/dashboard.php

    r7487 r7722  
    55    global $wpdb, $wp_dashboard_sidebars; 
    66    $update = false; 
    7     if ( !$widget_options = get_option( 'dashboard_widget_options' ) ) 
     7    $widget_options = get_option( 'dashboard_widget_options' ) 
     8    if ( !$widget_options || !is_array($widget_options) ) 
    89        $widget_options = array(); 
    910 
Note: See TracChangeset for help on using the changeset viewer.