Make WordPress Core


Ignore:
Timestamp:
05/05/2020 06:56:44 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Site Health: Display the original PHP memory limit on Site Health Info screen.

This ensures that if the limit has been modified for admin screens by wp_raise_memory_limit(), the original value is displayed along with the current value.

Props Clorith, espiat, zodiac1978, SergeyBiryukov.
Fixes #49329.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-site-health.php

    r47628 r47762  
    1919    private $health_check_mysql_rec_version      = '';
    2020
     21    public $php_memory_limit;
     22
    2123    public $schedules;
    2224    public $crons;
     
    3335    public function __construct() {
    3436        $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' );
    3540
    3641        $this->timeout_late_cron   = 0;
Note: See TracChangeset for help on using the changeset viewer.