Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/10/2015 12:24:27 AM (10 years ago)
Author:
johnjamesjacoby
Message:

Replace all references to bp_get_root_domain() . '/' . bp_get_blogs_root_slug() with bp_get_blogs_directory_permalink(), ensuring all usages and filters are applied uniformly. See #4954.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/deprecated/2.1.php

    r9467 r9468  
    144144        if ( bp_blog_signup_enabled() ) {
    145145            echo '<li' . $alt . '>';
    146             echo '<a href="' . bp_get_root_domain() . '/' . bp_get_blogs_root_slug() . '/create/">' . __( 'Create a Site!', 'buddypress' ) . '</a>';
     146            echo '<a href="' . trailingslashit( bp_get_blogs_directory_permalink() . 'create' ) . '">' . __( 'Create a Site!', 'buddypress' ) . '</a>';
    147147            echo '</li>';
    148148        }
     
    350350            <?php if ( is_multisite() && bp_is_active( 'blogs' ) ) : ?>
    351351
    352                 <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>
     352                <li><a href="<?php bp_blogs_directory_permalink(); ?>?random-blog"  rel="nofollow"><?php _e( 'Random Site', 'buddypress' ) ?></a></li>
    353353
    354354            <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.