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

buddypress-trac noreply at wordpress.org
Mon Jun 22 23:42:20 UTC 2015


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

Comment (by boonebgorges):

 `bp_create_excerpt()` rounds down. That is:

 {{{
 bp_create_excerpt( 'foo bar baz', 5, array( 'exact' => true ) );
 // 'foo ba'

 bp_create_excerpt( 'foo bar baz', 5, array( 'exact' => false ) );
 // 'foo'
 }}}

 The one exception is when the first word is so long that it'd result in a
 zero string. See #6254.

 Does that square with what you're seeing?

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


More information about the buddypress-trac mailing list