diff --git a/wp-includes/class-wp.php b/wp-includes/class-wp.php index 6eb6177c09..9765a01507 100644 --- a/wp-includes/class-wp.php +++ b/wp-includes/class-wp.php @@ -252,7 +252,7 @@ class WP { } } - if ( isset( $this->matched_rule ) ) { + if ( ! empty( $this->matched_rule ) ) { // Trim the query of everything up to the '?'. $query = preg_replace( '!^.+\?!', '', $query ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 4e17590ae1..f97ced49b7 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.0-alpha-52804'; +$wp_version = '6.0-alpha-52805'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.