Changeset 13449 for trunk/src/bp-core/bp-core-template.php
- Timestamp:
- 04/08/2023 06:31:46 AM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-template.php
r13448 r13449 1451 1451 echo esc_url( bp_get_root_url() ); 1452 1452 } 1453 1454 /**1455 * Output the "root domain", the URL of the BP root blog.1456 *1457 * @since 1.1.01458 * @deprecated 12.0.01459 */1460 function bp_root_domain() {1461 _deprecated_function( __FUNCTION__, '12.0.0', 'bp_root_url()' );1462 bp_root_url();1463 }1464 /**1465 * Return the "root domain", the URL of the BP root blog.1466 *1467 * @since 1.1.01468 * @deprecated 12.0.01469 *1470 * @return string URL of the BP root blog.1471 */1472 function bp_get_root_domain() {1473 /*1474 * This function is used at many places and we need to review all this1475 * places during the 12.0 development cycle. Using BP Rewrites means we1476 * cannot concatenate URL chunks to build our URL anymore. We now need1477 * to use `bp_rewrites_get_url( $array )` and make sure to use the right1478 * arguments inside this `$array`.1479 *1480 * @todo Once every link reviewed, we'll be able to remove this check1481 * and let PHPUnit tell us the one we forgot, eventually!1482 */1483 if ( ! buddypress()->is_phpunit_running ) {1484 _deprecated_function( __FUNCTION__, '12.0.0', 'bp_get_root_url()' );1485 }1486 1487 $domain = bp_get_root_url();1488 1489 /**1490 * Filters the "root domain", the URL of the BP root blog.1491 *1492 * @since 1.2.41493 * @deprecated 12.0.0 Use {@see 'bp_get_root_url'} instead.1494 *1495 * @param string $domain URL of the BP root blog.1496 */1497 return apply_filters_deprecated( 'bp_core_get_root_domain', array( $domain ), '12.0.0', 'bp_get_root_url' );1498 }1499 1453 1500 1454 /**
Note: See TracChangeset
for help on using the changeset viewer.