Skip to:
Content

BuddyPress.org

Ticket #8608: 8608.patch

File 8608.patch, 812 bytes (added by imath, 2 years ago)
  • src/bp-core/bp-core-functions.php

    diff --git src/bp-core/bp-core-functions.php src/bp-core/bp-core-functions.php
    index 73c6a9d27..1ed9cc67f 100644
    add_action( 'bp_core_loaded', 'bp_core_load_buddypress_textdomain' ); 
    24652465 * A JavaScript-free implementation of the search functions in BuddyPress.
    24662466 *
    24672467 * @since 1.0.1
     2468 * @since 10.0.0 Add support for Activity search.
    24682469 *
    24692470 * @param string $slug The slug to redirect to for searching.
    24702471 */
    function bp_core_action_search_site( $slug = '' ) { 
    25002501                                }
    25012502                                break;
    25022503
     2504                        case 'activity':
     2505                                $slug = bp_is_active( 'activity' )  ? bp_get_activity_root_slug()  : '';
     2506                                break;
     2507
    25032508                        case 'blogs':
    25042509                                $slug = bp_is_active( 'blogs' )  ? bp_get_blogs_root_slug()  : '';
    25052510                                break;