Changeset 47762
- Timestamp:
- 05/05/2020 06:56:44 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
r47527 r47762 648 648 'value' => ini_get( 'max_execution_time' ), 649 649 ); 650 $info['wp-server']['fields']['memory_limit'] = array( 651 'label' => __( 'PHP memory limit' ), 652 'value' => ini_get( 'memory_limit' ), 653 ); 654 $info['wp-server']['fields']['max_input_time'] = array( 650 651 if ( WP_Site_Health::get_instance()->php_memory_limit !== ini_get( 'memory_limit' ) ) { 652 $info['wp-server']['fields']['memory_limit'] = array( 653 'label' => __( 'PHP memory limit' ), 654 'value' => WP_Site_Health::get_instance()->php_memory_limit, 655 ); 656 $info['wp-server']['fields']['admin_memory_limit'] = array( 657 'label' => __( 'PHP memory limit (only for admin screens)' ), 658 'value' => ini_get( 'memory_limit' ), 659 ); 660 } else { 661 $info['wp-server']['fields']['memory_limit'] = array( 662 'label' => __( 'PHP memory limit' ), 663 'value' => ini_get( 'memory_limit' ), 664 ); 665 } 666 667 $info['wp-server']['fields']['max_input_time'] = array( 655 668 'label' => __( 'Max input time' ), 656 669 'value' => ini_get( 'max_input_time' ), 657 670 ); 658 $info['wp-server']['fields']['upload_max_size'] 671 $info['wp-server']['fields']['upload_max_size'] = array( 659 672 'label' => __( 'Upload max filesize' ), 660 673 'value' => ini_get( 'upload_max_filesize' ), 661 674 ); 662 $info['wp-server']['fields']['php_post_max_size'] 675 $info['wp-server']['fields']['php_post_max_size'] = array( 663 676 'label' => __( 'PHP post max size' ), 664 677 'value' => ini_get( 'post_max_size' ), -
trunk/src/wp-admin/includes/class-wp-site-health.php
r47628 r47762 19 19 private $health_check_mysql_rec_version = ''; 20 20 21 public $php_memory_limit; 22 21 23 public $schedules; 22 24 public $crons; … … 33 35 public function __construct() { 34 36 $this->maybe_create_scheduled_event(); 37 38 // Save memory limit before it's affected by wp_raise_memory_limit( 'admin' ). 39 $this->php_memory_limit = ini_get( 'memory_limit' ); 35 40 36 41 $this->timeout_late_cron = 0;
Note: See TracChangeset
for help on using the changeset viewer.