diff --git src/wp-includes/comment-template.php src/wp-includes/comment-template.php
index 49dc188..39cabb1 100644
|
|
function wp_comment_form_unfiltered_html_nonce() { |
1242 | 1242 | * @global int $user_ID |
1243 | 1243 | * @global string $user_identity |
1244 | 1244 | * @global bool $overridden_cpage |
1245 | | * @global bool $withcomments |
| 1245 | * @global bool $withcomments |
1246 | 1246 | * |
1247 | 1247 | * @param string $file Optional. The file to load. Default '/comments.php'. |
1248 | 1248 | * @param bool $separate_comments Optional. Whether to separate the comments by comment type. |
… |
… |
function wp_list_comments( $args = array(), $comments = null ) { |
1928 | 1928 | * If 'page' or 'per_page' has been passed, and does not match what's in $wp_query, |
1929 | 1929 | * perform a separate comment query and allow Walker_Comment to paginate. |
1930 | 1930 | */ |
1931 | | if ( is_singular() && ( $r['page'] || $r['per_page'] ) ) { |
| 1931 | if ( $r['page'] || $r['per_page'] ) { |
1932 | 1932 | $current_cpage = get_query_var( 'cpage' ); |
1933 | 1933 | if ( ! $current_cpage ) { |
1934 | 1934 | $current_cpage = 'newest' === get_option( 'default_comments_page' ) ? 1 : $wp_query->max_num_comment_pages; |
… |
… |
function wp_list_comments( $args = array(), $comments = null ) { |
1936 | 1936 | |
1937 | 1937 | $current_per_page = get_query_var( 'comments_per_page' ); |
1938 | 1938 | if ( $r['page'] != $current_cpage || $r['per_page'] != $current_per_page ) { |
| 1939 | |
1939 | 1940 | $comments = get_comments( array( |
1940 | | 'post_id' => get_queried_object_id(), |
| 1941 | 'post_id' => get_the_ID(), |
1941 | 1942 | 'orderby' => 'comment_date_gmt', |
1942 | 1943 | 'order' => 'ASC', |
1943 | 1944 | 'status' => 'all', |