Make WordPress Core


Ignore:
Timestamp:
07/21/2020 03:38:40 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Site Health: Remove parse_ini_size(), use the existing wp_convert_hr_to_bytes() function instead.

Follow-up to [48535].

See #50038.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-debug-data.php

    r48535 r48538  
    535535            $upload_max_size  = ini_get( 'upload_max_filesize' );
    536536            $max_file_uploads = ini_get( 'max_file_uploads' );
    537             $effective        = min( parse_ini_size( $post_max_size ), parse_ini_size( $upload_max_size ) );
     537            $effective        = min( wp_convert_hr_to_bytes( $post_max_size ), wp_convert_hr_to_bytes( $upload_max_size ) );
    538538
    539539            // Add info in Media section.
Note: See TracChangeset for help on using the changeset viewer.