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:
parent
822782a917
commit
f2569d2e2d
|
@ -554,7 +554,7 @@ class WP_Debug_Data {
|
|||
);
|
||||
$info['wp-media']['fields']['max_file_uploads'] = array(
|
||||
'label' => __( 'Max number of files allowed' ),
|
||||
'value' => number_format( $max_file_uploads ),
|
||||
'value' => $max_file_uploads,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @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.
|
||||
|
|
Loading…
Reference in New Issue