Make WordPress Core


Ignore:
Timestamp:
10/11/2022 03:05:29 PM (2 years ago)
Author:
audrasjb
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/formatting.php

    r54474 r54482  
    47724772        case 'start_of_week':
    47734773        case 'site_icon':
     4774        case 'fileupload_maxk':
    47744775            $value = absint( $value );
    47754776            break;
Note: See TracChangeset for help on using the changeset viewer.