mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
Use correct query var. see #15378.
git-svn-id: https://develop.svn.wordpress.org/trunk@16837 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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 );
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user