Skip to content

Commit

Permalink
a nonusing function removed from eae group control and scripts consol…
Browse files Browse the repository at this point in the history
…e error fix
  • Loading branch information
mahafuz committed Feb 28, 2019
1 parent ce77862 commit f3676bb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 22 deletions.
3 changes: 1 addition & 2 deletions assets/js/eael-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@
}

var AdvanceTabHandler = function ($scope, $) {
console.log('running');
var $currentTab = $scope.find('.eael-advance-tabs'),
$currentTabId = '#' + $currentTab.attr('id').toString();

Expand Down Expand Up @@ -621,7 +620,7 @@
settings = settings;
}
} else {
if (theme !== '') {
if (typeof theme != 'undefined' && theme !== '') {
particlesJS('eael-section-particles-' + sectionId, theme);
}
}
Expand Down
20 changes: 0 additions & 20 deletions includes/eae-posts-group-control.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];

Expand Down

0 comments on commit f3676bb

Please sign in to comment.