[buddypress-trac] [BuddyPress] #3697: bp_blogs_record_post() not stripping caption shortcode correctly

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Wed Oct 19 17:41:46 UTC 2011


#3697: bp_blogs_record_post() not stripping caption shortcode correctly
--------------------------+--------------------
 Reporter:  boonebgorges  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  1.5.2
Component:  Activity      |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+--------------------

Comment (by boonebgorges):

 OK, I've traced down the problem, but don't have a fix yet.

 In bp_blogs_record_activity(), the activity content is piped through
 bp_activity_thumbnail_content_images(), which strips inline images and
 appends a single inline image, taken from the post, right at the front of
 the activity item. But the method we're using isn't checking for the
 presence of the [caption] shortcode. As a result, the image is
 successfully being pulled out of the shortcode, but the shortcode is being
 left with no content. As a result, the regex in strip_shortcodes() is
 failing (because it requires .+? instead of .*?)

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3697#comment:1>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list