$warning_message = sprintf( /* translators: %1$s: Template area type, %2$s: the uncategorized template area value. */ __( '"%1$s" is not a supported wp_template_part area value and has been added as "%2$s".' ), $type, WP_TEMPLATE_PART_AREA_UNCATEGORIZED );
// If there's no template set on a new post, use the post format, instead.
if($is_new_post && ! isset($editor_settings['template']) && 'post' === $post->post_type ){ $post_format = get_post_format($post); if(in_array($post_format, array( 'audio', 'gallery', 'image', 'quote', 'video' ), true )){ $editor_settings['template'] = array( array( "core/$post_format" )); } }
if(isset($seen_ids[$template_part_id])){ return$is_debug ? // translators: Visible only in the front end, this warning takes the place of a faulty block.
__( '[block rendering halted]' ) : ''; }