Skip to content

Commit

Permalink
Fix the template area unassigned type string (#29617)
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad authored Mar 8, 2021
1 parent c8c6573 commit b6c3499
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/full-site-editing/template-parts.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,9 @@ function gutenberg_filter_template_part_area_type( $type ) {
if ( in_array( $type, gutenberg_get_allowed_template_part_area_types(), true ) ) {
return $type;
}
$warning_message = '"' . $type . '"';
$warning_message .= __( ' is not a supported wp_template_part_area type and has been added as ', 'gutenberg' );
$warning_message .= '"' . WP_TEMPLATE_PART_AREA_UNCATEGORIZED . '".';

/* translators: %1$s: Template area type, %2$s: the uncategorized template area type. */
$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 );
trigger_error( $warning_message, E_USER_NOTICE );
return WP_TEMPLATE_PART_AREA_UNCATEGORIZED;
}

0 comments on commit b6c3499

Please sign in to comment.