Remove some @uses references to `apply_filters` and `do_action` rendered redundant by hook documentation.
Built from https://develop.svn.wordpress.org/trunk@26867 git-svn-id: http://core.svn.wordpress.org/trunk@26753 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cce9d251a4
commit
1f5f0fcd33
|
@ -746,9 +746,6 @@ function sanitize_comment_cookies() {
|
|||
*
|
||||
* @since 2.0.0
|
||||
* @uses $wpdb
|
||||
* @uses apply_filters() Calls 'pre_comment_approved' hook on the type of comment
|
||||
* @uses apply_filters() Calls 'comment_duplicate_trigger' hook on commentdata.
|
||||
* @uses do_action() Calls 'check_comment_flood' hook on $comment_author_IP, $comment_author_email, and $comment_date_gmt
|
||||
*
|
||||
* @param array $commentdata Contains information on the comment
|
||||
* @return mixed Signifies the approval status (0|1|'spam')
|
||||
|
@ -829,10 +826,6 @@ function wp_allow_comment($commentdata) {
|
|||
*
|
||||
* @since 2.3.0
|
||||
* @uses $wpdb
|
||||
* @uses apply_filters() Calls 'comment_flood_filter' filter with first
|
||||
* parameter false, last comment timestamp, new comment timestamp.
|
||||
* @uses do_action() Calls 'comment_flood_trigger' action with parameters with
|
||||
* last comment timestamp and new comment timestamp.
|
||||
*
|
||||
* @param string $ip Comment IP.
|
||||
* @param string $email Comment author email address.
|
||||
|
@ -902,8 +895,7 @@ function separate_comments(&$comments) {
|
|||
* Calculate the total number of comment pages.
|
||||
*
|
||||
* @since 2.7.0
|
||||
* @uses get_query_var() Used to fill in the default for $per_page parameter.
|
||||
* @uses get_option() Used to fill in defaults for parameters.
|
||||
*
|
||||
* @uses Walker_Comment
|
||||
*
|
||||
* @param array $comments Optional array of comment objects. Defaults to $wp_query->comments
|
||||
|
@ -1010,7 +1002,6 @@ function get_page_of_comment( $comment_ID, $args = array() ) {
|
|||
* Does comment contain blacklisted characters or words.
|
||||
*
|
||||
* @since 1.5.0
|
||||
* @uses do_action() Calls 'wp_blacklist_check' hook for all parameters.
|
||||
*
|
||||
* @param string $author The author of the comment
|
||||
* @param string $email The email of the comment
|
||||
|
@ -1141,9 +1132,6 @@ function wp_count_comments( $post_id = 0 ) {
|
|||
*
|
||||
* @since 2.0.0
|
||||
* @uses $wpdb
|
||||
* @uses do_action() Calls 'delete_comment' hook on comment ID
|
||||
* @uses do_action() Calls 'deleted_comment' hook on comment ID after deletion, on success
|
||||
* @uses do_action() Calls 'wp_set_comment_status' hook on comment ID with 'delete' set for the second parameter
|
||||
* @uses wp_transition_comment_status() Passes new and old comment status along with $comment object
|
||||
*
|
||||
* @param int $comment_id Comment ID
|
||||
|
@ -1216,8 +1204,7 @@ function wp_delete_comment($comment_id, $force_delete = false) {
|
|||
* If trash is disabled, comment is permanently deleted.
|
||||
*
|
||||
* @since 2.9.0
|
||||
* @uses do_action() on 'trash_comment' before trashing
|
||||
* @uses do_action() on 'trashed_comment' after trashing
|
||||
*
|
||||
* @uses wp_delete_comment() if trash is disabled
|
||||
*
|
||||
* @param int $comment_id Comment ID.
|
||||
|
@ -1261,8 +1248,6 @@ function wp_trash_comment($comment_id) {
|
|||
* Removes a comment from the Trash
|
||||
*
|
||||
* @since 2.9.0
|
||||
* @uses do_action() on 'untrash_comment' before untrashing
|
||||
* @uses do_action() on 'untrashed_comment' after untrashing
|
||||
*
|
||||
* @param int $comment_id Comment ID.
|
||||
* @return bool True on success, false on failure.
|
||||
|
@ -1305,8 +1290,6 @@ function wp_untrash_comment($comment_id) {
|
|||
* Marks a comment as Spam
|
||||
*
|
||||
* @since 2.9.0
|
||||
* @uses do_action() on 'spam_comment' before spamming
|
||||
* @uses do_action() on 'spammed_comment' after spamming
|
||||
*
|
||||
* @param int $comment_id Comment ID.
|
||||
* @return bool True on success, false on failure.
|
||||
|
@ -1344,8 +1327,6 @@ function wp_spam_comment($comment_id) {
|
|||
* Removes a comment from the Spam
|
||||
*
|
||||
* @since 2.9.0
|
||||
* @uses do_action() on 'unspam_comment' before unspamming
|
||||
* @uses do_action() on 'unspammed_comment' after unspamming
|
||||
*
|
||||
* @param int $comment_id Comment ID.
|
||||
* @return bool True on success, false on failure.
|
||||
|
@ -1954,8 +1935,6 @@ function wp_update_comment_count($post_id, $do_deferred=false) {
|
|||
*
|
||||
* @since 2.5.0
|
||||
* @uses $wpdb
|
||||
* @uses do_action() Calls 'wp_update_comment_count' hook on $post_id, $new, and $old
|
||||
* @uses do_action() Calls 'edit_posts' hook on $post_id and $post
|
||||
*
|
||||
* @param int $post_id Post ID
|
||||
* @return bool True on success, false on '0' $post_id or if post with ID does not exist.
|
||||
|
|
Loading…
Reference in New Issue