Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/23/2015 03:55:00 AM (11 years ago)
Author:
tw2113
Message:

More documentation cleanup for BP-Blogs component.

See #6397.

File:
1 edited

Legend:

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

    r10100 r10374  
    77 */
    88
    9 // Exit if accessed directly
     9// Exit if accessed directly.
    1010defined( 'ABSPATH' ) || exit;
    1111
     
    1717function bp_blogs_redirect_to_random_blog() {
    1818
    19         // Bail if not looking for a random blog
     19        // Bail if not looking for a random blog.
    2020        if ( ! bp_is_blogs_component() || ! isset( $_GET['random-blog'] ) )
    2121                return;
    2222
    23         // Multisite is active so find a random blog
     23        // Multisite is active so find a random blog.
    2424        if ( is_multisite() ) {
    2525                $blog = bp_blogs_get_random_blogs( 1, 1 );
    2626                bp_core_redirect( get_home_url( $blog['blogs'][0]->blog_id ) );
    2727
    28         // No multisite and still called, always redirect to root
     28        // No multisite and still called, always redirect to root.
    2929        } else {
    3030                bp_core_redirect( bp_core_get_root_domain() );
Note: See TracChangeset for help on using the changeset viewer.