Changeset 34494
- Timestamp:
- 09/24/2015 02:19:03 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp.php
r34492 r34494 588 588 */ 589 589 public function handle_404() { 590 global $wp_query , $wp;590 global $wp_query; 591 591 592 592 // If we've already issued a 404, bail. … … 607 607 // check for paged content that exceeds the max number of pages 608 608 $next = '<!--nextpage-->'; 609 if ( $p && false !== strpos( $p->post_content, $next ) && ! empty( $ wp->query_vars['page'] ) ) {610 $page = trim( $ wp->query_vars['page'], '/' );609 if ( $p && false !== strpos( $p->post_content, $next ) && ! empty( $this->query_vars['page'] ) ) { 610 $page = trim( $this->query_vars['page'], '/' ); 611 611 $success = (int) $page <= ( substr_count( $p->post_content, $next ) + 1 ); 612 612 }
Note: See TracChangeset
for help on using the changeset viewer.