WordPress.org

Make WordPress Core

Changeset 10789


Ignore:
Timestamp:
03/15/2009 11:18:09 AM (12 years ago)
Author:
azaozz
Message:

Fix php warning in widgets.php, props zeronex, fixes #9330

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/widgets.php

    r10786 r10789  
    13561356 */
    13571357function wp_widget_text_register() {
    1358     if ( !$options = get_option('widget_text') )
     1358    $options = get_option('widget_text');
     1359    if ( !is_array($options) )
    13591360        $options = array();
     1361
    13601362    $widget_ops = array('classname' => 'widget_text', 'description' => __('Arbitrary text or HTML'));
    13611363    $control_ops = array('width' => 400, 'height' => 350, 'id_base' => 'text');
     
    21542156 */
    21552157function wp_widget_rss_register() {
    2156     if ( !$options = get_option('widget_rss') )
     2158    $options = get_option('widget_rss');
     2159    if ( !is_array($options) )
    21572160        $options = array();
     2161
    21582162    $widget_ops = array('classname' => 'widget_rss', 'description' => __( 'Entries from any RSS or Atom feed' ));
    21592163    $control_ops = array('width' => 400, 'height' => 200, 'id_base' => 'rss');
Note: See TracChangeset for help on using the changeset viewer.