mirror of
https://github.com/proelements/proelements.git
synced 2026-04-05 20:13:47 +00:00
v3.34.0
This commit is contained in:
@@ -413,7 +413,7 @@ export function KitContentCustomizationDialog( {
|
||||
<SubSetting
|
||||
key={ taxonomy.value }
|
||||
label={ taxonomy.label }
|
||||
settingKey="taxonomies"
|
||||
settingKey={ `taxonomies_${ taxonomy.value }` }
|
||||
checked={ settings.taxonomies.includes( taxonomy.value ) }
|
||||
disabled={ ! isHighTier() }
|
||||
tooltip={ ! isHighTier() }
|
||||
|
||||
@@ -224,6 +224,7 @@ export function KitSettingsCustomizationDialog( {
|
||||
checked={ settings.customCode }
|
||||
disabled={ ( isImport && ! data?.uploadedData?.manifest?.[ 'custom-code' ] ) || ! isHighTier() }
|
||||
tooltip={ ! isHighTier() }
|
||||
notExported={ isImport && ! data?.uploadedData?.manifest?.[ 'custom-code' ] }
|
||||
/>
|
||||
</Stack>
|
||||
</SettingSection>
|
||||
|
||||
@@ -68,7 +68,11 @@ class Site_Settings extends Import_Runner_Base {
|
||||
$new_kit = Plugin::elementor()->kits_manager->create_new_kit( $title, $new_site_settings );
|
||||
$this->imported_kit_id = (int) $new_kit;
|
||||
|
||||
$result['site-settings'] = (bool) $new_kit;
|
||||
$result['site-settings']['imported_kit_id'] = $this->imported_kit_id;
|
||||
|
||||
foreach ( $new_site_settings as $key => $value ) {
|
||||
$result['site-settings'][ $key ] = $value;
|
||||
}
|
||||
|
||||
if ( $customization['theme'] ?? false ) {
|
||||
$import_theme_result = $runner->import_theme( $data );
|
||||
|
||||
@@ -12,7 +12,7 @@ class Taxonomies extends Import_Runner_Base {
|
||||
public function handle( $result, array $data, array $imported_data, array $customization, $runner ) {
|
||||
$path = $data['extracted_directory_path'] . 'taxonomies/';
|
||||
$this->import_session_id = $data['session_id'];
|
||||
$selected_taxonomies = $data['selected_taxonomies'] ?? [];
|
||||
$selected_taxonomies = $customization['taxonomies'] ?? [];
|
||||
|
||||
$wp_builtin_post_types = ImportExportUtils::get_builtin_wp_post_types();
|
||||
$selected_custom_post_types = isset( $data['selected_custom_post_types'] ) ? $data['selected_custom_post_types'] : [];
|
||||
|
||||
Reference in New Issue
Block a user