Changeset 55988 for trunk/src/wp-includes/class-wp.php
- Timestamp:
- 06/22/2023 02:34:56 PM (3 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp.php
r55703 r55988 275 275 276 276 // If req_uri is empty or if it is a request for ourself, unset error. 277 if ( empty( $requested_path ) || $requested_file == $self || str pos( $_SERVER['PHP_SELF'], 'wp-admin/' ) !== false) {277 if ( empty( $requested_path ) || $requested_file == $self || str_contains( $_SERVER['PHP_SELF'], 'wp-admin/' ) ) { 278 278 unset( $error, $_GET['error'] ); 279 279 280 if ( isset( $perma_query_vars ) && str pos( $_SERVER['PHP_SELF'], 'wp-admin/' ) !== false) {280 if ( isset( $perma_query_vars ) && str_contains( $_SERVER['PHP_SELF'], 'wp-admin/' ) ) { 281 281 unset( $perma_query_vars ); 282 282 } … … 456 456 // We're showing a feed, so WP is indeed the only thing that last changed. 457 457 if ( ! empty( $this->query_vars['withcomments'] ) 458 || false !== strpos( $this->query_vars['feed'], 'comments-' )458 || str_contains( $this->query_vars['feed'], 'comments-' ) 459 459 || ( empty( $this->query_vars['withoutcomments'] ) 460 460 && ( ! empty( $this->query_vars['p'] ) … … 721 721 if ( $post && ! empty( $this->query_vars['page'] ) ) { 722 722 // Check if content is actually intended to be paged. 723 if ( false !== strpos( $post->post_content, $next ) ) {723 if ( str_contains( $post->post_content, $next ) ) { 724 724 $page = trim( $this->query_vars['page'], '/' ); 725 725 $content_found = (int) $page <= ( substr_count( $post->post_content, $next ) + 1 );
Note: See TracChangeset
for help on using the changeset viewer.