Changeset 48806 for branches/5.5
- Timestamp:
- 08/17/2020 01:27:29 AM (4 years ago)
- Location:
- branches/5.5
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.5
- Property svn:mergeinfo changed
/trunk merged: 48800-48801
- Property svn:mergeinfo changed
-
branches/5.5/src/wp-admin/includes/class-wp-debug-data.php
r48805 r48806 538 538 } else { 539 539 // Get the PHP ini directive values. 540 $post_max_size = ini_get( 'post_max_size' );541 $upload_max_ size= ini_get( 'upload_max_filesize' );542 $max_file_uploads = ini_get( 'max_file_uploads' );543 $effective = min( wp_convert_hr_to_bytes( $post_max_size ), wp_convert_hr_to_bytes( $upload_max_size ) );540 $post_max_size = ini_get( 'post_max_size' ); 541 $upload_max_filesize = ini_get( 'upload_max_filesize' ); 542 $max_file_uploads = ini_get( 'max_file_uploads' ); 543 $effective = min( wp_convert_hr_to_bytes( $post_max_size ), wp_convert_hr_to_bytes( $upload_max_filesize ) ); 544 544 545 545 // Add info in Media section. … … 555 555 $info['wp-media']['fields']['upload_max_filesize'] = array( 556 556 'label' => __( 'Max size of an uploaded file' ), 557 'value' => $upload_max_ size,557 'value' => $upload_max_filesize, 558 558 ); 559 559 $info['wp-media']['fields']['max_effective_size'] = array( … … 718 718 } 719 719 720 $info['wp-server']['fields']['max_input_time'] = array(720 $info['wp-server']['fields']['max_input_time'] = array( 721 721 'label' => __( 'Max input time' ), 722 722 'value' => ini_get( 'max_input_time' ), 723 723 ); 724 $info['wp-server']['fields']['upload_max_ size']= array(724 $info['wp-server']['fields']['upload_max_filesize'] = array( 725 725 'label' => __( 'Upload max filesize' ), 726 726 'value' => ini_get( 'upload_max_filesize' ), 727 727 ); 728 $info['wp-server']['fields']['php_post_max_size'] = array(728 $info['wp-server']['fields']['php_post_max_size'] = array( 729 729 'label' => __( 'PHP post max size' ), 730 730 'value' => ini_get( 'post_max_size' ), -
branches/5.5/src/wp-admin/includes/class-wp-site-health.php
r48756 r48806 2047 2047 } 2048 2048 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 ) ) { 2053 2053 $result['label'] = sprintf( 2054 2054 /* translators: 1: post_max_size, 2: upload_max_filesize */ 2055 __( ' Mismatched "%1$s" and "%2$s" values.' ),2055 __( 'The "%1$s" value is smaller than "%2$s".' ), 2056 2056 'post_max_size', 2057 2057 'upload_max_filesize' … … 2062 2062 sprintf( 2063 2063 /* translators: 1: post_max_size, 2: upload_max_filesize */ 2064 __( 'The setting s for %1$s and %2$s are not the same, this could cause some problems when trying to upload files.' ),2064 __( 'The setting for %1$s is smaller than %2$s, this could cause some problems when trying to upload files.' ), 2065 2065 '<code>post_max_size</code>', 2066 2066 '<code>upload_max_filesize</code>'
Note: See TracChangeset
for help on using the changeset viewer.