[wp-trac] [WordPress Trac] #55926: Fatal error after entered the empty value for 'Max upload file size' in wordpress network

WordPress Trac noreply at wordpress.org
Tue Oct 11 15:05:46 UTC 2022


#55926: Fatal error after entered the empty value for 'Max upload file size' in
wordpress network
-------------------------------------+-------------------------------------
 Reporter:  mjkhajeh                 |       Owner:  audrasjb
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:  6.1
Component:  Networks and Sites       |     Version:
 Severity:  critical                 |  Resolution:  fixed
 Keywords:  has-patch php8 has-      |     Focuses:  administration,
  unit-tests commit                  |  multisite
-------------------------------------+-------------------------------------
Changes (by audrasjb):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"54482" 54482]:
 {{{
 #!CommitTicketReference repository="" revision="54482"
 Networks and Sites: Ensure `fileupload_maxk` is an `int` to avoid
 potential fatal errors.

 This changeset fixes a potential fatal error, for example when "Max upload
 file size" setting is set to an empty value. It also adds unit tests for
 `upload_size_limit_filter`.

 Props mjkhajeh, bhrugesh12, SergeyBiryukov, kebbet, audrasjb, felipeelia.
 Fixes #55926.
 }}}

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


More information about the wp-trac mailing list