Changeset 9468
- Timestamp:
- 02/10/2015 12:24:27 AM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-blogs/bp-blogs-template.php
r9413 r9468 1376 1376 /** 1377 1377 * Output a "Create a Site" link for users viewing their own profiles. 1378 * 1379 * This function is not used by BuddyPress as of 1.2, but is kept here for older 1380 * themes that may still be using it. 1378 1381 */ 1379 1382 function bp_create_blog_link() { 1380 if ( bp_is_my_profile() ) 1381 1382 /** 1383 * Filters "Create a Site" links for users viewing their own profiles. 1384 * 1385 * @since BuddyPress (1.0.0) 1386 * 1387 * @param string $value HTML link for creating a site. 1388 */ 1389 echo apply_filters( 'bp_create_blog_link', '<a href="' . bp_get_root_domain() . '/' . bp_get_blogs_root_slug() . '/create/">' . __( 'Create a Site', 'buddypress' ) . '</a>' ); 1383 1384 // Don't show this link when not on your own profile 1385 if ( ! bp_is_my_profile() ) { 1386 return; 1387 } 1388 1389 /** 1390 * Filters "Create a Site" links for users viewing their own profiles. 1391 * 1392 * @since BuddyPress (1.0.0) 1393 * 1394 * @param string $value HTML link for creating a site. 1395 */ 1396 echo apply_filters( 'bp_create_blog_link', '<a href="' . trailingslashit( bp_get_blogs_directory_permalink() . 'create' ) . '">' . __( 'Create a Site', 'buddypress' ) . '</a>' ); 1390 1397 } 1391 1398 … … 1398 1405 1399 1406 // Don't show these tabs on a user's own profile 1400 if ( bp_is_my_profile() ) 1407 if ( bp_is_my_profile() ) { 1401 1408 return false; 1402 1403 ?> 1409 } ?> 1404 1410 1405 1411 <ul class="content-header-nav"> … … 1471 1477 'link_title' => __( 'Create a Site', 'buddypress' ), 1472 1478 'link_class' => 'blog-create no-ajax', 1473 'link_href' => trailingslashit( bp_get_ root_domain() ) . trailingslashit( bp_get_blogs_root_slug() ) . trailingslashit('create' ),1479 'link_href' => trailingslashit( bp_get_blogs_directory_permalink() . 'create' ), 1474 1480 'wrapper' => false, 1475 1481 'block_self' => false, -
trunk/src/bp-blogs/bp-blogs-widgets.php
r9351 r9468 51 51 52 52 if ( ! empty( $instance['link_title'] ) ) { 53 $title = '<a href="' . trailingslashit( bp_get_root_domain() ) . trailingslashit( bp_get_blogs_root_slug()) . '">' . esc_html( $title ) . '</a>';53 $title = '<a href="' . bp_get_blogs_directory_permalink() . '">' . esc_html( $title ) . '</a>'; 54 54 } 55 55 -
trunk/src/bp-core/deprecated/2.1.php
r9467 r9468 144 144 if ( bp_blog_signup_enabled() ) { 145 145 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>'; 147 147 echo '</li>'; 148 148 } … … 350 350 <?php if ( is_multisite() && bp_is_active( 'blogs' ) ) : ?> 351 351 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> 353 353 354 354 <?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.