From 5aafa64e340e3f097edab9ba49900754d2b5ebb0 Mon Sep 17 00:00:00 2001 From: nacin Date: Thu, 9 Dec 2010 14:23:54 +0000 Subject: [PATCH] Use correct query var. see #15378. git-svn-id: http://svn.automattic.com/wordpress/trunk@16837 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post.php | 4 ++-- wp-includes/taxonomy.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index 1158692e0c..9cf2ed457b 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -5161,8 +5161,8 @@ function _post_format_link( $link, $term, $taxonomy ) { if ( $wp_rewrite->get_extra_permastruct( $taxonomy ) ) { return str_replace( "/{$term->slug}", '/' . $slugs[ str_replace( 'post-format-', '', $term->slug ) ], $link ); } else { - $link = remove_query_arg( 'format', $link ); - return add_query_arg( 'format', str_replace( 'post-format-', $term->slug ), $link ); + $link = remove_query_arg( 'post_format', $link ); + return add_query_arg( 'post_format', str_replace( 'post-format-', '', $term->slug ), $link ); } } add_filter( 'term_link', '_post_format_link', 10, 3 ); diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index f8a558eee8..339eca2cb2 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -90,7 +90,7 @@ function create_initial_taxonomies() { 'name' => '', 'singular_name' => '', ), - 'query_var' => 'post_format', + 'query_var' => true, 'rewrite' => $rewrite, 'show_ui' => false, '_builtin' => true,