Site Health: Display raw value for `max_file_uploads` on Site Health Info screen.

This resolves a fatal error if `strict_types` PHP setting is enabled:
{{{
Argument #1 ($num) must be of type float, string given
}}}

Since the goal of the Site Health Info screen is to display raw values where possible, the `number_format()` call here does not seem to provide any benefit.

Props krishneup, sabernhardt, audrasjb, SergeyBiryukov.
Fixes #60364.
Built from https://develop.svn.wordpress.org/trunk@58847


git-svn-id: http://core.svn.wordpress.org/trunk@58243 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2024-08-04 22:03:17 +00:00
parent 822782a917
commit f2569d2e2d
2 changed files with 2 additions and 2 deletions

View File

@ -554,7 +554,7 @@ class WP_Debug_Data {
); );
$info['wp-media']['fields']['max_file_uploads'] = array( $info['wp-media']['fields']['max_file_uploads'] = array(
'label' => __( 'Max number of files allowed' ), 'label' => __( 'Max number of files allowed' ),
'value' => number_format( $max_file_uploads ), 'value' => $max_file_uploads,
); );
} }

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.7-alpha-58846'; $wp_version = '6.7-alpha-58847';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.