Skip to:
Content

BuddyPress.org

Ticket #4700: trac4700_bp_groups_desc_excerpt.patch

File trac4700_bp_groups_desc_excerpt.patch, 671 bytes (added by magnus78, 12 years ago)

proposed fix

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

     
    500500        echo bp_get_group_description_excerpt();
    501501}
    502502        function bp_get_group_description_excerpt( $group = false ) {
    503                 global $groups_template;
    504 
    505                 if ( empty( $group ) )
    506                         $group =& $groups_template->group;
    507 
    508                 return apply_filters( 'bp_get_group_description_excerpt', bp_create_excerpt( $group->description ) );
     503                return apply_filters( 'bp_get_group_description_excerpt', bp_create_excerpt( bp_get_group_description() ) );
    509504        }
    510505
    511506