Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/21/2014 10:39:09 PM (11 years ago)
Author:
johnjamesjacoby
Message:

Replace $bp global references in slug functions with buddypress() calls. See #5138. (trunk)

File:
1 edited

Legend:

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

    r7574 r7751  
    2626     * @since BuddyPress (1.5)
    2727     *
    28      * @global object $bp BuddyPress global settings.
    2928     * @uses apply_filters() To call the 'bp_get_activity_slug' hook.
    3029     *
     
    3231     */
    3332    function bp_get_activity_slug() {
    34         global $bp;
    35         return apply_filters( 'bp_get_activity_slug', $bp->activity->slug );
     33        return apply_filters( 'bp_get_activity_slug', buddypress()->activity->slug );
    3634    }
    3735
     
    5149     * @since BuddyPress (1.5)
    5250     *
    53      * @global object $bp BuddyPress global settings.
    5451     * @uses apply_filters() To call the 'bp_get_activity_root_slug' hook.
    5552     *
     
    5754     */
    5855    function bp_get_activity_root_slug() {
    59         global $bp;
    60         return apply_filters( 'bp_get_activity_root_slug', $bp->activity->root_slug );
     56        return apply_filters( 'bp_get_activity_root_slug', buddypress()->activity->root_slug );
    6157    }
    6258
Note: See TracChangeset for help on using the changeset viewer.