Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/05/2024 03:50:01 AM (14 months ago)
Author:
imath
Message:

Make sure a BP directory used as home can be previewed in customizer

Introduce the bp_is_site_home() function to check requested URL is the same than site's home one even into the customizer.

Props vapvarun

Fixes #9056 (branch 12.0)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/12.0/src/bp-groups/classes/class-bp-groups-component.php

    r13525 r13690  
    10651065        }
    10661066
    1067         if ( home_url( '/' ) === bp_get_requested_url() && bp_is_directory_homepage( $this->id ) ) {
     1067        if ( bp_is_site_home() && bp_is_directory_homepage( $this->id ) ) {
    10681068            $query->set( $this->rewrite_ids['directory'], 1 );
    10691069        }
Note: See TracChangeset for help on using the changeset viewer.