WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.7/wp-includes/widgets.php

    r10150 r10315  
    549549    global $wp_registered_widgets, $wp_registered_sidebars;
    550550
    551     $sidebars_widgets = get_option('sidebars_widgets');
     551    $sidebars_widgets = get_option('sidebars_widgets', array());
    552552    $_sidebars_widgets = array();
    553553
     
    619619    }
    620620
    621     unset($sidebars_widgets['array_version']);
     621    if ( isset($sidebars_widgets['array_version']) )
     622        unset($sidebars_widgets['array_version']);
    622623
    623624    $sidebars_widgets = apply_filters('sidebars_widgets', $sidebars_widgets);
     
    13991400            <ul id="recentcomments"><?php
    14001401            if ( $comments ) : foreach ( (array) $comments as $comment) :
    1401             echo  '<li class="recentcomments">' . sprintf(__('%1$s on %2$s'), get_comment_author_link(), '<a href="'. get_comment_link($comment->comment_ID) . '">' . get_the_title($comment->comment_post_ID) . '</a>') . '</li>';
     1402            echo  '<li class="recentcomments">' . sprintf(__('%1$s on %2$s'), get_comment_author_link(), '<a href="' . clean_url( get_comment_link($comment->comment_ID) ) . '">' . get_the_title($comment->comment_post_ID) . '</a>') . '</li>';
    14021403            endforeach; endif;?></ul>
    14031404        <?php echo $after_widget; ?>
     
    20932094
    20942095// This is important
    2095 add_action( 'widgets_init', 'widget_many_register' )
     2096add_action( 'widgets_init', 'widget_many_register' );
    20962097
    20972098*/
Note: See TracChangeset for help on using the changeset viewer.