Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/05/2024 03:40:26 AM (3 years 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

See #9056 (trunk)
Closes https://github.com/buddypress/buddypress/pull/212

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/classes/class-bp-members-component.php

    r13621 r13689  
    797797                }
    798798
    799                 if ( home_url( '/' ) === bp_get_requested_url() && bp_is_directory_homepage( $this->id ) ) {
     799                if ( bp_is_site_home() && bp_is_directory_homepage( $this->id ) ) {
    800800                        $query->set( $this->rewrite_ids['directory'], 1 );
    801801                }
Note: See TracChangeset for help on using the changeset viewer.