Changeset 59091 for trunk/src/wp-includes/class-wp.php
- Timestamp:
- 09/25/2024 07:35:20 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp.php
r56395 r59091 748 748 749 749 if ( is_singular() ) { 750 $post = isset( $wp_query->post ) ? $wp_query->post : null; 751 $next = '<!--nextpage-->'; 750 $post = isset( $wp_query->post ) ? $wp_query->post : null; 751 $next = '<!--nextpage-->'; 752 $page_qv = is_front_page() ? 'paged' : 'page'; 752 753 753 754 // Check for paged content that exceeds the max number of pages. 754 if ( $post && ! empty( $this->query_vars[ 'page'] ) ) {755 if ( $post && ! empty( $this->query_vars[ $page_qv ] ) ) { 755 756 // Check if content is actually intended to be paged. 756 757 if ( str_contains( $post->post_content, $next ) ) { 757 $page = trim( $this->query_vars[ 'page'], '/' );758 $page = trim( $this->query_vars[ $page_qv ], '/' ); 758 759 $content_found = (int) $page <= ( substr_count( $post->post_content, $next ) + 1 ); 759 760 } else {
Note: See TracChangeset
for help on using the changeset viewer.