[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:38:31 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 SirLouen):

 Replying to [comment:19 kkmuffme]:
 > Can you go ahead and actually try the code I provided - including the
 `declare(strict_types=1);` ?

 [https://make.wordpress.org/core/2020/03/20/updating-the-coding-standards-
 for-modern-
 php/#:~:text=use%20...-,Usage%20in%20WordPress%20Core,-Strict%20typing%20should
 Check this]

 > as a lot of WordPress Core relies on the **loose type nature of PHP**,
 so this is not something to be undertaken lightly and is not on the agenda
 for the foreseeable future

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63975#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list