Make WordPress Core

Ticket #53642: 53642.patch

File 53642.patch, 674 bytes (added by shailu25, 12 months ago)

Patch Refreshed.

  • src/wp-includes/category-template.php

    diff --git a/src/wp-includes/category-template.php b/src/wp-includes/category-template.php
    index 0525ae792a..449098dd62 100644
    a b function get_the_term_list( $post_id, $taxonomy, $before = '', $sep = '', $after 
    13531353                if ( is_wp_error( $link ) ) {
    13541354                        return $link;
    13551355                }
    1356                 $links[] = '<a href="' . esc_url( $link ) . '" rel="tag">' . $term->name . '</a>';
     1356                $links[] = '<a class="' . esc_attr( sanitize_html_class( $taxonomy ) ) . ' ' . esc_attr( sanitize_html_class( $term->slug ) ) . '" href="' . esc_url( $link ) . '" rel="tag">' . $term->name . '</a>';
    13571357        }
    13581358
    13591359        /**