WordPress gallery incompatible with Advanced Excerpt
-
The new [gallery] support in WordPress 2.9 is actually incompatible with Advanced Excerpt because it adds <style> tags inline into the post content. The problem is, Advanced Excerpt by default strips <style> tags, so one is left with the contents of the <style> tag (CSS) as plain text.
Ticket #10734 https://core.trac.www.ads-software.com/ticket/10734 mentions this.
A partial workaround is to modify wp-includes/kses.php and add ‘style’ to the list, then check it in Advanced Excerpt’s configuration, so that it doesn’t strip the <style> tags.
Another workaround is to use the plugin mentioned earlier in the ticket: https://www.ads-software.com/extend/plugins/gallery-shortcode-style-to-head/.
I am quite shocked, frankly, that the gallery does something this irresponsible. Entirely not Advanced Excerpt’s fault.
This can be considered semi-fixed, pending the final changes to the gallery.
https://www.ads-software.com/extend/plugins/advanced-excerpt/
- The topic ‘WordPress gallery incompatible with Advanced Excerpt’ is closed to new replies.