Ticket #49329: 49329.diff
File 49329.diff, 1.4 KB (added by , 5 years ago) |
---|
-
src/wp-admin/includes/class-wp-debug-data.php
646 646 ); 647 647 $info['wp-server']['fields']['memory_limit'] = array( 648 648 'label' => __( 'PHP memory limit' ), 649 'value' => ini_get( 'memory_limit' ),649 'value' => WP_Site_Health::get_instance()->php_memory_limit, 650 650 ); 651 651 $info['wp-server']['fields']['max_input_time'] = array( 652 652 'label' => __( 'Max input time' ), -
src/wp-admin/includes/class-wp-site-health.php
18 18 private $health_check_mysql_required_version = '5.5'; 19 19 private $health_check_mysql_rec_version = ''; 20 20 21 public $php_memory_limit; 22 21 23 public $schedules; 22 24 public $crons; 23 25 public $last_missed_cron = null; … … 35 37 36 38 $this->prepare_sql_data(); 37 39 40 // Save memory limit before it's affected by wp_raise_memory_limit( 'admin' ). 41 $this->php_memory_limit = ini_get( 'memory_limit' ); 42 38 43 $this->timeout_late_cron = 0; 39 44 $this->timeout_missed_cron = - 5 * MINUTE_IN_SECONDS; 40 45