mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-19 13:07:49 +00:00
The constant `WP_DEBUG` is a default constant that is set within `wp_initial_constants()` when not defined. This means the constant will always be defined, thus making the `defined( 'WP_DEBUG' )` unnecessary. Removing the `defined()` provides these benefits: * Makes the code more readable. * Tiny performance optimization. References: * https://github.com/WordPress/gutenberg/pull/45979 Follow-up to [52049]. Props ocean90, spacedmonkey, mamaduka. See #57527. Built from https://develop.svn.wordpress.org/trunk@55141 git-svn-id: http://core.svn.wordpress.org/trunk@54674 1a063a9b-81f0-0310-95a4-ce76da25c4cd