diff --git a/assets/js/eael-scripts.js b/assets/js/eael-scripts.js index 46c4a9c40..f7fe89c9d 100755 --- a/assets/js/eael-scripts.js +++ b/assets/js/eael-scripts.js @@ -204,7 +204,6 @@ } var AdvanceTabHandler = function ($scope, $) { - console.log('running'); var $currentTab = $scope.find('.eael-advance-tabs'), $currentTabId = '#' + $currentTab.attr('id').toString(); @@ -621,7 +620,7 @@ settings = settings; } } else { - if (theme !== '') { + if (typeof theme != 'undefined' && theme !== '') { particlesJS('eael-section-particles-' + sectionId, theme); } } diff --git a/includes/eae-posts-group-control.php b/includes/eae-posts-group-control.php index 8cf40bbf5..9573f453f 100755 --- a/includes/eae-posts-group-control.php +++ b/includes/eae-posts-group-control.php @@ -17,26 +17,6 @@ public static function get_type() { return 'eaeposts'; } - public static function on_export_remove_setting_from_element( $element, $control_id ) { - unset( $element['settings'][ $control_id . '_posts_ids' ] ); - unset( $element['settings'][ $control_id . '_authors' ] ); - - foreach ( Utils::get_post_types() as $post_type => $label ) { - $taxonomy_filter_args = [ - 'show_in_nav_menus' => true, - 'object_type' => [ $post_type ], - ]; - - $taxonomies = get_taxonomies( $taxonomy_filter_args, 'objects' ); - - foreach ( $taxonomies as $taxonomy => $object ) { - unset( $element['settings'][ $control_id . '_' . $taxonomy . '_ids' ] ); - } - } - - return $element; - } - protected function init_fields() { $fields = [];