Changeset 10374 for trunk/src/bp-blogs/bp-blogs-actions.php
- Timestamp:
- 11/23/2015 03:55:00 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-blogs/bp-blogs-actions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-blogs/bp-blogs-actions.php
r10100 r10374 7 7 */ 8 8 9 // Exit if accessed directly 9 // Exit if accessed directly. 10 10 defined( 'ABSPATH' ) || exit; 11 11 … … 17 17 function bp_blogs_redirect_to_random_blog() { 18 18 19 // Bail if not looking for a random blog 19 // Bail if not looking for a random blog. 20 20 if ( ! bp_is_blogs_component() || ! isset( $_GET['random-blog'] ) ) 21 21 return; 22 22 23 // Multisite is active so find a random blog 23 // Multisite is active so find a random blog. 24 24 if ( is_multisite() ) { 25 25 $blog = bp_blogs_get_random_blogs( 1, 1 ); 26 26 bp_core_redirect( get_home_url( $blog['blogs'][0]->blog_id ) ); 27 27 28 // No multisite and still called, always redirect to root 28 // No multisite and still called, always redirect to root. 29 29 } else { 30 30 bp_core_redirect( bp_core_get_root_domain() );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)