Changeset 11048 for trunk/src/bp-core/bp-core-functions.php
- Timestamp:
- 08/31/2016 01:21:12 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-functions.php
r11021 r11048 851 851 * 852 852 * @since 2.4.0 853 * 854 * @param string $component Component name. 853 * @since 2.7.0 The `$component` parameter was made optional, with the current component 854 * as the fallback value. 855 * 856 * @param string $component Optional. Component name. Defaults to current component. 855 857 * @return string|bool Query argument on success. False on failure. 856 858 */ 857 function bp_core_get_component_search_query_arg( $component ) { 859 function bp_core_get_component_search_query_arg( $component = null ) { 860 if ( ! $component ) { 861 $component = bp_current_component(); 862 } 863 858 864 $query_arg = false; 859 865 if ( isset( buddypress()->{$component}->search_query_arg ) ) {
Note: See TracChangeset
for help on using the changeset viewer.