[wp-trac] [WordPress Trac] #63975: wp_delete_auto_drafts passes post ID as string instead of as int
WordPress Trac
noreply at wordpress.org
Wed Sep 17 11:39:46 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 | Focuses:
reporter-feedback needs-test-info |
-------------------------------------------------+-------------------------
Changes (by SirLouen):
* keywords: has-patch changes-requested reporter-feedback => has-patch
changes-requested reporter-feedback needs-test-info
Comment:
Replying to [comment:11 kkmuffme]:
> Therefore this is something that should be addressed and fixed in WP
core to ensure that at least action/filter annotations are correct and the
type specified is actually the type provided.
I'm going to try to bring up this discussion today.
But from my perspective, to accept these kinds of theoretical reports, I
would seriously ask for a reproduction use case or close them as
`worksforme`
I know that in theory, typing makes a lot of sense
But demonstrating this should be a thing.
How to demonstrate this? A little plugin that triggers the error without
the static cast.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63975#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list