[wp-trac] [WordPress Trac] #53235: Ensure consistent type for integer properties of WP_Post, WP_Term, and WP_User

WordPress Trac noreply at wordpress.org
Thu May 20 00:12:51 UTC 2021


#53235: Ensure consistent type for integer properties of WP_Post, WP_Term, and
WP_User
--------------------------------------+-----------------------------
 Reporter:  SergeyBiryukov            |       Owner:  SergeyBiryukov
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  5.8
Component:  General                   |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch needs-dev-note  |     Focuses:
--------------------------------------+-----------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:4 peterwilsoncc]:
 > I vaguely remember something like this causing problems in the past but
 can't find the solution, ie whether converting to string was deliberate or
 a dev note was published.

 Could that be about the `WP_Post::post_author` and
 `WP_Post::comment_count` properties in #22324? They were indeed left as a
 string at the time for backward compatibility.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53235#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list