Make WordPress Core


Ignore:
Timestamp:
05/26/2010 02:42:15 AM (15 years ago)
Author:
ryan
Message:

Strip trailing whitespace

File:
1 edited

Legend:

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

    r14849 r14924  
    625625    function widget( $args, $instance ) {
    626626        global $comments, $comment;
    627        
     627
    628628        $cache = wp_cache_get('widget_recent_comments', 'widget');
    629        
     629
    630630        if ( ! is_array( $cache ) )
    631631            $cache = array();
    632        
     632
    633633        if ( isset( $cache[$args['widget_id']] ) ) {
    634634            echo $cache[$args['widget_id']];
     
    647647        $comments = get_comments( array( 'number' => $number, 'status' => 'approve' ) );
    648648        $output .= $before_widget;
    649         if ( $title ) 
     649        if ( $title )
    650650            $output .= $before_title . $title . $after_title;
    651651
    652652        $output .= '<ul id="recentcomments">';
    653         if ( $comments ) { 
     653        if ( $comments ) {
    654654            foreach ( (array) $comments as $comment) {
    655655                $output .=  '<li class="recentcomments">' . /* translators: comments widget: 1: comment author, 2: post link */ sprintf(_x('%1$s on %2$s', 'widgets'), get_comment_author_link(), '<a href="' . esc_url( get_comment_link($comment->comment_ID) ) . '">' . get_the_title($comment->comment_post_ID) . '</a>') . '</li>';
Note: See TracChangeset for help on using the changeset viewer.