Make WordPress Core

Ticket #35908: 35908.2.diff

File 35908.2.diff, 1.2 KB (added by meitar, 10 years ago)

Correct variable type information for additional two neighboring filters.

  • wp-includes/comment.php

     
    16511651         *
    16521652         * @since 1.5.0
    16531653         *
    1654          * @param int $comment_agent The comment author's browser user agent.
     1654         * @param string $comment_agent The comment author's browser user agent.
    16551655         */
    16561656        $commentdata['comment_agent'] = apply_filters( 'pre_comment_user_agent', ( isset( $commentdata['comment_agent'] ) ? $commentdata['comment_agent'] : '' ) );
    16571657        /** This filter is documented in wp-includes/comment.php */
     
    16611661         *
    16621662         * @since 1.5.0
    16631663         *
    1664          * @param int $comment_content The comment content.
     1664         * @param string $comment_content The comment content.
    16651665         */
    16661666        $commentdata['comment_content'] = apply_filters( 'pre_comment_content', $commentdata['comment_content'] );
    16671667        /**
     
    16691669         *
    16701670         * @since 1.5.0
    16711671         *
    1672          * @param int $comment_author_ip The comment author's IP.
     1672         * @param string $comment_author_ip The comment author's IP.
    16731673         */
    16741674        $commentdata['comment_author_IP'] = apply_filters( 'pre_comment_user_ip', $commentdata['comment_author_IP'] );
    16751675        /** This filter is documented in wp-includes/comment.php */