Run wp_kses_decode_entities on atom feed?

Alright there! The do_feed_atom filter should be an action hook where you add the filters: // add our filters when we’re in atom feed context add_action(‘do_feed_atom’, ‘add_decode_feed_entities_filters’, 9); function add_decode_feed_entities_filters() { add_filter(‘the_content_feed’, ‘decode_feed_entities’); add_filter(‘the_excerpt_rss’, ‘decode_feed_entities’); } function decode_feed_entities($content) { return wp_kses_decode_entities($content); } Have a look in wp-includes/default-filters.php from line 162 (in wp3.4.1) for all the … Read more

Display tags that only appear in one category

This loop starts by fetching all posts in given category. then goes through each tag of current post, fetches the posts for each tag, and if all of the posts have 0 or 1 category, prints that category. So, if you have lots of tags, lots of posts, this could be slow-ish. function wa_60126_pl8_artist_list($catname) { … Read more

Incorrect redirect after commenting

Actually, it looks like a problem being caused by the ReCAPTCHA plugin. Have you tried turning that plugin off? CAPTCHAs are generally ineffective for comments anyway. They prevent spam to some degree, but they prevent real-people even more, and are terrible for accessibility. A better way to fight spam is to use plugins that don’t … Read more