Opened 18 years ago
Closed 18 years ago
#305 closed defect (bug) (fixed)
bp_create_excerpt() is not stripping mu image caption tags
| Reported by: | burtadsit | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | Version: | ||
| Severity: | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)