From 088bdd1f7c5ac01958480ddf68dbe6ffe958a924 Mon Sep 17 00:00:00 2001 From: Matias Benedetto Date: Tue, 11 Apr 2023 13:03:20 -0300 Subject: [PATCH] Do not call replace_template_namespace when overwrting theme --- admin/create-theme/theme-templates.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/admin/create-theme/theme-templates.php b/admin/create-theme/theme-templates.php index cecab40d..3ce86d27 100644 --- a/admin/create-theme/theme-templates.php +++ b/admin/create-theme/theme-templates.php @@ -111,7 +111,6 @@ public static function add_templates_to_local( $export_type ) { foreach ( $theme_templates->templates as $template ) { $template_data = Theme_Blocks::make_template_images_local( $template ); - $template_data = Theme_Templates::replace_template_namespace( $template_data, $new_slug ); // If there are images in the template, add it as a pattern if ( ! empty( $template_data->media ) ) { @@ -152,7 +151,6 @@ public static function add_templates_to_local( $export_type ) { foreach ( $theme_templates->parts as $template_part ) { $template_data = Theme_Blocks::make_template_images_local( $template_part ); - $template_data = Theme_Templates::replace_template_namespace( $template_data, $new_slug ); // If there are images in the template, add it as a pattern if ( ! empty( $template_data->media ) ) {