Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/25/2011 08:58:56 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Rename new 'bp-users' component to 'bp-members' for consistency through-out project.
Core, Messages, and Friends Components now use the BP_Component class.
Split Friends and Messages components into smaller files.
Change references to 'profile' to 'xprofile' through-out project for consistency.
Introduce 'bp_actions' and 'bp_screens' standard hooks to replace the usage of 'wp' through-out project.
Move component loader sequence into bp-core-bootstrap.php,
Move old root_component action into 1.3 deprecated file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-blogs/bp-blogs-actions.php

    r3761 r3917  
    11<?php
    22
     3function bp_blogs_redirect_to_random_blog() {
     4    global $bp, $wpdb;
     5
     6    if ( bp_is_blogs_component() && isset( $_GET['random-blog'] ) ) {
     7        $blog = bp_blogs_get_random_blogs( 1, 1 );
     8
     9        bp_core_redirect( get_site_url( $blog['blogs'][0]->blog_id ) );
     10    }
     11}
     12add_action( 'bp_actions', 'bp_blogs_redirect_to_random_blog' );
     13
    314?>
Note: See TracChangeset for help on using the changeset viewer.