[Plugin: Yet Another Related Posts Plugin] post_body_keywords and strip_tags
-
A client of ours is using this plugin on a WP site that has a good deal of embeds (youtube). The post_body_keywords function in keywords.php doesn’t strip_tags and was causing queries like this…
SELECT ID, post_title, post_date, post_content, (MATCH (post_content) AGAINST ('param hl 0xcfcfcf 0xb1b1b1 color1 color2 en embed true center fs v allowfullscreen height 0 1 width object com value'))
Changing
return yarpp_extract_keywords($post->post_content);
to
return yarpp_extract_keywords(strip_tags($post->post_content));
helped reduce mysql usage quite a bit.
thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: Yet Another Related Posts Plugin] post_body_keywords and strip_tags’ is closed to new replies.