[wp-trac] [WordPress Trac] #63975: wp_delete_auto_drafts passes post ID as string instead of as int
WordPress Trac
noreply at wordpress.org
Thu Sep 18 12:23:56 UTC 2025
#63975: wp_delete_auto_drafts passes post ID as string instead of as int
-------------------------------------------------+-------------------------
Reporter: kkmuffme | Owner: kkmuffme
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Awaiting
| Review
Component: Posts, Post Types | Version: 3.4
Severity: trivial | Resolution:
Keywords: has-patch changes-requested needs- | Focuses:
test-info |
-------------------------------------------------+-------------------------
Comment (by kkmuffme):
Replying to [comment:18 SirLouen]:
> I'm unable to reproduce this Fatal error with the code you provided.
Because you're not using the code I provided :-)
Can you go ahead and actually try the code I provided - including the
`declare(strict_types=1);` ?
I'll wait with replying the rest of your response until then, just in case
you want to edit it, since some claims ("it is impossible in real-life
scenarios") show a complete lack of understanding of PHP's type system.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63975#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list