From f2569d2e2d951571d026aef3839a1a262c08b9e8 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 4 Aug 2024 22:03:17 +0000 Subject: [PATCH] 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 --- wp-admin/includes/class-wp-debug-data.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/class-wp-debug-data.php b/wp-admin/includes/class-wp-debug-data.php index 49214ff8ec..116b4517b4 100644 --- a/wp-admin/includes/class-wp-debug-data.php +++ b/wp-admin/includes/class-wp-debug-data.php @@ -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, ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index b484bc6d72..940e0247ed 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.