Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
iwillhappy1314 authored Aug 22, 2024
1 parent 5ccfa30 commit 3796e67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dispatcher/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ static function routes(array $url_callbacks, $priority = 5)
foreach ($url_callbacks as $route => $callback) {
if ($wp_query->get(static::query_var_name($route))) {
$wp_query->is_home = false;
$params = null;
$params = [];
preg_match('#' . trim($route, '/') . '#', $_SERVER[ 'REQUEST_URI' ], $params);
$res = call_user_func_array($callback, $params);
if ($res === false) {
Expand Down

0 comments on commit 3796e67

Please sign in to comment.