Changeset 9642
- Timestamp:
- 03/24/2015 11:22:50 PM (10 years ago)
- Location:
- trunk/src/bp-activity
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-actions.php
r9471 r9642 34 34 * Catch and route requests for single activity item permalinks. 35 35 * 36 * @since BuddyPress (1.2 )36 * @since BuddyPress (1.2.0) 37 37 * 38 38 * @uses bp_is_activity_component() … … 121 121 * Delete specific activity item and redirect to previous page. 122 122 * 123 * @since BuddyPress (1.1 )123 * @since BuddyPress (1.1.0) 124 124 * 125 125 * @param int $activity_id Activity id to be deleted. Defaults to 0. … … 198 198 * Mark specific activity item as spam and redirect to previous page. 199 199 * 200 * @since BuddyPress (1.6 )200 * @since BuddyPress (1.6.0) 201 201 * 202 202 * @param int $activity_id Activity id to be deleted. Defaults to 0. … … 267 267 * Post user/group activity update. 268 268 * 269 * @since BuddyPress (1.2 )269 * @since BuddyPress (1.2.0) 270 270 * 271 271 * @uses is_user_logged_in() … … 371 371 * Post new activity comment. 372 372 * 373 * @since BuddyPress (1.2 )373 * @since BuddyPress (1.2.0) 374 374 * 375 375 * @uses is_user_logged_in() … … 435 435 * Mark activity as favorite. 436 436 * 437 * @since BuddyPress (1.2 )437 * @since BuddyPress (1.2.0) 438 438 * 439 439 * @uses is_user_logged_in() … … 469 469 * Remove activity from favorites. 470 470 * 471 * @since BuddyPress (1.2 )471 * @since BuddyPress (1.2.0) 472 472 * 473 473 * @uses is_user_logged_in() … … 503 503 * Load the sitewide activity feed. 504 504 * 505 * @since BuddyPress (1.0 )505 * @since BuddyPress (1.0.0) 506 506 * 507 507 * @uses bp_is_activity_component() … … 535 535 * Load a user's personal activity feed. 536 536 * 537 * @since BuddyPress (1.0 )537 * @since BuddyPress (1.0.0) 538 538 * 539 539 * @uses bp_is_user_activity() … … 565 565 * Load a user's friends' activity feed. 566 566 * 567 * @since BuddyPress (1.0 )567 * @since BuddyPress (1.0.0) 568 568 * 569 569 * @uses bp_is_active() … … 598 598 * Load the activity feed for a user's groups. 599 599 * 600 * @since BuddyPress (1.2 )600 * @since BuddyPress (1.2.0) 601 601 * 602 602 * @uses bp_is_active() … … 639 639 * Load a user's @mentions feed. 640 640 * 641 * @since BuddyPress (1.2 )641 * @since BuddyPress (1.2.0) 642 642 * 643 643 * @uses bp_is_user_activity() … … 676 676 * Load a user's favorites feed. 677 677 * 678 * @since BuddyPress (1.2 )678 * @since BuddyPress (1.2.0) 679 679 * 680 680 * @uses bp_is_user_activity() … … 711 711 * Loads Akismet filtering for activity. 712 712 * 713 * @since BuddyPress (1.6 )713 * @since BuddyPress (1.6.0) 714 714 */ 715 715 function bp_activity_setup_akismet() { -
trunk/src/bp-activity/bp-activity-admin.php
r9593 r9642 1022 1022 * List table class for the Activity component admin page. 1023 1023 * 1024 * @since BuddyPress (1.6 )1024 * @since BuddyPress (1.6.0) 1025 1025 */ 1026 1026 class BP_Activity_List_Table extends WP_List_Table { -
trunk/src/bp-activity/bp-activity-akismet.php
r9517 r9642 4 4 * 5 5 * @package BuddyPress 6 * @since BuddyPress (1.6 )6 * @since BuddyPress (1.6.0) 7 7 * @subpackage Activity 8 8 */ … … 14 14 * Akismet support for the Activity component. 15 15 * 16 * @since BuddyPress (1.6 )16 * @since BuddyPress (1.6.0) 17 17 */ 18 18 class BP_Akismet { … … 22 22 * @access protected 23 23 * @var BP_Activity_Activity 24 * @since BuddyPress (1.6 )24 * @since BuddyPress (1.6.0) 25 25 */ 26 26 protected $last_activity = null; … … 29 29 * Constructor. 30 30 * 31 * @since BuddyPress (1.6 )31 * @since BuddyPress (1.6.0) 32 32 */ 33 33 public function __construct() { … … 38 38 * Hook Akismet into the activity stream. 39 39 * 40 * @since BuddyPress (1.6 )40 * @since BuddyPress (1.6.0) 41 41 */ 42 42 protected function setup_actions() { … … 70 70 * akismet_comment_row_action() function. Thanks! 71 71 * 72 * @since BuddyPress (1.6 )72 * @since BuddyPress (1.6.0) 73 73 * 74 74 * @param array $actions The hover links. … … 130 130 * by Akismet to help detect spam activity. 131 131 * 132 * @since BuddyPress (1.6 )132 * @since BuddyPress (1.6.0) 133 133 * 134 134 * @see https://plugins.trac.wordpress.org/ticket/1232 … … 159 159 * default AJAX implementation; see bp_dtheme_post_update(). 160 160 * 161 * @since BuddyPress (1.6 )161 * @since BuddyPress (1.6.0) 162 162 * 163 163 * @see bp_dtheme_post_update() … … 185 185 * This function is intended to be used inside the activity stream loop. 186 186 * 187 * @since BuddyPress (1.6 )187 * @since BuddyPress (1.6.0) 188 188 */ 189 189 public function add_activity_spam_button() { … … 213 213 * This function is intended to be used inside the activity stream loop. 214 214 * 215 * @since BuddyPress (1.6 )215 * @since BuddyPress (1.6.0) 216 216 */ 217 217 public function add_activity_comment_spam_button() { … … 240 240 * Get a filterable list of activity types that Akismet should automatically check for spam. 241 241 * 242 * @since BuddyPress (1.6 )242 * @since BuddyPress (1.6.0) 243 243 * 244 244 * @static … … 261 261 * Mark activity item as spam. 262 262 * 263 * @since BuddyPress (1.6 )263 * @since BuddyPress (1.6.0) 264 264 * 265 265 * @param BP_Activity_Activity $activity … … 284 284 * Mark activity item as ham. 285 285 * 286 * @since BuddyPress (1.6 )286 * @since BuddyPress (1.6.0) 287 287 * 288 288 * @param BP_Activity_Activity $activity … … 308 308 * Build a data package for the Akismet service to inspect. 309 309 * 310 * @since BuddyPress (1.6 )310 * @since BuddyPress (1.6.0) 311 311 * 312 312 * @see http://akismet.com/development/api/#comment-check … … 357 357 * Check if the activity item is spam or ham. 358 358 * 359 * @since BuddyPress (1.6 )359 * @since BuddyPress (1.6.0) 360 360 * 361 361 * @see http://akismet.com/development/api/ … … 408 408 * Update activity meta after a manual spam change (user-initiated). 409 409 * 410 * @since BuddyPress (1.6 )410 * @since BuddyPress (1.6.0) 411 411 * 412 412 * @param BP_Activity_Activity $activity The activity to check. … … 425 425 * Update activity meta after a manual ham change (user-initiated). 426 426 * 427 * @since BuddyPress (1.6 )427 * @since BuddyPress (1.6.0) 428 428 * 429 429 * @param BP_Activity_Activity $activity The activity to check. … … 442 442 * Update activity meta after an automatic spam check (not user-initiated). 443 443 * 444 * @since BuddyPress (1.6 )444 * @since BuddyPress (1.6.0) 445 445 * 446 446 * @param BP_Activity_Activity $activity The activity to check. … … 480 480 * Props to WordPress core Akismet plugin for a lot of this. 481 481 * 482 * @since BuddyPress (1.6 )482 * @since BuddyPress (1.6.0) 483 483 * 484 484 * @global string $akismet_api_host … … 559 559 * Filters user agent when sending to Akismet to add BuddyPress info. 560 560 * 561 * @since BuddyPress (1.6 )561 * @since BuddyPress (1.6.0) 562 562 * 563 563 * @param string $user_agent User agent string, as generated by Akismet. … … 572 572 * Adds a "History" meta box to the activity edit screen. 573 573 * 574 * @since BuddyPress (1.6 )574 * @since BuddyPress (1.6.0) 575 575 * 576 576 * @param string $screen_action The type of screen that has been requested. … … 588 588 * History meta box for the Activity admin edit screen. 589 589 * 590 * @since BuddyPress (1.6 )590 * @since BuddyPress (1.6.0) 591 591 * 592 592 * @see https://buddypress.trac.wordpress.org/ticket/3907 … … 609 609 * Update an activity item's Akismet history. 610 610 * 611 * @since BuddyPress (1.6 )611 * @since BuddyPress (1.6.0) 612 612 * 613 613 * @param int $activity_id Activity item ID. … … 630 630 * Get an activity item's Akismet history. 631 631 * 632 * @since BuddyPress (1.6 )632 * @since BuddyPress (1.6.0) 633 633 * 634 634 * @param int $activity_id Activity item ID. … … 653 653 * grow to be quite large. 654 654 * 655 * @since BuddyPress (1.6 )655 * @since BuddyPress (1.6.0) 656 656 * 657 657 * @global wpdb $wpdb WordPress database object. -
trunk/src/bp-activity/bp-activity-cache.php
r9471 r9642 4 4 * Functions related to the BuddyPress Activity component and the WP Cache. 5 5 * 6 * @since BuddyPress (1.6 )6 * @since BuddyPress (1.6.0) 7 7 */ 8 8 … … 38 38 * Clear a cached activity item when that item is updated. 39 39 * 40 * @since 2.040 * @since BuddyPress (2.0.0) 41 41 * 42 42 * @param BP_Activity_Activity $activity … … 51 51 * Clear cached data for deleted activity items. 52 52 * 53 * @since 2.053 * @since BuddyPress (2.0.0) 54 54 * 55 55 * @param array $deleted_ids IDs of deleted activity items. -
trunk/src/bp-activity/bp-activity-cssjs.php
r9458 r9642 14 14 * Enqueue @mentions JS. 15 15 * 16 * @since BuddyPress (2.1 )16 * @since BuddyPress (2.1.0) 17 17 */ 18 18 function bp_activity_mentions_script() { -
trunk/src/bp-activity/bp-activity-loader.php
r9539 r9642 16 16 * Main Activity Class. 17 17 * 18 * @since BuddyPress (1.5 )18 * @since BuddyPress (1.5.0) 19 19 */ 20 20 class BP_Activity_Component extends BP_Component { … … 23 23 * Start the activity component setup process. 24 24 * 25 * @since BuddyPress (1.5 )25 * @since BuddyPress (1.5.0) 26 26 */ 27 27 public function __construct() { … … 39 39 * Include component files. 40 40 * 41 * @since BuddyPress (1.5 )41 * @since BuddyPress (1.5.0) 42 42 * 43 43 * @see BP_Component::includes() for a description of arguments. … … 80 80 * backwards compatibility. 81 81 * 82 * @since BuddyPress (1.5 )82 * @since BuddyPress (1.5.0) 83 83 * 84 84 * @see BP_Component::setup_globals() for a description of arguments. … … 123 123 * Set up component navigation. 124 124 * 125 * @since BuddyPress (1.5 )125 * @since BuddyPress (1.5.0) 126 126 * 127 127 * @see BP_Component::setup_nav() for a description of arguments. … … 232 232 * Set up the component entries in the WordPress Admin Bar. 233 233 * 234 * @since BuddyPress (1.5 )234 * @since BuddyPress (1.5.0) 235 235 * 236 236 * @see BP_Component::setup_nav() for a description of the $wp_admin_nav … … 331 331 * Set up the title for pages and <title>. 332 332 * 333 * @since BuddyPress (1.5 )333 * @since BuddyPress (1.5.0) 334 334 * 335 335 * @uses bp_is_activity_component() … … 360 360 * Set up actions necessary for the component. 361 361 * 362 * @since BuddyPress (1.6 )362 * @since BuddyPress (1.6.0) 363 363 */ 364 364 public function setup_actions() {
Note: See TracChangeset
for help on using the changeset viewer.