WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/26/2009 05:34:06 AM (13 years ago)
Author:
azaozz
Message:

Fix conversion of old widget settings for Recent Posts, see #8441

File:
1 edited

Legend:

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

    r11087 r11088  
    268268    function get_settings() {
    269269        $settings = get_option($this->option_name);
     270       
     271        if ( false === $settings && isset($this->alt_option_name) )
     272            $settings = get_option($this->alt_option_name);
    270273
    271274        if ( !is_array($settings) )
     
    977980        $single = true;
    978981    } else {
    979         if ( isset($settings['number']) )
    980             unset($settings['number']);
    981982        foreach ( array_keys($settings) as $number ) {
     983            if ( 'number' == $number )
     984                continue;
    982985            if ( !is_numeric($number) ) {
    983986                $single = true;
Note: See TracChangeset for help on using the changeset viewer.