Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/09/2011 10:58:18 PM (14 years ago)
Author:
boonebgorges
Message:

Cleans up use of BP_x_SLUG, replacing with wrapper functions where possible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-template.php

    r4602 r4638  
    222222
    223223function bp_search_form_action() {
    224     global $bp;
    225 
    226     return apply_filters( 'bp_search_form_action', bp_get_root_domain() . '/' . BP_SEARCH_SLUG );
     224    return apply_filters( 'bp_search_form_action', bp_get_root_domain() . '/' . bp_get_search_slug() );
    227225}
    228226
     
    594592}
    595593
     594/**
     595 * Output the search slug
     596 *
     597 * @package BuddyPress
     598 * @since 1.3
     599 *
     600 * @uses bp_get_search_slug()
     601 */
     602function bp_search_slug() {
     603    echo bp_get_search_slug();
     604}
     605    /**
     606     * Return the search slug
     607     *
     608     * @package BuddyPress
     609     * @since 1.3
     610     */
     611    function bp_get_search_slug() {
     612        global $bp;
     613
     614        return apply_filters( 'bp_get_search_slug', BP_SEARCH_SLUG );
     615    }
     616
    596617/** is_() functions to determine the current page *****************************/
    597618
Note: See TracChangeset for help on using the changeset viewer.