Changeset 6573 for trunk/src/includes/extend/akismet.php
- Timestamp:
- 06/16/2017 09:20:52 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/extend/akismet.php
r6415 r6573 26 26 * 27 27 * @since 2.0.0 bbPress (r3277) 28 *29 * @uses add_filter()30 28 */ 31 29 public function __construct() { … … 39 37 * 40 38 * @access private 41 *42 * @uses add_filter() To add various filters43 * @uses add_action() To add various actions44 39 */ 45 40 private function setup_actions() { … … 86 81 * 87 82 * @param string $post_data 88 *89 * @uses get_userdata() To get the user data90 * @uses bbp_filter_anonymous_user_data() To get anonymous user data91 * @uses bbp_get_topic_permalink() To get the permalink of the topic92 * @uses bbp_get_reply_url() To get the permalink of the reply93 * @uses bbp_current_author_ip() To get the IP address of the current user94 * @uses BBP_Akismet::maybe_spam() To check if post is spam95 * @uses BBP_Akismet::get_user_roles() To get the role(s) of the current user96 * @uses do_action() To call the 'bbp_akismet_spam_caught' hook97 * @uses add_filter() To call the 'bbp_new_reply_pre_set_terms' hook98 83 * 99 84 * @return array Array of post data … … 230 215 * @global object $current_user 231 216 * @global object $current_site 232 *233 * @uses current_filter() To get the reply_id234 * @uses get_post() To get the post object235 * @uses get_the_author_meta() To get the author meta236 * @uses get_post_meta() To get the post meta237 * @uses bbp_get_user_profile_url() To get a user's profile url238 * @uses get_permalink() To get the permalink of the post_parent239 * @uses BBP_Akismet::get_user_roles() To get the role(s) of the post_author240 * @uses bbp_current_author_ip() To get the IP address of the current user241 * @uses BBP_Akismet::maybe_spam() To submit the post as ham or spam242 * @uses update_post_meta() To update the post meta with some Akismet data243 * @uses do_action() To call the 'bbp_akismet_submit_spam_post' and 'bbp_akismet_submit_ham_post' hooks244 217 * 245 218 * @return array Array of existing topic terms … … 409 382 * @global string $akismet_api_port 410 383 * 411 * @uses akismet_test_mode() To determine if Akismet is in test mode412 * @uses akismet_http_post() To send data to the mothership for processing413 *414 384 * @return array Array of post data 415 385 */ … … 485 455 * 486 456 * @global object $this->last_post 487 *488 * @uses get_post() To get the post object489 * @uses get_userdata() To get the user data490 * @uses bbp_filter_anonymous_user_data() To get anonymous user data491 * @uses update_post_meta() To update post meta with Akismet data492 * @uses BBP_Akismet::update_post_history() To update post Akismet history493 457 */ 494 458 public function update_post_meta( $post_id = 0, $_post = false ) { … … 567 531 568 532 /** 569 * Update a post's Akismet history533 * Update Akismet history of a Post 570 534 * 571 535 * @since 2.0.0 bbPress (r3308) … … 574 538 * @param string $message 575 539 * @param string $event 576 *577 * @uses wp_get_current_user() To get the current_user object578 * @uses add_post_meta() Add Akismet post history579 540 */ 580 541 private function update_post_history( $post_id = 0, $message = null, $event = null ) { … … 608 569 609 570 /** 610 * Get a post's Akismet history571 * Get the Akismet history of a Post 611 572 * 612 573 * @since 2.0.0 bbPress (r3308) … … 614 575 * @param int $post_id 615 576 * 616 * @uses wp_get_current_user() To get the current_user object 617 * @uses get_post_meta() Get a post's Akismet history 618 * 619 * @return array Array of a post's Akismet history 577 * @return array Array of Akismet history 620 578 */ 621 579 public function get_post_history( $post_id = 0 ) { … … 638 596 * @param int $topic_id 639 597 * @param int $reply_id 640 *641 * @uses bbp_get_reply_id() To get the reply_id642 * @uses bbp_get_topic_id() To get the topic_id643 * @uses bbp_get_topic_tag_names() To a post's current terms644 * @uses update_post_meta() To add spam terms to post meta645 598 * 646 599 * @return array Array of existing topic terms … … 677 630 * @param string $port The port to use 678 631 * @param string $ip Optional Override $host with an IP address 679 * @uses bbp_get_version() To get the current bbPress version680 632 * @return mixed WP_Error on error, array on success, empty on failure 681 633 */ … … 790 742 * 791 743 * @since 2.4.0 bbPress (r5049) 792 *793 * @uses get_post_history() To get the Akismet history for the post794 * @uses get_the_ID() To get the post ID795 * @uses bbp_time_since() To get the human readable time796 744 */ 797 745 public function history_metabox() {
Note: See TracChangeset
for help on using the changeset viewer.