WordPress.org

Make WordPress Core

Changeset 7721


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

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

File:
1 edited

Legend:

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

    r7487 r7721  
    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.