Ticket #38318: 38318.diff
File 38318.diff, 1.3 KB (added by , 9 years ago) |
---|
-
src/wp-includes/category-template.php
917 917 $tags_data[] = array( 918 918 'id' => $tag_id, 919 919 'url' => '#' != $tag->link ? $tag->link : '#', 920 'role' => '#' != $tag->link ? '' : ' role="button"', 920 921 'name' => $tag->name, 921 922 'title' => $title, 922 923 'slug' => $tag->slug, … … 940 941 // generate the output links array 941 942 foreach ( $tags_data as $key => $tag_data ) { 942 943 $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>"; 944 945 } 945 946 946 947 switch ( $args['format'] ) {