Skip to:
Content

BuddyPress.org

Ticket #729: random_member.patch

File random_member.patch, 567 bytes (added by burtadsit, 15 years ago)
  • bp-core-catchuri.php

     
    9393        $bp_unfiltered_uri = $bp_uri;
    9494       
    9595        /* Catch a member page and set the current member ID */
    96         if ( $bp_uri[0] == BP_MEMBERS_SLUG || in_array( 'bp-core-ajax-handler.php', $bp_uri ) ) {
     96        if ( $bp_uri[0] == BP_MEMBERS_SLUG && !isset( $_GET['random'] ) || in_array( 'bp-core-ajax-handler.php', $bp_uri ) ) {
    9797                $is_member_page = true;
    9898                $is_root_component = true;
    9999