Changeset 47760 for trunk/src/wp-includes/class-wp.php
- Timestamp:
- 05/04/2020 10:40:06 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp.php
r47738 r47760 671 671 $content_found = true; 672 672 673 $post = isset( $wp_query->post ) ? $wp_query->post : null;674 675 // Only set X-Pingback for single posts that allow pings.676 if ( is_singular() && $post && pings_open( $post ) && ! headers_sent() ) {677 header( 'X-Pingback: ' . get_bloginfo( 'pingback_url', 'display' ) );678 }679 680 // Check for paged content that exceeds the max number of pages.681 673 if ( is_singular() ) { 674 $post = isset( $wp_query->post ) ? $wp_query->post : null; 675 676 // Only set X-Pingback for single posts that allow pings. 677 if ( $post && pings_open( $post ) && ! headers_sent() ) { 678 header( 'X-Pingback: ' . get_bloginfo( 'pingback_url', 'display' ) ); 679 } 680 681 // Check for paged content that exceeds the max number of pages. 682 682 $next = '<!--nextpage-->'; 683 683 if ( $post && ! empty( $this->query_vars['page'] ) ) { … … 692 692 } 693 693 694 // The posts page does not support the <!--nextpage--> pagination. 695 if ( $wp_query->is_posts_page && ! empty( $this->query_vars['page'] ) ) { 696 $content_found = false; 697 } 698 694 699 if ( $content_found ) { 695 700 $set_404 = false;
Note: See TracChangeset
for help on using the changeset viewer.