Make WordPress Core

Changeset 58847


Ignore:
Timestamp:
08/04/2024 10:01:28 PM (2 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-debug-data.php

    r58830 r58847  
    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        }
Note: See TracChangeset for help on using the changeset viewer.