Skip to:
Content

BuddyPress.org

Ticket #6694: 6694.diff

File 6694.diff, 934 bytes (added by boonebgorges, 9 years ago)
  • src/bp-core/bp-core-catchuri.php

    diff --git src/bp-core/bp-core-catchuri.php src/bp-core/bp-core-catchuri.php
    index ada5bf9..544af90 100644
    function bp_core_set_uri_globals() { 
    270270                                $after_member_slug = $bp_uri[ $uri_offset + 1 ];
    271271                        }
    272272
     273                        /*
     274                         * Filters the portion of the URI immediately following the 'members' slug.
     275                         *
     276                         * @since 2.6.0
     277                         *
     278                         * @param string $after_member_slug The portion of the URI immediately following the members
     279                         *                                  slug (usually 'members').
     280                         */
     281                        $after_member_slug = apply_filters( 'bp_core_set_uri_globals_after_member_slug', $after_member_slug );
     282
    273283                        // Are we viewing a specific user?
    274284                        if ( $after_member_slug ) {
     285
    275286                                // If root profile, we've already queried for the user.
    276287                                if ( $root_profile instanceof WP_User ) {
    277288                                        $bp->displayed_user->id = $root_profile->ID;