Skip to:
Content

BuddyPress.org

Ticket #7340: 7340.1.diff

File 7340.1.diff, 686 bytes (added by dcavins, 8 years ago)

Use the filtered slug to build the permalink.

  • src/bp-groups/bp-groups-template.php

    diff --git src/bp-groups/bp-groups-template.php src/bp-groups/bp-groups-template.php
    index 04c005e..fae78d2 100644
    function bp_group_permalink( $group = null ) { 
    999999                 * @param string $value Permalink for the current group in the loop.
    10001000                 * @param object $group Group object.
    10011001                 */
    1002                 return apply_filters( 'bp_get_group_permalink', trailingslashit( bp_get_groups_directory_permalink() . $group->slug . '/' ), $group );
     1002                return apply_filters( 'bp_get_group_permalink', trailingslashit( bp_get_groups_directory_permalink() . bp_get_group_slug( $group ) . '/' ), $group );
    10031003        }
    10041004
    10051005/**