#58737 closed defect (bug) (fixed)
Site Health Info doesnt show correct value for file_uploads in debug/clipboard text
| Reported by: | Michi91 | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.4 |
| Component: | Site Health | Version: | 6.3 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
With #50038 checks for file_uploads were added in Site Health.
// Add info in Media section. $info['wp-media']['fields']['file_uploads'] = array( 'label' => __( 'File uploads' ), 'value' => empty( ini_get( 'file_uploads' ) ) ? __( 'Disabled' ) : __( 'Enabled' ), 'debug' => 'File uploads is turned off', );
As you can see, the value for the Site Health report is set, but the value for 'debug' / clipboard text is always 'File uploads is turned off'.
### wp-media ### ... file_uploads: File uploads is turned off ...
From my perspective the value for 'debug' should be set to "on", "off" or "true", "false" or even a text, to display the correct value to the report that is copied to the clipboard.
### wp-media ### ... file_uploads: false ...
or
### wp-media ### ... file_uploads: true ...
This is my first ticket here.
I didnt provide a patch yet, as I m not sure what values should be set for 'debug'. I personally would prefere "true" and "false", but as right now the value is a text, I m not sure about the correct way.
Change History (6)
#1
@
3 years ago
This ticket was mentioned in PR #5129 on WordPress/wordpress-develop by MichaelSalp.
3 years ago
#2
- Keywords has-patch added; needs-patch removed
See Ticket.
Trac ticket: https://core.trac.wordpress.org/ticket/58737
@SergeyBiryukov commented on PR #5129:
3 years ago
#6
Thanks for the PR! Merged in r56509.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hi @Michi91,
Nice find! I think you're good to go with just:
I'd like to see you upload your patch. Let's get this into core!