WordPress.org

Make WordPress Core

Ticket #16677: 16677.2

File 16677.2, 478 bytes (added by ramiy, 11 years ago)

changing the = to !=

Line 
1Index: category-template.php
2===================================================================
3--- category-template.php       (revision 17488)
4+++ category-template.php       (working copy)
5@@ -334,7 +334,7 @@
6                $tab_index_attribute = " tabindex=\"$tab_index\"";
7 
8        $categories = get_terms( $taxonomy, $r );
9-       $name = esc_attr( $name );
10+       $name = ( $taxonomy != 'category' ) ? $taxonomy : esc_attr( $name );
11        $class = esc_attr( $class );
12        $id = $id ? esc_attr( $id ) : $name;
13