Changeset 57578 for trunk/src/wp-includes/blocks/template-part.php
- Timestamp:
- 02/09/2024 06:20:12 PM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/template-part.php
r57377 r57578 110 110 $is_debug = WP_DEBUG && WP_DEBUG_DISPLAY; 111 111 112 if ( is_null( $content ) && $is_debug) {113 if ( !isset( $attributes['slug'] ) ) {114 // If there is no slug this is a placeholder and we dont want to return any message.115 return;116 }117 return sprintf(118 /* translators: %s: Template part slug. */119 __( 'Template part has been deleted or is unavailable: %s' ),120 $attributes['slug'] 121 );112 if ( is_null( $content ) ) { 113 if ( $is_debug && isset( $attributes['slug'] ) ) { 114 return sprintf( 115 /* translators: %s: Template part slug. */ 116 __( 'Template part has been deleted or is unavailable: %s' ), 117 $attributes['slug'] 118 ); 119 } 120 121 return ''; 122 122 } 123 123
Note: See TracChangeset
for help on using the changeset viewer.