Skip to:
Content

BuddyPress.org

Changeset 12119


Ignore:
Timestamp:
05/24/2018 09:01:06 PM (7 years ago)
Author:
imath
Message:

Use the User messages URL path as the Backbone rooter root

This makes sure the Messages UI Backbone routes are found when WordPress is installed in a subdirectory.

See #7865 (trunk)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/includes/messages/functions.php

    r12115 r12119  
    115115            'more' => __( '(and %d others)', 'buddypress' ),
    116116        ),
    117         'rootUrl' => trailingslashit( str_replace( home_url(), '', bp_displayed_user_domain() ) . bp_get_messages_slug() ),
     117        'rootUrl' => parse_url( trailingslashit( bp_displayed_user_domain() . bp_get_messages_slug() ), PHP_URL_PATH ),
    118118    );
    119119
Note: See TracChangeset for help on using the changeset viewer.