Skip to content

Commit b6c3499

Browse files
authored
Fix the template area unassigned type string (#29617)
1 parent c8c6573 commit b6c3499

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/full-site-editing/template-parts.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,9 @@ function gutenberg_filter_template_part_area_type( $type ) {
195195
if ( in_array( $type, gutenberg_get_allowed_template_part_area_types(), true ) ) {
196196
return $type;
197197
}
198-
$warning_message = '"' . $type . '"';
199-
$warning_message .= __( ' is not a supported wp_template_part_area type and has been added as ', 'gutenberg' );
200-
$warning_message .= '"' . WP_TEMPLATE_PART_AREA_UNCATEGORIZED . '".';
198+
199+
/* translators: %1$s: Template area type, %2$s: the uncategorized template area type. */
200+
$warning_message = sprintf( __( '"%1$s" is not a supported wp_template_part_area type and has been added as "%2$s".', 'gutenberg' ), $type, WP_TEMPLATE_PART_AREA_UNCATEGORIZED );
201201
trigger_error( $warning_message, E_USER_NOTICE );
202202
return WP_TEMPLATE_PART_AREA_UNCATEGORIZED;
203203
}

0 commit comments

Comments
 (0)