Changeset 9471 for trunk/src/bp-activity/bp-activity-actions.php
- Timestamp:
- 02/10/2015 02:49:16 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-activity/bp-activity-actions.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-actions.php
r9384 r9471 36 36 * @since BuddyPress (1.2) 37 37 * 38 * @global object $bp BuddyPress global settings39 38 * @uses bp_is_activity_component() 40 39 * @uses bp_is_current_action() … … 201 200 * @since BuddyPress (1.6) 202 201 * 203 * @global object $bp BuddyPress global settings204 202 * @param int $activity_id Activity id to be deleted. Defaults to 0. 205 203 * @return bool False on failure. 206 204 */ 207 205 function bp_activity_action_spam_activity( $activity_id = 0 ) { 208 global $bp;206 $bp = buddypress(); 209 207 210 208 // Not viewing activity, or action is not spam, or Akismet isn't present … … 507 505 * @since BuddyPress (1.0) 508 506 * 509 * @global object $bp BuddyPress global settings510 507 * @uses bp_is_activity_component() 511 508 * @uses bp_is_current_action() … … 516 513 */ 517 514 function bp_activity_action_sitewide_feed() { 518 global $bp;515 $bp = buddypress(); 519 516 520 517 if ( ! bp_is_activity_component() || ! bp_is_current_action( 'feed' ) || bp_is_user() || ! empty( $bp->groups->current_group ) ) … … 715 712 * 716 713 * @since BuddyPress (1.6) 717 *718 * @global object $bp BuddyPress global settings719 714 */ 720 715 function bp_activity_setup_akismet() { 721 global $bp;716 $bp = buddypress(); 722 717 723 718 // Bail if Akismet is not active
Note: See TracChangeset
for help on using the changeset viewer.