mirror of
git://develop.git.wordpress.org/
synced 2025-03-19 11:29:48 +01:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@58847 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e4b3f44306
commit
54e2272b95
@ -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,
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user