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
This commit is contained in:
parent
b58ed80f20
commit
c5a0103fb5
|
@ -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' ),
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue