Skip to:
Content

BuddyPress.org

Ticket #5871: 5871.patch

File 5871.patch, 597 bytes (added by imath, 7 years ago)
  • src/bp-core/bp-core-template.php

    diff --git src/bp-core/bp-core-template.php src/bp-core/bp-core-template.php
    index d72f762..c86efdb 100644
    function bp_is_groups_directory() { 
    19261926 * @return bool True if the current page is part of a single group.
    19271927 */
    19281928function bp_is_group() {
    1929         return (bool) ( bp_is_groups_component() && groups_get_current_group() );
     1929        $retval = bp_is_active( 'groups' );
     1930
     1931        if ( ! empty( $retval ) ) {
     1932                $retval = bp_is_groups_component() && groups_get_current_group();
     1933        }
     1934       
     1935        return (bool) $retval;
    19301936}
    19311937
    19321938/**