We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a05e00e + abdcb23 commit 39bab61Copy full SHA for 39bab61
1 file changed
WP_Router.class.php
@@ -221,7 +221,7 @@ protected function identify_route( $query ) {
221
return NULL;
222
}
223
$id = $query->query_vars[self::QUERY_VAR];
224
- if ( !isset($this->routes[$id]) || !is_a($this->routes[$id], 'WP_Route') ) {
+ if ( !isset($this->routes[$id]) || ! $this->routes[$id] instanceof WP_Route ) {
225
226
227
return $id;
0 commit comments