[wp-trac] [WordPress Trac] #25092: WP_Post->post_author is not INT
WordPress Trac
noreply at wordpress.org
Sun May 31 19:19:35 UTC 2026
#25092: WP_Post->post_author is not INT
--------------------------+---------------------
Reporter: 1994rstefan | Owner: nacin
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 3.7
Component: General | Version: 3.6
Severity: minor | Resolution: fixed
Keywords: has-patch |
--------------------------+---------------------
Comment (by westonruter):
In [changeset:"62437" 62437]:
{{{
#!CommitTicketReference repository="" revision="62437"
Privacy: Correct type of `WP_User_Request::$user_id` from `int` to `string
`/`numeric-string`.
Also adds `numeric-string` as richer PHPStan type to
`WP_Post::$post_author` and `WP_Post::$comment_count`.
Developed in https://github.com/WordPress/wordpress-develop/pull/12018.
Follow-up to r25086, r43011.
Props masteradhoc, desrosj, garrett-eclipse, johnbillion, westonruter,
apermo, SergeyBiryukov, TZ-Media, andizer, javorszky.
See #22324, #25092, #43443, #43985, #64898.
Fixes #44723.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/25092#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list