We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a05e00e commit abdcb23Copy full SHA for abdcb23
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