Make WordPress Core

Changeset 59805


Ignore:
Timestamp:
02/11/2025 01:38:12 PM (3 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Correct default values in WP_Comment to match the documented type.

Follow-up to [33891], [48941].

See #62279.

File:
1 edited

Legend:

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

    r59337 r59805  
    3434     * @var string
    3535     */
    36     public $comment_post_ID = 0;
     36    public $comment_post_ID = '0';
    3737
    3838    /**
     
    100100     * @var string
    101101     */
    102     public $comment_karma = 0;
     102    public $comment_karma = '0';
    103103
    104104    /**
     
    135135     * @var string
    136136     */
    137     public $comment_parent = 0;
     137    public $comment_parent = '0';
    138138
    139139    /**
     
    145145     * @var string
    146146     */
    147     public $user_id = 0;
     147    public $user_id = '0';
    148148
    149149    /**
Note: See TracChangeset for help on using the changeset viewer.