WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r10315 r10150  
    549549    global $wp_registered_widgets, $wp_registered_sidebars;
    550550
    551     $sidebars_widgets = get_option('sidebars_widgets', array());
     551    $sidebars_widgets = get_option('sidebars_widgets');
    552552    $_sidebars_widgets = array();
    553553
     
    619619    }
    620620
    621     if ( isset($sidebars_widgets['array_version']) )
    622         unset($sidebars_widgets['array_version']);
     621    unset($sidebars_widgets['array_version']);
    623622
    624623    $sidebars_widgets = apply_filters('sidebars_widgets', $sidebars_widgets);
     
    14001399            <ul id="recentcomments"><?php
    14011400            if ( $comments ) : foreach ( (array) $comments as $comment) :
    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>';
     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>';
    14031402            endforeach; endif;?></ul>
    14041403        <?php echo $after_widget; ?>
     
    20942093
    20952094// This is important
    2096 add_action( 'widgets_init', 'widget_many_register' );
     2095add_action( 'widgets_init', 'widget_many_register' )
    20972096
    20982097*/
Note: See TracChangeset for help on using the changeset viewer.