Make WordPress Core

Ticket #20106: 20106.diff

File 20106.diff, 586 bytes (added by solarissmoke, 13 years ago)

add esc_url

  • wp-includes/category-template.php

     
    11091109                $link = get_term_link( $term, $taxonomy );
    11101110                if ( is_wp_error( $link ) )
    11111111                        return $link;
    1112                 $term_links[] = '<a href="' . $link . '" rel="tag">' . $term->name . '</a>';
     1112                $term_links[] = '<a href="' . esc_url( $link ) . '" rel="tag">' . $term->name . '</a>';
    11131113        }
    11141114
    11151115        $term_links = apply_filters( "term_links-$taxonomy", $term_links );