Ticket #16459: 16459.fix-link.diff
File 16459.fix-link.diff, 645 bytes (added by , 14 years ago) |
---|
-
wp-includes/post.php
5176 5176 return str_replace( "/{$term->slug}", '/' . $slugs[ str_replace( 'post-format-', '', $term->slug ) ], $link ); 5177 5177 } else { 5178 5178 $link = remove_query_arg( 'post_format', $link ); 5179 return add_query_arg( 'post_format', str_replace( 'post-format-', '', $term->slug ), $link );5179 return add_query_arg( 'post_format', $slugs[ str_replace( 'post-format-', '', $term->slug ) ], $link ); 5180 5180 } 5181 5181 } 5182 5182 add_filter( 'term_link', '_post_format_link', 10, 3 );