Changeset 37655 for trunk/src/wp-includes/comment-template.php
- Timestamp:
- 06/08/2016 04:00:18 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/comment-template.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment-template.php
r37542 r37655 1961 1961 $current_per_page = get_query_var( 'comments_per_page' ); 1962 1962 if ( $r['page'] != $current_cpage || $r['per_page'] != $current_per_page ) { 1963 1964 $comments = get_comments( array( 1963 $comment_args = array( 1965 1964 'post_id' => get_the_ID(), 1966 1965 'orderby' => 'comment_date_gmt', 1967 1966 'order' => 'ASC', 1968 'status' => 'all', 1969 ) ); 1967 'status' => 'approve', 1968 ); 1969 1970 if ( is_user_logged_in() ) { 1971 $comment_args['include_unapproved'] = get_current_user_id(); 1972 } else { 1973 $commenter = wp_get_current_commenter(); 1974 if ( $commenter['comment_author_email'] ) { 1975 $comment_args['include_unapproved'] = $commenter['comment_author_email']; 1976 } 1977 } 1978 1979 $comments = get_comments( $comment_args ); 1970 1980 1971 1981 if ( 'all' != $r['type'] ) {
Note: See TracChangeset
for help on using the changeset viewer.