Skip to content

Commit 54e2272

Browse files
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
1 parent e4b3f44 commit 54e2272

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-admin/includes/class-wp-debug-data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ public static function debug_data() {
554554
);
555555
$info['wp-media']['fields']['max_file_uploads'] = array(
556556
'label' => __( 'Max number of files allowed' ),
557-
'value' => number_format( $max_file_uploads ),
557+
'value' => $max_file_uploads,
558558
);
559559
}
560560

0 commit comments

Comments
 (0)