[wp-trac] [WordPress Trac] #63975: wp_delete_auto_drafts passes post ID as string instead of as int

WordPress Trac noreply at wordpress.org
Sun Sep 28 21:48:58 UTC 2025


#63975: wp_delete_auto_drafts passes post ID as string instead of as int
-------------------------------------------------+-------------------------
 Reporter:  kkmuffme                             |       Owner:  SirLouen
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Posts, Post Types                    |     Version:  3.4
 Severity:  trivial                              |  Resolution:
 Keywords:  has-test-info needs-testing has-     |     Focuses:
  patch changes-requested needs-unit-tests       |
-------------------------------------------------+-------------------------

Comment (by SirLouen):

 Replying to [comment:32 westonruter]:
 > Interestingly, back then it did have a cast to `(int)`.

 And what was the reasoning to remove that cast back in the day?

 > @SirLouen Do you want to do so?

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


More information about the wp-trac mailing list