Skip to:

Opened 15 years ago

Closed 15 years ago

#305 closed defect (bug) (fixed)

bp_create_excerpt() is not stripping mu image caption tags

Reported by: burtadsit's profile burtadsit Owned by:
Milestone: Priority: minor
Severity: Version:
Component: Keywords:


bp_create_excerpt() is doing a strip tags on 'the content' but that fn is missing image captions:


Found a thread on concerning the same thing.

It happened to have a handy regex also:

$text = preg_replace( '|\[(.+?)\](.+?\[/\\1\])?|s', '', $text )

What a find. :) Looks like it will work.

Change History (1)

#1 @apeatling
15 years ago

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.