diff --git a/wp-includes/class-wp-query.php b/wp-includes/class-wp-query.php index 5027f21cf0..9f1a1b3fb5 100644 --- a/wp-includes/class-wp-query.php +++ b/wp-includes/class-wp-query.php @@ -965,7 +965,7 @@ class WP_Query { } if ( ! ( $this->is_singular || $this->is_archive || $this->is_search || $this->is_feed - || ( defined( 'REST_REQUEST' ) && REST_REQUEST ) + || ( defined( 'REST_REQUEST' ) && REST_REQUEST && $this->is_main_query() ) || $this->is_trackback || $this->is_404 || $this->is_admin || $this->is_robots || $this->is_favicon ) ) { $this->is_home = true; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 9f3a878467..a594ac9b05 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-alpha-48052'; +$wp_version = '5.5-alpha-48053'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.