diff --git a/wp-includes/query.php b/wp-includes/query.php index a2b236540e..9460d32450 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -4986,6 +4986,10 @@ class WP_Query { function wp_old_slug_redirect() { global $wp_query, $wp_rewrite; + if ( get_queried_object() ) { + return; + } + if ( '' !== $wp_query->query_vars['name'] ) : global $wpdb; diff --git a/wp-includes/version.php b/wp-includes/version.php index 600881015d..538fe5d009 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4.1-alpha-36118'; +$wp_version = '4.4.1-alpha-36129'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.