Changeset 7751 for trunk/bp-activity/bp-activity-template.php
- Timestamp:
- 01/21/2014 10:39:09 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-template.php
r7574 r7751 26 26 * @since BuddyPress (1.5) 27 27 * 28 * @global object $bp BuddyPress global settings.29 28 * @uses apply_filters() To call the 'bp_get_activity_slug' hook. 30 29 * … … 32 31 */ 33 32 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 ); 36 34 } 37 35 … … 51 49 * @since BuddyPress (1.5) 52 50 * 53 * @global object $bp BuddyPress global settings.54 51 * @uses apply_filters() To call the 'bp_get_activity_root_slug' hook. 55 52 * … … 57 54 */ 58 55 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 ); 61 57 } 62 58
Note: See TracChangeset
for help on using the changeset viewer.