diff --git a/wp-includes/taxonomy-functions.php b/wp-includes/taxonomy-functions.php index 035f18b0d4..3d65ba3345 100644 --- a/wp-includes/taxonomy-functions.php +++ b/wp-includes/taxonomy-functions.php @@ -384,7 +384,8 @@ function register_taxonomy( $taxonomy, $object_type, $args = array() ) { return new WP_Error( 'taxonomy_length_invalid', __( 'Taxonomy names must be between 1 and 32 characters in length.' ) ); } - if ( false !== $args['query_var'] && false !== $args['public'] && ! empty( $wp ) ) { + // Non-public taxonomies should not register query vars, except in the admin. + if ( false !== $args['query_var'] && ( is_admin() || false !== $args['public'] ) && ! empty( $wp ) ) { if ( true === $args['query_var'] ) $args['query_var'] = $taxonomy; else diff --git a/wp-includes/version.php b/wp-includes/version.php index 325c8c49ed..f4442e8fab 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-beta4-35679'; +$wp_version = '4.4-beta4-35680'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.