Commit d71d317 1 parent 7475126 commit d71d317 Copy full SHA for d71d317
File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1931,7 +1931,7 @@ public function get_posts() {
1931
1931
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 ;
1937
1937
}
@@ -2031,10 +2031,11 @@ public function get_posts() {
2031
2031
}
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
}
2040
2041
@@ -3346,7 +3347,7 @@ public function get_posts() {
3346
3347
return $ post_parents ;
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 ) {
3352
3353
$ split_the_query = (
You can’t perform that action at this time.
0 commit comments