[buddypress-trac] [BuddyPress Trac] #7493: Update bp_group_description_excerpt() to accept a $length param

buddypress-trac noreply at wordpress.org
Sun Apr 2 12:37:01 UTC 2017


#7493: Update bp_group_description_excerpt() to accept a $length param
-------------------------+-------------------------
 Reporter:  hnla         |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  2.9
Component:  Groups       |    Version:
 Severity:  normal       |   Keywords:  needs-patch
-------------------------+-------------------------
 In our group loop template we display  `bp_group_description_excerpt()`
 this function in bp-members-template.php L:1179 accepts one param $group
 and passes off to the get function which calls
 `bp_create_excerpt($group->description)`.

 bp_create_excerpt() takes a $length value though which we can't take
 advantage of.

 Proposed update will add a $length param to the group descr functions.

 I would prefer to change the params to an array to better match other
 similar functions and prevent the nuisance of passing only one var needing
 to be the first ordered, but worry that might be a breaking change for
 existing templates that might be passing params?

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7493>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list