[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 Oct 1 11:11:15 UTC 2025
#63975: wp_delete_auto_drafts passes post ID as string instead of as int
-------------------------------------------------+-------------------------
Reporter: kkmuffme | Owner:
| westonruter
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 6.9
Component: Posts, Post Types | Version: 3.4
Severity: normal | Resolution:
Keywords: has-test-info has-patch has-unit- | Focuses:
tests |
-------------------------------------------------+-------------------------
Changes (by SirLouen):
* severity: trivial => normal
* milestone: Future Release => 6.9
Comment:
Replying to [comment:43 westonruter]:
> It looks like previously the casting to `int` was used as a way to
construct safe SQL before `$wpdb->prepare()` was available, which has `%d`
that also does this casting.
Yes, it appears that they realized that it was not necessary anymore for
their use case
We can say that this patch is ready to move on.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63975#comment:44>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list