Changeset 48801
- Timestamp:
- 08/16/2020 05:52:25 PM (4 years ago)
- Location:
- trunk/src/wp-admin/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-debug-data.php
r48750 r48801 532 532 } else { 533 533 // Get the PHP ini directive values. 534 $post_max_size = ini_get( 'post_max_size' );535 $upload_max_ size= ini_get( 'upload_max_filesize' );536 $max_file_uploads = ini_get( 'max_file_uploads' );537 $effective = min( wp_convert_hr_to_bytes( $post_max_size ), wp_convert_hr_to_bytes( $upload_max_size ) );534 $post_max_size = ini_get( 'post_max_size' ); 535 $upload_max_filesize = ini_get( 'upload_max_filesize' ); 536 $max_file_uploads = ini_get( 'max_file_uploads' ); 537 $effective = min( wp_convert_hr_to_bytes( $post_max_size ), wp_convert_hr_to_bytes( $upload_max_filesize ) ); 538 538 539 539 // Add info in Media section. … … 549 549 $info['wp-media']['fields']['upload_max_filesize'] = array( 550 550 'label' => __( 'Max size of an uploaded file' ), 551 'value' => $upload_max_ size,551 'value' => $upload_max_filesize, 552 552 ); 553 553 $info['wp-media']['fields']['max_effective_size'] = array( … … 712 712 } 713 713 714 $info['wp-server']['fields']['max_input_time'] = array(714 $info['wp-server']['fields']['max_input_time'] = array( 715 715 'label' => __( 'Max input time' ), 716 716 'value' => ini_get( 'max_input_time' ), 717 717 ); 718 $info['wp-server']['fields']['upload_max_ size']= array(718 $info['wp-server']['fields']['upload_max_filesize'] = array( 719 719 'label' => __( 'Upload max filesize' ), 720 720 'value' => ini_get( 'upload_max_filesize' ), 721 721 ); 722 $info['wp-server']['fields']['php_post_max_size'] = array(722 $info['wp-server']['fields']['php_post_max_size'] = array( 723 723 'label' => __( 'PHP post max size' ), 724 724 'value' => ini_get( 'post_max_size' ), -
trunk/src/wp-admin/includes/class-wp-site-health.php
r48800 r48801 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 */
Note: See TracChangeset
for help on using the changeset viewer.