Changeset 53157 for trunk/src/wp-includes/blocks/template-part.php
- Timestamp:
- 04/12/2022 03:10:30 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/template-part.php
r52364 r53157 104 104 } 105 105 106 if ( is_null( $content ) && is_user_logged_in() ) { 106 // WP_DEBUG_DISPLAY must only be honored when WP_DEBUG. This precedent 107 // is set in `wp_debug_mode()`. 108 $is_debug = defined( 'WP_DEBUG' ) && WP_DEBUG && 109 defined( 'WP_DEBUG_DISPLAY' ) && WP_DEBUG_DISPLAY; 110 111 if ( is_null( $content ) && $is_debug ) { 107 112 if ( ! isset( $attributes['slug'] ) ) { 108 113 // If there is no slug this is a placeholder and we dont want to return any message. … … 117 122 118 123 if ( isset( $seen_ids[ $template_part_id ] ) ) { 119 // WP_DEBUG_DISPLAY must only be honored when WP_DEBUG. This precedent120 // is set in `wp_debug_mode()`.121 $is_debug = defined( 'WP_DEBUG' ) && WP_DEBUG &&122 defined( 'WP_DEBUG_DISPLAY' ) && WP_DEBUG_DISPLAY;123 124 124 return $is_debug ? 125 125 // translators: Visible only in the front end, this warning takes the place of a faulty block.
Note: See TracChangeset
for help on using the changeset viewer.