[wp-trac] [WordPress Trac] #55662: Eliminating magic numbers

WordPress Trac noreply at wordpress.org
Tue May 3 14:43:08 UTC 2022


#55662: Eliminating magic numbers
-------------------------+-------------------------------
 Reporter:  Cybr         |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  coding-standards
-------------------------+-------------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:1 dd32]:
 > Regarding `fileupload_maxk` & 1500 it might make sense to swap that to a
 constant, it would be helpful to define a default for network-wide via
 code, however, there's not exactly many cases of it:
 > ...
 > I'm more concerned about the one lonely default of 300 :)

 Related: #27224

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


More information about the wp-trac mailing list