Changeset 35331 for trunk/src/wp-includes/canonical.php
- Timestamp:
- 10/21/2015 04:25:31 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/canonical.php
r35170 r35331 319 319 } 320 320 321 if ( ( 'newest' == get_option('default_comments_page') && get_query_var('cpage') > 0 ) || ( 'newest' != get_option('default_comments_page') && get_query_var('cpage') > 1 ) ) { 321 if ( get_option( 'page_comments' ) && ( 322 ( 'newest' == get_option( 'default_comments_page' ) && get_query_var( 'cpage' ) > 0 ) || 323 ( 'newest' != get_option( 'default_comments_page' ) && get_query_var( 'cpage' ) > 1 ) 324 ) ) { 322 325 $addl_path = ( !empty( $addl_path ) ? trailingslashit($addl_path) : '' ) . user_trailingslashit( $wp_rewrite->comments_pagination_base . '-' . get_query_var('cpage'), 'commentpaged' ); 323 326 $redirect['query'] = remove_query_arg( 'cpage', $redirect['query'] );
Note: See TracChangeset
for help on using the changeset viewer.