Changeset 6259 for trunk/bp-activity/bp-activity-akismet.php
- Timestamp:
- 08/18/2012 10:15:09 AM (14 years ago)
- File:
-
- 1 edited
-
trunk/bp-activity/bp-activity-akismet.php (modified) (24 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-akismet.php
r6184 r6259 4 4 * 5 5 * @package BuddyPress 6 * @since 1.66 * @since BuddyPress (1.6) 7 7 * @subpackage Activity 8 8 */ … … 17 17 * @access protected 18 18 * @var BP_Activity_Activity 19 * @since 1.619 * @since BuddyPress (1.6) 20 20 */ 21 21 protected $last_activity = null; … … 24 24 * Constructor 25 25 * 26 * @since 1.626 * @since BuddyPress (1.6) 27 27 */ 28 28 public function __construct() { … … 33 33 * Hook Akismet into the activity stream 34 34 * 35 * @since 1.635 * @since BuddyPress (1.6) 36 36 */ 37 37 protected function setup_actions() { … … 68 68 * @param array $activity The activity for the current row being processed 69 69 * @return array The hover links 70 * @since 1.670 * @since BuddyPress (1.6) 71 71 */ 72 72 function comment_row_action( $actions, $activity ) { … … 115 115 * 116 116 * @see http://plugins.trac.wordpress.org/ticket/1232 117 * @since 1.6117 * @since BuddyPress (1.6) 118 118 */ 119 119 public function add_activity_stream_nonce() { … … 139 139 * @param int $activity_id Activity ID 140 140 * @see bp_dtheme_post_update() 141 * @since 1.6141 * @since BuddyPress (1.6) 142 142 */ 143 143 public function check_member_activity_update( $content, $user_id, $activity_id ) { … … 159 159 * This function is intended to be used inside the activity stream loop. 160 160 * 161 * @since 1.6161 * @since BuddyPress (1.6) 162 162 */ 163 163 public function add_activity_spam_button() { … … 187 187 * This function is intended to be used inside the activity stream loop. 188 188 * 189 * @since 1.6189 * @since BuddyPress (1.6) 190 190 */ 191 191 public function add_activity_comment_spam_button() { … … 215 215 * 216 216 * @return array List of activity types 217 * @since 1.6217 * @since BuddyPress (1.6) 218 218 * @static 219 219 */ … … 227 227 * @param BP_Activity_Activity $activity 228 228 * @param string $source Either "by_a_person" (e.g. a person has manually marked the activity as spam) or "by_akismet" (automatically spammed). 229 * @since 1.6229 * @since BuddyPress (1.6) 230 230 */ 231 231 public function mark_as_spam( $activity, $source ) { … … 241 241 * @param BP_Activity_Activity $activity 242 242 * @param string $source Either "by_a_person" (e.g. a person has manually marked the activity as ham) or "by_akismet" (automatically hammed). 243 * @since 1.6243 * @since BuddyPress (1.6) 244 244 */ 245 245 public function mark_as_ham( $activity, $source ) { … … 256 256 * @param BP_Activity_Activity $activity 257 257 * @see http://akismet.com/development/api/#comment-check 258 * @since 1.6258 * @since BuddyPress (1.6) 259 259 * @static 260 260 */ … … 295 295 * @param BP_Activity_Activity $activity The activity item to check 296 296 * @see http://akismet.com/development/api/ 297 * @since 1.6297 * @since BuddyPress (1.6) 298 298 * @todo Spam counter? 299 299 * @todo Auto-delete old spam? … … 336 336 * 337 337 * @param BP_Activity_Activity $activity The activity to check 338 * @since 1.6338 * @since BuddyPress (1.6) 339 339 */ 340 340 public function update_activity_spam_meta( $activity ) { … … 352 352 * 353 353 * @param BP_Activity_Activity $activity The activity to check 354 * @since 1.6354 * @since BuddyPress (1.6) 355 355 */ 356 356 public function update_activity_ham_meta( $activity ) { … … 368 368 * 369 369 * @param BP_Activity_Activity $activity The activity to check 370 * @since 1.6370 * @since BuddyPress (1.6) 371 371 */ 372 372 public function update_activity_akismet_meta( $activity ) { … … 409 409 * @param string $check "check" or "submit" 410 410 * @param string $spam "spam" or "ham" 411 * @since 1.6411 * @since BuddyPress (1.6) 412 412 */ 413 413 public function send_akismet_request( $activity_data, $check = 'check', $spam = 'spam' ) { … … 481 481 * 482 482 * @param string $user_agent 483 * @since 1.6483 * @since BuddyPress (1.6) 484 484 */ 485 485 public function buddypress_ua( $user_agent ) { … … 492 492 * 493 493 * @param string $screen_action The type of screen that has been requested 494 * @since 1.6494 * @since BuddyPress (1.6) 495 495 */ 496 496 function add_history_metabox( $screen_action ) { … … 507 507 * 508 508 * @param object $item Activity item 509 * @since 1.6509 * @since BuddyPress (1.6) 510 510 * @todo Update activity meta to allow >1 record with the same key (iterate through $history). 511 511 * @see http://buddypress.trac.wordpress.org/ticket/3907 … … 528 528 * @param string $message Human-readable description of what's changed 529 529 * @param string $event The type of check we were carrying out 530 * @since 1.6530 * @since BuddyPress (1.6) 531 531 */ 532 532 public function update_activity_history( $activity_id = 0, $message = '', $event = '' ) { … … 547 547 * @param int $activity_id Activity item ID 548 548 * @return array The activity item's Akismet history 549 * @since 1.6549 * @since BuddyPress (1.6) 550 550 */ 551 551 public function get_activity_history( $activity_id = 0 ) { … … 566 566 * @global object $bp BuddyPress global settings 567 567 * @global wpdb $wpdb WordPress database object 568 * @since 1.6568 * @since BuddyPress (1.6) 569 569 */ 570 570 function bp_activity_akismet_delete_old_metadata() {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)