| @@ -61,9 +61,9 @@ | ||
| 61 | 61 | if ( empty( $templates ) || ! is_array( $templates ) ) { |
| 62 | 62 | return; |
| 63 | 63 | } |
| 64 | 64 | foreach ( $templates as $id => $template ) { |
| 65 | - if ( ! isset( $template['data'] ) && !isset( $template['__attachments']) ) { | |
| 65 | + if ( ! isset( $template['data'] ) && !isset( $template['__attachments']) && !isset($template['has_logo']) ) { | |
| 66 | 66 | continue; |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | // if ( ! isset( $template['data']['form'] ) && ! isset( $template['data']['nav_menus'] )) { |
| @@ -128,9 +128,10 @@ | ||
| 128 | 128 | $path .= $this->sub_type . DIRECTORY_SEPARATOR; |
| 129 | 129 | } |
| 130 | 130 | $path .= "{$old_template_id}.json"; |
| 131 | 131 | $template_json = Utils::read_json_file( $path ); |
| 132 | - $this->json->prepare( $template_json, $template_settings, $this->extra_content['form'][ $old_template_id ] ?? [] )->update(); | |
| 132 | + $params = $this->origin->get_request_params(); | |
| 133 | + $this->json->prepare( $template_json, $template_settings, $this->extra_content['form'][ $old_template_id ] ?? [], $params )->update(); | |
| 133 | 134 | |
| 134 | 135 | // Broadcast Log |
| 135 | 136 | $this->processed_items += 1; |
| 136 | 137 | $progress = floor( ( 100 * $this->processed_items ) / $this->total_counts ); |