Changeset 59976
- Timestamp:
- 03/12/2025 08:10:29 PM (5 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-query.php
r59937 r59976 1932 1932 // Set a flag if a 'pre_get_posts' hook changed the query vars. 1933 1933 $hash = md5( serialize( $this->query_vars ) ); 1934 if ( $hash != $this->query_vars_hash ) {1934 if ( $hash !== $this->query_vars_hash ) { 1935 1935 $this->query_vars_changed = true; 1936 1936 $this->query_vars_hash = $hash; … … 2032 2032 $q['nopaging'] = false; 2033 2033 } 2034 2034 2035 $q['posts_per_page'] = (int) $q['posts_per_page']; 2035 2036 if ( $q['posts_per_page'] < -1 ) { 2036 2037 $q['posts_per_page'] = abs( $q['posts_per_page'] ); 2037 } elseif ( 0 == $q['posts_per_page'] ) {2038 } elseif ( 0 === $q['posts_per_page'] ) { 2038 2039 $q['posts_per_page'] = 1; 2039 2040 } … … 3347 3348 } 3348 3349 3349 $is_unfiltered_query = $old_request == $this->request && "{$wpdb->posts}.*" === $fields;3350 $is_unfiltered_query = $old_request === $this->request && "{$wpdb->posts}.*" === $fields; 3350 3351 3351 3352 if ( null === $this->posts ) {
Note: See TracChangeset
for help on using the changeset viewer.