Make WordPress Core

Ticket #5172: 5172.2.patch

File 5172.2.patch, 1010 bytes (added by Mte90, 10 years ago)

refreshed and changed name of the class to tag-link-position-

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

     
    904904
    905905        // generate the output links array
    906906        foreach ( $tags_data as $key => $tag_data ) {
    907                 $a[] = "<a href='" . esc_url( $tag_data['url'] ) . "' class='" . esc_attr( $tag_data['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>";
     907                $a[] = "<a href='" . esc_url( $tag_data['url'] ) . "' class='" . esc_attr( $tag_data['class'] ) . " tag-link-position-" . count( $a ) . "' 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>";
    908908        }
    909909
    910910        switch ( $args['format'] ) {