Skip to content

Commit

Permalink
Merge pull request #32 from WPUserManager/31-wp-6.0-do_parse_request
Browse files Browse the repository at this point in the history
Manually run query_posts if Cortex is booted
  • Loading branch information
gmazzap committed May 25, 2022
2 parents 4c9cf21 + c33bd59 commit 136c5fd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Cortex.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ public static function boot(RequestInterface $request = null)
$do = $instance->doBoot($wp, $do, $request);
unset($instance);

if ( ! $do ) {
$wp->query_posts();
}

return $do;
} catch (\Exception $e) {
if (defined('WP_DEBUG') && WP_DEBUG) {
Expand Down

0 comments on commit 136c5fd

Please sign in to comment.