Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/20/2023 03:07:17 AM (3 years ago)
Author:
imath
Message:

Do the homepage directory check only when the requested URL is home

Fixes #8939
See #4954
Closes https://github.com/buddypress/buddypress/pull/133

File:
1 edited

Legend:

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

    r13505 r13522  
    461461        $bp = buddypress();
    462462
    463         if ( bp_is_directory_homepage( $this->id ) ) {
     463        if ( home_url( '/' ) === bp_get_requested_url() && bp_is_directory_homepage( $this->id ) ) {
    464464            $query->set( $this->rewrite_ids['directory'], 1 );
    465465        }
Note: See TracChangeset for help on using the changeset viewer.