[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 16:01:55 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 close |
-------------------------------------------------+-------------------------
Changes (by westonruter):
* keywords: has-patch changes-requested reporter-feedback needs-test-info
=> has-patch changes-requested reporter-feedback needs-test-info close
Comment:
We discussed in core dev chat. I suggest we close this in favor of
holistically addressing such static analysis issues with the adoption of
PHPStan (#61175), specifically when increasing the [https://phpstan.org
/user-guide/rule-levels rule levels] which will automatically detect
issues like this. They can then be fixed all together without thousands of
one-off tickets and commits.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63975#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list