Opened 16 years ago
Closed 16 years ago
#305 closed defect (bug) (fixed)
bp_create_excerpt() is not stripping mu image caption tags
Reported by: | burtadsit | Owned by: | |
---|---|---|---|
Milestone: | Priority: | minor | |
Severity: | Version: | ||
Component: | Keywords: | ||
Cc: |
Description
bp_create_excerpt() is doing a strip tags on 'the content' but that fn is missing image captions:
[caption][/caption]
Found a thread on wordpress.org concerning the same thing.
http://wordpress.org/support/topic/200136?replies=3
It happened to have a handy regex also:
$text = preg_replace( '|\[(.+?)\](.+?\[/\\1\])?|s', '', $text )
What a find. :) Looks like it will work.
Note: See
TracTickets for help on using
tickets.