Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/07/2024 07:49:15 PM (7 months ago)
Author:
imath
Message:

BP Nouveau: add missing $group parameter to the group excerpt filter

In [13820], escaping the bp_nouveau_group_description_excerpt() function output was made using the bp_get_group_description_excerpt filter. This move was incomplete as this filter accepts 2 parameters (the shrinked description and the Group object) and only the first one was provided.

This change adds the missing parameter and also improves the Nouveau template pack consistency.

Props pawelhalickiotgs

See #9150 (trunk)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/includes/groups/template-tags.php

    r13820 r13854  
    13691369 */
    13701370function bp_nouveau_group_description_excerpt( $group = null, $length = null ) {
     1371    $group = bp_get_group( $group );
     1372
    13711373    // Escaping is made in `bp-groups/bp-groups-filters.php`.
    13721374    // phpcs:ignore WordPress.Security.EscapeOutput
     
    13741376        /** This filter is documented in bp-groups/bp-groups-template.php. */
    13751377        'bp_get_group_description_excerpt',
    1376         bp_nouveau_get_group_description_excerpt( $group, $length )
     1378        bp_nouveau_get_group_description_excerpt( $group, $length ),
     1379        $group
    13771380    );
    13781381}
Note: See TracChangeset for help on using the changeset viewer.