Skip to content

Commit 0ab7cf8

Browse files
committed
tag cloud like the rest of the tags
1 parent 84b2098 commit 0ab7cf8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

function-definitions.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,9 +387,10 @@ function multiloquent_add_tag_class($taglinks)
387387
$tags = explode('</a>', $taglinks);
388388
$regex = "#(.*tag-link[-])(.*)(' title.*)#e";
389389
foreach ($tags as $tag) {
390-
$tagn[] = preg_replace($regex, "('$1$2 label tag-'.get_tag($2)->slug.'$3')", $tag);
390+
$tagn[] = preg_replace($regex, "('$1$2 label '.multiloquent_get_random_solid_class(get_tag($2)->slug).'$3')", $tag);
391391
}
392392
$taglinks = implode('</a>', $tagn);
393+
393394
return $taglinks;
394395
}
395396

0 commit comments

Comments
 (0)