Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions admin/create-theme/theme-templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) ) {
Expand Down Expand Up @@ -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 ) ) {
Expand Down