Skip to content

Commit

Permalink
Merge pull request #41 from idflood/39/wordpress-6
Browse files Browse the repository at this point in the history
Use parse_request instead of do_parse_request action to fix compatibility with Wordpress 6
  • Loading branch information
jarednova authored Jun 22, 2022
2 parents 2fff0d9 + 098cc17 commit e4a995a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public static function load($template, $tparams = false, $query = false, $status
}

if ($query) {
add_action('do_parse_request', function() use ($query) {
add_action('parse_request', function() use ($query) {
global $wp;
if ( is_callable($query) )
$query = call_user_func($query);
Expand Down

0 comments on commit e4a995a

Please sign in to comment.