Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/05/2024 03:40:26 AM (2 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-activity/classes/class-bp-activity-component.php

    r13522 r13689  
    482482        }
    483483
    484         if ( home_url( '/' ) === bp_get_requested_url() && bp_is_directory_homepage( $this->id ) ) {
     484        if ( bp_is_site_home() && bp_is_directory_homepage( $this->id ) ) {
    485485            $query->set( $this->rewrite_ids['directory'], 1 );
    486486        }
Note: See TracChangeset for help on using the changeset viewer.