diff --git a/wp-includes/class-wp.php b/wp-includes/class-wp.php index 35ebb06371..23af2fff87 100644 --- a/wp-includes/class-wp.php +++ b/wp-includes/class-wp.php @@ -125,6 +125,7 @@ class WP { * filters and actions that can be used to further manipulate the result. * * @since 2.0.0 + * @since 6.0.0 A return value was added. * * @global WP_Rewrite $wp_rewrite WordPress rewrite component. * @@ -758,13 +759,17 @@ class WP { */ public function main( $query_args = '' ) { $this->init(); + $parsed = $this->parse_request( $query_args ); + $this->send_headers(); + if ( $parsed ) { $this->query_posts(); $this->handle_404(); $this->register_globals(); } + /** * Fires once the WordPress environment has been set up. * diff --git a/wp-includes/version.php b/wp-includes/version.php index 1b0e33d60f..2d73727b63 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.0-alpha-52814'; +$wp_version = '6.0-alpha-52815'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.