From 12a0205829c1411f16b4e216a713a153bcc62e2f Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Thu, 27 Jul 2023 10:08:40 +0000 Subject: [PATCH] Editor: Revert [56316]. This reverts [56316] as it needs to be fixed by updating npm packages. Unprops audrasjb. Props swissspidy. See #58920. git-svn-id: https://develop.svn.wordpress.org/trunk@56317 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/blocks/template-part.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/blocks/template-part.php b/src/wp-includes/blocks/template-part.php index 86a1feefd6..1066aa0141 100644 --- a/src/wp-includes/blocks/template-part.php +++ b/src/wp-includes/blocks/template-part.php @@ -250,7 +250,7 @@ function build_template_part_block_instance_variations() { 'area' => $template_part->area, ), 'scope' => array( 'inserter' ), - 'icon' => isset( $icon_by_area[ $template_part->area ] ) ? $icon_by_area[ $template_part->area ] : null, + 'icon' => $icon_by_area[ $template_part->area ], 'example' => array( 'attributes' => array( 'slug' => $template_part->slug,