Changeset 5684 for trunk/bp-activity/bp-activity-actions.php
- Timestamp:
- 02/09/2012 10:10:47 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/bp-activity/bp-activity-actions.php (modified) (18 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-actions.php
r5664 r5684 115 115 * @param int $activity_id Activity id to be deleted. Defaults to 0. 116 116 * 117 * @global object $bp BuddyPress global settings118 117 * @uses bp_is_activity_component() 119 118 * @uses bp_is_current_action() … … 130 129 */ 131 130 function bp_activity_action_delete_activity( $activity_id = 0 ) { 132 global $bp;133 131 134 132 // Not viewing activity or action is not delete … … 347 345 * @since 1.2.0 348 346 * 349 * @global object $bp BuddyPress global settings350 347 * @uses is_user_logged_in() 351 348 * @uses bp_is_activity_component() … … 361 358 */ 362 359 function bp_activity_action_mark_favorite() { 363 global $bp;364 360 365 361 if ( !is_user_logged_in() || !bp_is_activity_component() || !bp_is_current_action( 'favorite' ) ) … … 383 379 * @since 1.2.0 384 380 * 385 * @global object $bp BuddyPress global settings386 381 * @uses is_user_logged_in() 387 382 * @uses bp_is_activity_component() … … 397 392 */ 398 393 function bp_activity_action_remove_favorite() { 399 global $bp;400 394 401 395 if ( !is_user_logged_in() || ( bp_is_activity_component() ) || !bp_is_current_action( 'unfavorite' ) ) … … 447 441 * @since 1.0.0 448 442 * 449 * @global object $bp BuddyPress global settings450 443 * @global object $wp_query 451 444 * @uses bp_is_user_activity() … … 456 449 */ 457 450 function bp_activity_action_personal_feed() { 458 global $ bp, $wp_query;451 global $wp_query; 459 452 460 453 if ( !bp_is_user_activity() || !bp_is_current_action( 'feed' ) ) … … 474 467 * @since 1.0.0 475 468 * 476 * @global object $bp BuddyPress global settings477 469 * @global object $wp_query 478 470 * @uses bp_is_active() … … 486 478 */ 487 479 function bp_activity_action_friends_feed() { 488 global $ bp, $wp_query;480 global $wp_query; 489 481 490 482 if ( !bp_is_active( 'friends' ) || !bp_is_user_activity() || !bp_is_current_action( bp_get_friends_slug() ) || !bp_is_action_variable( 'feed', 0 ) ) … … 504 496 * @since 1.2.0 505 497 * 506 * @global object $bp BuddyPress global settings507 498 * @global object $wp_query 508 499 * @uses bp_is_active() … … 516 507 */ 517 508 function bp_activity_action_my_groups_feed() { 518 global $ bp, $wp_query;509 global $wp_query; 519 510 520 511 if ( !bp_is_active( 'groups' ) || !bp_is_user_activity() || !bp_is_current_action( bp_get_groups_slug() ) || !bp_is_action_variable( 'feed', 0 ) ) … … 534 525 * @since 1.2.0 535 526 * 536 * @global object $bp BuddyPress global settings537 527 * @global object $wp_query 538 528 * @uses bp_is_user_activity() … … 544 534 */ 545 535 function bp_activity_action_mentions_feed() { 546 global $ bp, $wp_query;536 global $wp_query; 547 537 548 538 if ( !bp_is_user_activity() || !bp_is_current_action( 'mentions' ) || !bp_is_action_variable( 'feed', 0 ) ) … … 562 552 * @since 1.2.0 563 553 * 564 * @global object $bp BuddyPress global settings565 554 * @global object $wp_query 566 555 * @uses bp_is_user_activity() … … 572 561 */ 573 562 function bp_activity_action_favorites_feed() { 574 global $ bp, $wp_query;563 global $wp_query; 575 564 576 565 if ( !bp_is_user_activity() || !bp_is_current_action( 'favorites' ) || !bp_is_action_variable( 'feed', 0 ) ) … … 584 573 } 585 574 add_action( 'bp_actions', 'bp_activity_action_favorites_feed' ); 586 587 575 588 576 /** … … 610 598 $bp->activity->akismet = new BP_Akismet(); 611 599 } 600 612 601 ?>
Note: See TracChangeset
for help on using the changeset viewer.