Make WordPress Core

Changeset 36626


Ignore:
Timestamp:
02/23/2016 03:05:26 AM (11 years ago)
Author:
boonebgorges
Message:

Docs: Correct param types on some filters in wp_filter_comment().

Introduced in [26491].

Props meitar, netweb.
Fixes #35908.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/comment.php

    r36569 r36626  
    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'] : '' ) );
    … …  
    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'] );
    … …  
    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'] );
Note: See TracChangeset for help on using the changeset viewer.