Skip to:
Content

BuddyPress.org

Opened 3 months ago

Closed 3 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's profile imath Owned by: imath's profile 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)

This ticket was mentioned in PR #192 on buddypress/buddypress by @imath.


3 months ago
#1

  • Keywords has-patch added

Avoid simply removing the last 11 characters of the group description only sending a valid $length parameter to bp_create_excerpt().

Trac ticket: https://buddypress.trac.wordpress.org/ticket/9024

#2 @imath
3 months ago

  • Owner set to imath
  • Resolution set to fixed
  • Status changed from new to closed

In 13645:

BP Nouveau: improve the group's description excerpt inside loops

Make sure the bp_nouveau_get_group_description_excerpt() is using the bp_create_excerpt() the right way sending it a valid $length parameter.

Fixes #9024
Closes https://github.com/buddypress/buddypress/pull/192

Note: See TracTickets for help on using tickets.