Skip to content

Commit

Permalink
Fixed non-validating tag cloud links
Browse files Browse the repository at this point in the history
  • Loading branch information
splorp committed Dec 30, 2013
1 parent 7b4228b commit 92589df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ function decruft($c) {

function decruft_tagcloud($c) {
$c_ = preg_replace('/ style=[\"\'].+?[\"\']/','',$c);
return preg_replace('/ title=[\"\']([0-9]+?) topic(s?)[\"\']/','/ title="View \1 post\2"',$c_);
return preg_replace('/ title=[\"\']([0-9]+?) topic(s?)[\"\']/',' title="View \1 post\2"',$c_);
}

add_filter('wp_tag_cloud','decruft_tagcloud');
Expand Down

0 comments on commit 92589df

Please sign in to comment.