WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/16/2020 05:52:25 PM (12 months ago)
Author:
SergeyBiryukov
Message:

Site Health: Rename the $upload_max_size variable to $upload_max_filesize, for consistency with the PHP setting name.

Follow-up to [48535], [48538], [48539], [48544], [48800].

See #50945.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-site-health.php

    r48800 r48801  
    20472047        }
    20482048
    2049         $post_max_size   = ini_get( 'post_max_size' );
    2050         $upload_max_size = ini_get( 'upload_max_filesize' );
    2051 
    2052         if ( wp_convert_hr_to_bytes( $post_max_size ) < wp_convert_hr_to_bytes( $upload_max_size ) ) {
     2049        $post_max_size       = ini_get( 'post_max_size' );
     2050        $upload_max_filesize = ini_get( 'upload_max_filesize' );
     2051
     2052        if ( wp_convert_hr_to_bytes( $post_max_size ) < wp_convert_hr_to_bytes( $upload_max_filesize ) ) {
    20532053            $result['label'] = sprintf(
    20542054                /* translators: 1: post_max_size, 2: upload_max_filesize */
Note: See TracChangeset for help on using the changeset viewer.