[buddypress-trac] [BuddyPress Trac] #6517: bp_create_excerpt returning mall-formed markup - mb_strlen issues?

buddypress-trac noreply at wordpress.org
Wed Jun 24 20:00:03 UTC 2015

#6517: bp_create_excerpt returning mall-formed markup - mb_strlen issues?
 Reporter:  hnla                     |       Owner:  boonebgorges
     Type:  defect (bug)             |      Status:  reopened
 Priority:  normal                   |   Milestone:  2.3.3
Component:  Component - Core         |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |

Comment (by boonebgorges):

 > Was seeing an issue with block of text posted, (excerpt function running
 with default args) and excerpts returning for just the first word along
 with $ending.

 Yeah. There was an error in [9963] that sorta double-flipped the string.
 (I've gotta look backward from the end of the string to find the last word
 boundary, but I was forgetting to change the direction before truncating.)
 My tests weren't written in a way that accounted properly for this. I
 think this is pretty much danbp's issue - it's not really about accented
 characters, but about the fact that the error only emerged when the string
 contains markup. Anyway, danbp, please have a look if you can.

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6517#comment:29>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list