WordPress.org

Make WordPress Core

Ticket #38318: 38318.diff

File 38318.diff, 1.3 KB (added by afercia, 4 years ago)
  • src/wp-includes/category-template.php

     
    917917                $tags_data[] = array(
    918918                        'id'         => $tag_id,
    919919                        'url'        => '#' != $tag->link ? $tag->link : '#',
     920                        'role'       => '#' != $tag->link ? '' : ' role="button"',
    920921                        'name'       => $tag->name,
    921922                        'title'      => $title,
    922923                        'slug'       => $tag->slug,
     
    940941        // generate the output links array
    941942        foreach ( $tags_data as $key => $tag_data ) {
    942943                $class = $tag_data['class'] . ' tag-link-position-' . ( $key + 1 );
    943                 $a[] = "<a href='" . esc_url( $tag_data['url'] ) . "' class='" . esc_attr( $class ) . "' title='" . esc_attr( $tag_data['title'] ) . "' style='font-size: " . esc_attr( str_replace( ',', '.', $tag_data['font_size'] ) . $args['unit'] ) . ";'>" . esc_html( $tag_data['name'] ) . "</a>";
     944                $a[] = "<a href='" . esc_url( $tag_data['url'] ) . "'" . $tag_data['role'] . " class='" . esc_attr( $class ) . "' title='" . esc_attr( $tag_data['title'] ) . "' style='font-size: " . esc_attr( str_replace( ',', '.', $tag_data['font_size'] ) . $args['unit'] ) . ";'>" . esc_html( $tag_data['name'] ) . "</a>";
    944945        }
    945946
    946947        switch ( $args['format'] ) {