From b4f1d6ff55b44e9daa300d0f927fe2c0a521ef30 Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Tue, 23 Feb 2016 03:05:26 +0000 Subject: [PATCH] Docs: Correct `param` types on some filters in `wp_filter_comment()`. Introduced in [26491]. Props meitar, netweb. Fixes #35908. git-svn-id: https://develop.svn.wordpress.org/trunk@36626 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/comment.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/comment.php b/src/wp-includes/comment.php index 11a550b56c..3efefc59e3 100644 --- a/src/wp-includes/comment.php +++ b/src/wp-includes/comment.php @@ -1651,7 +1651,7 @@ function wp_filter_comment($commentdata) { * * @since 1.5.0 * - * @param int $comment_agent The comment author's browser user agent. + * @param string $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.php */ @@ -1661,7 +1661,7 @@ function wp_filter_comment($commentdata) { * * @since 1.5.0 * - * @param int $comment_content The comment content. + * @param string $comment_content The comment content. */ $commentdata['comment_content'] = apply_filters( 'pre_comment_content', $commentdata['comment_content'] ); /** @@ -1669,7 +1669,7 @@ function wp_filter_comment($commentdata) { * * @since 1.5.0 * - * @param int $comment_author_ip The comment author's IP. + * @param string $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.php */