There's a ticket for this here:
http://trac.wordpress.org/ticket/6380

I think wp_trim_excerpt() needs to strip <style> and <script> in any case. There was an older ticket about this too.

Aaron Harun wrote:
The strip_tags() in wp_trim_excerpt() strips only the tags and not the
contents of script and style elements. We either need to strip all of
script and style tags [1] before strip_tags is called or not strip
galleries.

The question is, would a user expect to have the gallery removed in a
short post?

Aaron Harun.

[1] With Regex like: <script[^>]*?>.*?</script> and <style[^>]*?>.*?</style>

On Wed, Mar 26, 2008 at 12:59 PM, Aaron <[EMAIL PROTECTED]> wrote:
I am testing 2.5RC2
When using the gallery function in the image upload I am having some
problems with one of my themes that uses the excerpt tag.
When there is a gallery added to a post and the use of the_excerpt()
the following is displayed
"
gallery {
margin: auto;
}
.gallery div {
float: left;
margin-top: 10px;
text-align: center;
width: 33%; }
.gallery img {
border: 2px solid #cfcfcf;
}
"
I have also tried using the_excerpt_reloaded plugin, and I get the
following displayed
"
[gallery]
"

css not displayed but still in error.

Anythoughts?


_______________________________________________
wp-testers mailing list
[email protected]
http://lists.automattic.com/mailman/listinfo/wp-testers

_______________________________________________
wp-testers mailing list
[email protected]
http://lists.automattic.com/mailman/listinfo/wp-testers

_______________________________________________
wp-testers mailing list
[email protected]
http://lists.automattic.com/mailman/listinfo/wp-testers

Reply via email to