Opened 11 months ago
Closed 11 months ago
#9024 closed defect (bug) (fixed)
BP Nouveau: improve the template tag used to create a group's description excerpt inside loops
Reported by: | imath | Owned by: | imath |
---|---|---|---|
Milestone: | 12.0.0 | Priority: | normal |
Severity: | normal | Version: | 3.0.0 |
Component: | Templates | Keywords: | has-patch |
Cc: |
Description
More than an improvement, It's actually a fix, the bp_nouveau_get_group_description_excerpt()
is sending a Null
value to the $length
parameter of the bp_create_excerpt()
function which ends up removing the last 11 characters of the group's description, no matter the initial length of the group description. If this description is less than 11 characters long, we get this kind of excerpt [...]
and very long descriptions are not really shortened.
Change History (2)
Note: See
TracTickets for help on using
tickets.
Avoid simply removing the last 11 characters of the group description only sending a valid
$length
parameter tobp_create_excerpt()
.Trac ticket: https://buddypress.trac.wordpress.org/ticket/9024