Changeset 47727 for trunk/src/wp-includes/class-wp.php
- Timestamp:
- 04/30/2020 12:03:11 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp.php
r47550 r47727 679 679 // Check for paged content that exceeds the max number of pages. 680 680 $next = '<!--nextpage-->'; 681 if ( $p && false !== strpos( $p->post_content, $next ) && ! empty( $this->query_vars['page'] ) ) { 682 $page = trim( $this->query_vars['page'], '/' ); 683 $success = (int) $page <= ( substr_count( $p->post_content, $next ) + 1 ); 681 if ( $p && ! empty( $this->query_vars['page'] ) ) { 682 // Check if content is actually intended to be paged. 683 if ( false !== strpos( $p->post_content, $next ) ) { 684 $page = trim( $this->query_vars['page'], '/' ); 685 $success = (int) $page <= ( substr_count( $p->post_content, $next ) + 1 ); 686 } else { 687 $success = false; 688 } 684 689 } 685 690 }
Note: See TracChangeset
for help on using the changeset viewer.