Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/12/2011 03:14:14 AM (15 years ago)
Author:
johnjamesjacoby
Message:

Audit the usage of $bp->blogs->slug and $bp->blogs->root_slug. See #3325.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-buddybar.php

    r4650 r4651  
    488488            <?php if ( is_multisite() && bp_is_active( 'blogs' ) ) : ?>
    489489
    490                 <li><a href="<?php echo trailingslashit( bp_get_root_domain() . '/' . $bp->blogs->root_slug ) . '?random-blog' ?>"  rel="nofollow"><?php _e( 'Random Site', 'buddypress' ) ?></a></li>
     490                <li><a href="<?php echo trailingslashit( bp_get_root_domain() . '/' . bp_get_blogs_root_slug() ) . '?random-blog' ?>"  rel="nofollow"><?php _e( 'Random Site', 'buddypress' ) ?></a></li>
    491491
    492492            <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.