Skip to:
Content

BuddyPress.org

Changeset 1515 for trunk/bp-core.php


Ignore:
Timestamp:
06/04/2009 11:32:49 PM (17 years ago)
Author:
apeatling
Message:

Fixing random member, group and blog links.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core.php

    r1511 r1515  
    612612        global $bp, $wpdb;
    613613       
    614         if ( $bp->current_component == BP_MEMBERS_SLUG && isset( $_GET['random'] ) ) {
     614        if ( !$bp->current_component && isset( $_GET['random-member'] ) ) {
    615615                $user = BP_Core_User::get_random_users(1);
    616 
     616               
    617617                $ud = get_userdata( $user['users'][0]->user_id );
    618618                bp_core_redirect( $bp->root_domain . '/' . BP_MEMBERS_SLUG . '/' . $ud->user_login );
    619619        }
    620620}
    621 add_action( 'wp', 'bp_core_get_random_member', 6 );
     621add_action( 'wp', 'bp_core_get_random_member' );
    622622
    623623/**
Note: See TracChangeset for help on using the changeset viewer.