Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Plugins & Atahualpa (http://forum.bytesforall.com/forumdisplay.php?f=16)
-   -   bfa_wp_trim_exercpt breaking plugins? (http://forum.bytesforall.com/showthread.php?t=21275)

foschizzle Dec 15, 2013 02:37 PM

bfa_wp_trim_exercpt breaking plugins?
 
It seems like a lot of plugins rely on injecting javascript into the_excerpt() - two I ran into switching to Atahualpa today are Ad Injection and Hupso Share Buttons. It doesn't seem like a filter on the_excerpt or get_the_excerpt is rare. :)

The problem is that the Javascript injected is chewed up by having the script tags removed, so you end up with an excerpt displaying xml-escaped javascript.

I was able to work around this by adding script, ins, and a couple of other tags to the dont_strip_excerpts list, but this seems like a hack that may/will easily break in the future.

Is there another way to fix this? Perhaps one that doesn't require maintenance?

Thanks!


All times are GMT -6. The time now is 04:55 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.