From c5a0103fb5e0fa219604d4e11a933ea59ede565d Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 2 Sep 2023 18:36:24 +0000 Subject: [PATCH] Site Health: Show correct debug value for file uploads. Follow-up to [48535]. Props Michi91, Presskopp. Fixes #58737. Built from https://develop.svn.wordpress.org/trunk@56509 git-svn-id: http://core.svn.wordpress.org/trunk@56021 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-debug-data.php | 5 +++-- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/wp-admin/includes/class-wp-debug-data.php b/wp-admin/includes/class-wp-debug-data.php index 77b5c3f014..d83c873768 100644 --- a/wp-admin/includes/class-wp-debug-data.php +++ b/wp-admin/includes/class-wp-debug-data.php @@ -548,6 +548,7 @@ class WP_Debug_Data { ); } else { // Get the PHP ini directive values. + $file_uploads = ini_get( 'file_uploads' ); $post_max_size = ini_get( 'post_max_size' ); $upload_max_filesize = ini_get( 'upload_max_filesize' ); $max_file_uploads = ini_get( 'max_file_uploads' ); @@ -556,8 +557,8 @@ class WP_Debug_Data { // Add info in Media section. $info['wp-media']['fields']['file_uploads'] = array( 'label' => __( 'File uploads' ), - 'value' => empty( ini_get( 'file_uploads' ) ) ? __( 'Disabled' ) : __( 'Enabled' ), - 'debug' => 'File uploads is turned off', + 'value' => $file_uploads ? __( 'Enabled' ) : __( 'Disabled' ), + 'debug' => $file_uploads, ); $info['wp-media']['fields']['post_max_size'] = array( 'label' => __( 'Max size of post data allowed' ), diff --git a/wp-includes/version.php b/wp-includes/version.php index 28480b34be..d816dc53c5 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.4-alpha-56508'; +$wp_version = '6.4-alpha-56509'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.