| | 818 | $tags_data[] = array( |
| | 819 | 'id' => $tag_id, |
| | 820 | 'url' => '#' != $tag->link ? esc_url( $tag->link ) : '#', |
| | 821 | 'name' => $tag->name, |
| | 822 | 'slug' => $tag->slug, |
| | 823 | 'real_count' => $real_counts[ $key ], |
| | 824 | 'class' => 'tag-link-' . $tag_id, |
| | 825 | 'font_size' => $args['smallest'] + ( $count - $min_count ) * $font_step, |
| | 826 | ); |
| | 827 | } |
| | 828 | |
| | 829 | /** |
| | 830 | * Filter the data used to generate the tag cloud. |
| | 831 | * |
| | 832 | * @see wp_generate_tag_cloud() |
| | 833 | * |
| | 834 | * @param array $tags An array of term data for each term used in the tag cloud. |
| | 835 | */ |
| | 836 | $tags_data = apply_filters( 'wp_generate_tag_cloud_data', $tags_data ); |
| | 837 | |
| | 838 | $a = array(); |
| | 839 | |
| | 840 | // generate the output links array |
| | 841 | foreach ( $tags_data as $key => $tag_data ) { |
| | 842 | $tag_link = $tag_data['url']; |
| | 843 | $tag_name = $tag_data['name']; |
| | 844 | $tag_class = $tag_data['class']; |
| | 845 | |
| 826 | | $a[] = "<a href='$tag_link' class='tag-link-$tag_id' title='" . esc_attr( $title_attribute ) . "' style='font-size: " . |
| 827 | | str_replace( ',', '.', ( $args['smallest'] + ( ( $count - $min_count ) * $font_step ) ) ) |
| 828 | | . $args['unit'] . ";'>$tag_name</a>"; |
| | 852 | $a[] = "<a href='" . $tag_data['url'] . "' class='" . $tag_data['class'] . "' title='" . esc_attr( $title_attribute ) . "' style='font-size: " . |
| | 853 | str_replace( ',', '.', $tag_data['font_size'] ) . $args['unit'] . ";'>$tag_name</a>"; |