Changeset 33824 for trunk/src/wp-includes/default-widgets.php
- Timestamp:
- 08/31/2015 08:30:32 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/default-widgets.php
r33814 r33824 965 965 966 966 /** 967 * @global array $comments968 * @global object $comment969 *970 967 * @param array $args 971 968 * @param array $instance 972 969 */ 973 970 public function widget( $args, $instance ) { 974 global $comments, $comment;975 976 971 $cache = array(); 977 972 if ( ! $this->is_preview() ) { … … 1027 1022 _prime_post_caches( $post_ids, strpos( get_option( 'permalink_structure' ), '%category%' ), false ); 1028 1023 1029 foreach ( (array) $comments as $comment ) {1024 foreach ( (array) $comments as $comment ) { 1030 1025 $output .= '<li class="recentcomments">'; 1031 1026 /* translators: comments widget: 1: comment author, 2: post link */ 1032 1027 $output .= sprintf( _x( '%1$s on %2$s', 'widgets' ), 1033 '<span class="comment-author-link">' . get_comment_author_link( ) . '</span>',1028 '<span class="comment-author-link">' . get_comment_author_link( $comment->comment_ID ) . '</span>', 1034 1029 '<a href="' . esc_url( get_comment_link( $comment->comment_ID ) ) . '">' . get_the_title( $comment->comment_post_ID ) . '</a>' 1035 1030 );
Note: See TracChangeset
for help on using the changeset viewer.