WordPress.org

Make WordPress Core

Ticket #16677: 16677.patch

File 16677.patch, 477 bytes (added by ramiy, 7 years ago)
  • category-template.php

     
    334334                $tab_index_attribute = " tabindex=\"$tab_index\"";
    335335
    336336        $categories = get_terms( $taxonomy, $r );
    337         $name = esc_attr( $name );
     337        $name = ( $taxonomy = 'category' ) ? $taxonomy : esc_attr( $name );
    338338        $class = esc_attr( $class );
    339339        $id = $id ? esc_attr( $id ) : $name;
    340340