Skip to:
Content

BuddyPress.org

Changeset 2603


Ignore:
Timestamp:
02/05/2010 06:20:14 AM (16 years ago)
Author:
johnjamesjacoby
Message:

Fixes #1815

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-blogs.php

    r2576 r2603  
    658658}
    659659
    660 function bp_blogs_get_random_blog( $limit = null, $page = null ) {
    661     return BP_Blogs_Blog::get_random( $limit, $page );
     660function bp_blogs_get_random_blogs( $limit = null, $page = null ) {
     661    return BP_Blogs_Blog::get( 'random', $limit, $page );
    662662}
    663663
     
    682682
    683683    if ( $bp->current_component == $bp->blogs->slug && isset( $_GET['random-blog'] ) ) {
    684         $blog = bp_blogs_get_random_blog();
     684        $blog = bp_blogs_get_random_blogs( 1, 1 );
    685685
    686686        bp_core_redirect( get_blog_option( $blog['blogs'][0]->blog_id, 'siteurl') );
Note: See TracChangeset for help on using the changeset viewer.