After [35718], update the location of some files in This filter is documented in docs.

Partially reverts [33954].

Fixes #33413.

git-svn-id: https://develop.svn.wordpress.org/trunk@35725 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2015-11-22 03:50:32 +00:00
parent 89f49aad80
commit 3e634c753e
11 changed files with 47 additions and 47 deletions

View File

@@ -1118,7 +1118,7 @@ function wp_delete_comment($comment_id, $force_delete = false) {
clean_comment_cache( $comment->comment_ID );
/** This action is documented in wp-includes/comment-functions.php */
/** This action is documented in wp-includes/comment.php */
do_action( 'wp_set_comment_status', $comment->comment_ID, 'delete' );
wp_transition_comment_status('delete', $comment->comment_approved, $comment);
@@ -1566,7 +1566,7 @@ function wp_filter_comment($commentdata) {
*/
$commentdata['user_id'] = apply_filters( 'pre_user_id', $commentdata['user_ID'] );
} elseif ( isset( $commentdata['user_id'] ) ) {
/** This filter is documented in wp-includes/comment-functions.php */
/** This filter is documented in wp-includes/comment.php */
$commentdata['user_id'] = apply_filters( 'pre_user_id', $commentdata['user_id'] );
}
@@ -1578,7 +1578,7 @@ function wp_filter_comment($commentdata) {
* @param int $comment_agent The comment author's browser user agent.
*/
$commentdata['comment_agent'] = apply_filters( 'pre_comment_user_agent', ( isset( $commentdata['comment_agent'] ) ? $commentdata['comment_agent'] : '' ) );
/** This filter is documented in wp-includes/comment-functions.php */
/** This filter is documented in wp-includes/comment.php */
$commentdata['comment_author'] = apply_filters( 'pre_comment_author_name', $commentdata['comment_author'] );
/**
* Filter the comment content before it is set.
@@ -1596,9 +1596,9 @@ function wp_filter_comment($commentdata) {
* @param int $comment_author_ip The comment author's IP.
*/
$commentdata['comment_author_IP'] = apply_filters( 'pre_comment_user_ip', $commentdata['comment_author_IP'] );
/** This filter is documented in wp-includes/comment-functions.php */
/** This filter is documented in wp-includes/comment.php */
$commentdata['comment_author_url'] = apply_filters( 'pre_comment_author_url', $commentdata['comment_author_url'] );
/** This filter is documented in wp-includes/comment-functions.php */
/** This filter is documented in wp-includes/comment.php */
$commentdata['comment_author_email'] = apply_filters( 'pre_comment_author_email', $commentdata['comment_author_email'] );
$commentdata['filtered'] = true;
return $commentdata;
@@ -1759,7 +1759,7 @@ function wp_new_comment_notify_moderator( $comment_ID ) {
// Only send notifications for pending comments.
$maybe_notify = ( '0' == $comment->comment_approved );
/** This filter is documented in wp-includes/comment-functions.php */
/** This filter is documented in wp-includes/comment.php */
$maybe_notify = apply_filters( 'notify_moderator', $maybe_notify, $comment_ID );
if ( ! $maybe_notify ) {
@@ -2069,7 +2069,7 @@ function wp_update_comment_count_now($post_id) {
* @param int $old The old comment count.
*/
do_action( 'wp_update_comment_count', $post_id, $new, $old );
/** This action is documented in wp-includes/post-functions.php */
/** This action is documented in wp-includes/post.php */
do_action( 'edit_post', $post_id, $post );
return true;
@@ -2586,7 +2586,7 @@ function _close_comments_for_old_post( $open, $post_id ) {
$post = get_post($post_id);
/** This filter is documented in wp-includes/comment-functions.php */
/** This filter is documented in wp-includes/comment.php */
$post_types = apply_filters( 'close_comments_for_post_types', array( 'post' ) );
if ( ! in_array( $post->post_type, $post_types ) )
return $open;