Opened 5 months ago
Last modified 3 months ago
#58265 new enhancement
Show defined but empty values for constants in Site Health
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | |
Component: | Site Health | Keywords: | has-screenshots good-first-bug has-patch |
Focuses: | Cc: |
Description
Right now, for example if DB_COLLATE
is defined as ''
, the value will not be shown in the WordPress Constants list, there's just an empty space. What about exchanging empty, but defined values for "Defined, but empty" or "empty value" or something similar for more clarity?
Patching class-wp-debug-data.php, ~L. 333 does the job:
'value' => ( defined( 'DB_COLLATE' ) ? ( DB_COLLATE === '' ? __( 'Defined as empty' ) : DB_COLLATE ) : __( 'Undefined' ) ),
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Of course if this would be welcomed, debug should also be altered