Changeset 5758 for trunk/bp-activity/bp-activity-template.php
- Timestamp:
- 02/13/2012 05:46:52 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-template.php
r5729 r5758 277 277 278 278 // The default scope should recognize custom slugs 279 if ( array_key_exists( $bp->current_action, (array) $bp->loaded_components ) ) {280 $scope = $bp->loaded_components[ $bp->current_action];279 if ( array_key_exists( bp_current_action(), (array) $bp->loaded_components ) ) { 280 $scope = $bp->loaded_components[bp_current_action()]; 281 281 } 282 282 else … … 1812 1812 * @since 1.2.0 1813 1813 * 1814 * @global object $bp BuddyPress global settings1815 1814 * @uses apply_filters() To call the 'bp_get_activity_permalink_id' hook 1816 1815 * … … 1818 1817 */ 1819 1818 function bp_get_activity_permalink_id() { 1820 global $bp; 1821 1822 return apply_filters( 'bp_get_activity_permalink_id', $bp->current_action ); 1819 return apply_filters( 'bp_get_activity_permalink_id', bp_current_action() ); 1823 1820 } 1824 1821
Note: See TracChangeset
for help on using the changeset viewer.