Changeset 9468 for trunk/src/bp-blogs/bp-blogs-template.php
- Timestamp:
- 02/10/2015 12:24:27 AM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-blogs/bp-blogs-template.php (modified) (3 diffs)
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,
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)