Support » Plugin: Better Tag Cloud » Bug on link titles

  • Jej

    (@jej)


    Hi,

    Tag counts are always displayed on links, whatever $inject_count_outside option.

    https://plugins.trac.wordpress.org/browser/nktagcloud/trunk/inc/page.php#L401

    if ( $inject_count_outside == 'Yes' ) {
            $a[] = "<a href='$tag_link' $echo_nofollow class='tag-link-$tag_id nktagcloud-$tagsize_int' title='" . attribute_escape( $topic_count_text_callback( $count ) ) . "'$rel style='font-size: " .  $tagsize . "$unit;'>$tag_name</a>" . nktagcloud_add_counter( $tag, $inject_count ) . $the_separator;
    	}
    	else {
    	        $a[] = "<a href='$tag_link' $echo_nofollow class='tag-link-$tag_id nktagcloud-$tagsize_int' title='" . attribute_escape( $topic_count_text_callback( $count ) ) . "'$rel style='font-size: " .  $tagsize . "$unit;'>$tag_name" . nktagcloud_add_counter( $tag, $inject_count ) ."</a>" . $the_separator;
    	}

    should be

    if ( $inject_count_outside == 'Yes' ) {
            $a[] = "<a href='$tag_link' $echo_nofollow class='tag-link-$tag_id nktagcloud-$tagsize_int' title='" . attribute_escape( $topic_count_text_callback( $count ) ) . "'$rel style='font-size: " .  $tagsize . "$unit;'>$tag_name</a>" . nktagcloud_add_counter( $tag, $inject_count ) . $the_separator;
    	}
    	else {
    	        $a[] = "<a href='$tag_link' $echo_nofollow class='tag-link-$tag_id nktagcloud-$tagsize_int' $rel style='font-size: " .  $tagsize . "$unit;'>$tag_name" . nktagcloud_add_counter( $tag, $inject_count ) ."</a>" . $the_separator;
    	}

    Hope it helps.

    • This topic was modified 2 years ago by Jej.
    • This topic was modified 2 years ago by Jej.
  • The topic ‘Bug on link titles’ is closed to new replies.