Make WordPress Core

Changeset 59871


Ignore:
Timestamp:
02/26/2025 03:01:52 PM (4 weeks ago)
Author:
SergeyBiryukov
Message:

Docs: Correct the type for transition_comment_status action parameters.

By the time this hook runs, the $new_status and $old_status values can only be a string.

Follow-up to [26491].

See #62281.

File:
1 edited

Legend:

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

    r59867 r59871  
    18221822         * @since 2.7.0
    18231823         *
    1824          * @param int|string $new_status The new comment status.
    1825          * @param int|string $old_status The old comment status.
     1824         * @param string    $new_status The new comment status.
     1825         * @param string    $old_status The old comment status.
    18261826         * @param WP_Comment $comment    Comment object.
    18271827         */
Note: See TracChangeset for help on using the changeset viewer.