From 5321a2f0825d69abbf8e5c93f45bd9212a2d7776 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 27 Dec 2020 19:25:48 +0000 Subject: [PATCH] Site Health: Add `WP_MEMORY_LIMIT` constant to debug info. This complements the `WP_MAX_MEMORY_LIMIT` constant previously displayed there. Props sanketchodavadiya, nre, talldanwp, noisysocks. Fixes #51680. git-svn-id: https://develop.svn.wordpress.org/trunk@49908 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-debug-data.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wp-admin/includes/class-wp-debug-data.php b/src/wp-admin/includes/class-wp-debug-data.php index c52f0058b3..f68233dd61 100644 --- a/src/wp-admin/includes/class-wp-debug-data.php +++ b/src/wp-admin/includes/class-wp-debug-data.php @@ -270,6 +270,10 @@ class WP_Debug_Data { 'label' => 'WP_PLUGIN_DIR', 'value' => WP_PLUGIN_DIR, ), + 'WP_MEMORY_LIMIT' => array( + 'label' => 'WP_MEMORY_LIMIT', + 'value' => WP_MEMORY_LIMIT, + ), 'WP_MAX_MEMORY_LIMIT' => array( 'label' => 'WP_MAX_MEMORY_LIMIT', 'value' => WP_MAX_MEMORY_LIMIT,