Ticket #49329: 49329.2.diff
File 49329.2.diff, 1.7 KB (added by , 5 years ago) |
---|
-
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; … … 33 35 public function __construct() { 34 36 $this->maybe_create_scheduled_event(); 35 37 38 // Save memory limit before it's affected by wp_raise_memory_limit( 'admin' ). 39 $this->php_memory_limit = ini_get( 'memory_limit' ); 40 36 41 $this->timeout_late_cron = 0; 37 42 $this->timeout_missed_cron = - 5 * MINUTE_IN_SECONDS; 38 43 -
src/wp-admin/includes/class-wp-debug-data.php
648 648 'label' => __( 'PHP memory limit' ), 649 649 'value' => ini_get( 'memory_limit' ), 650 650 ); 651 652 if ( WP_Site_Health::get_instance()->php_memory_limit !== ini_get( 'memory_limit' ) ) { 653 $info['wp-server']['fields']['admin_memory_limit'] = array( 654 'label' => __( 'PHP memory limit (only for admin screens)' ), 655 'value' => WP_Site_Health::get_instance()->php_memory_limit, 656 ); 657 } 658 651 659 $info['wp-server']['fields']['max_input_time'] = array( 652 660 'label' => __( 'Max input time' ), 653 661 'value' => ini_get( 'max_input_time' ),