[wp-trac] [WordPress Trac] #65271: REST API Integer Type Check Fails on Large Ints

WordPress Trac noreply at wordpress.org
Wed May 20 02:53:50 UTC 2026


#65271: REST API Integer Type Check Fails on Large Ints
------------------------------------------+-----------------------------
 Reporter:  kevinfodness                  |       Owner:  (none)
     Type:  defect (bug)                  |      Status:  new
 Priority:  normal                        |   Milestone:  Future Release
Component:  REST API                      |     Version:  trunk
 Severity:  minor                         |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:
------------------------------------------+-----------------------------

Comment (by gautam23):

 I was tinkering with the regex for this and had a couple of questions.

 Do we consider leading and trailing spaces in the input? Like "  123 ".

 And do we consider positive/negative signs in the input? I think we should
 not support this ideally but the current implementation does support the +
 sign.

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


More information about the wp-trac mailing list