[wp-trac] [WordPress Trac] #54775: Allow int/float for esc_ functions

WordPress Trac noreply at wordpress.org
Tue Mar 1 21:10:31 UTC 2022


#54775: Allow int/float for esc_ functions
-------------------------+-------------------------------
 Reporter:  malthert     |       Owner:  (none)
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  Security     |     Version:
 Severity:  normal       |  Resolution:  wontfix
 Keywords:  close        |     Focuses:  coding-standards
-------------------------+-------------------------------
Changes (by johnbillion):

 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 This conversation isn't really going anywhere so I'll close off this
 ticket. As mentioned a few times, if you know the type is an integer or
 float then it can be handled accordingly, no need to pass it through
 `esc_html()`.

 Cheers!

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


More information about the wp-trac mailing list