[wp-trac] [WordPress Trac] #58265: Show defined but empty values for constants in Site Health

WordPress Trac noreply at wordpress.org
Sat May 6 11:22:27 UTC 2023


#58265: Show defined but empty values for constants in Site Health
-------------------------+-----------------------------
 Reporter:  Presskopp    |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Site Health  |    Version:
 Severity:  normal       |   Keywords:  has-screenshots
  Focuses:               |
-------------------------+-----------------------------
 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' ) ),
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58265>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list