Changeset 13436 for trunk/src/bp-core/bp-core-template.php
- Timestamp:
- 03/15/2023 08:16:46 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-template.php
r13432 r13436 518 518 */ 519 519 function bp_search_form_action() { 520 $url = bp_rewrites_get_url( 521 array( 522 'component_id' => bp_get_search_slug(), 523 ) 524 ); 520 525 521 526 /** … … 524 529 * @since 1.0.0 525 530 * 526 * @param string $ valueSearch form action url.527 */ 528 return apply_filters( 'bp_search_form_action', trailingslashit( bp_get_root_domain() . '/' . bp_get_search_slug() ));531 * @param string $url Search form action url. 532 */ 533 return apply_filters( 'bp_search_form_action', $url ); 529 534 } 530 535 … … 1397 1402 */ 1398 1403 return apply_filters( 'bp_action_variable', $action_variable, $position ); 1404 } 1405 1406 /** 1407 * Returns the BP root blog's domain name. 1408 * 1409 * @since 12.0.0 1410 * 1411 * @return string The BP root blog's domain name. 1412 */ 1413 function bp_get_domain() { 1414 return wp_parse_url( bp_get_root_url(), PHP_URL_HOST ); 1399 1415 } 1400 1416
Note: See TracChangeset
for help on using the changeset viewer.