diff --git a/.eslintrc.js b/.eslintrc.js index ea9ee2a4f..d8b6d9e07 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -28,6 +28,7 @@ module.exports = { }, globals: { 'tainacan_plugin': true, + 'tainacan_blocks': true, '_': true, 'jQuery': true, 'tainacan_extra_components': true, diff --git a/src/classes/exporter/class-tainacan-export-handler.php b/src/classes/exporter/class-tainacan-export-handler.php index 8d84c3e32..2b60a3e4b 100644 --- a/src/classes/exporter/class-tainacan-export-handler.php +++ b/src/classes/exporter/class-tainacan-export-handler.php @@ -20,16 +20,16 @@ class Export_Handler { 'class_name' => '\Tainacan\Exporter\CSV' ]); - $this->register_exporter([ - 'name' => 'Vocabulary CSV', - 'description' => __('Allows you to export a taxonomy to a CSV file', 'tainacan'), - 'slug' => 'vocabularycsv', - 'class_name' => '\Tainacan\Exporter\Term_Exporter', - 'manual_mapping' => false, - 'manual_collection' => false - ]); - - do_action('tainacan-register-exporters'); + $this->register_exporter([ + 'name' => 'Vocabulary CSV', + 'description' => __('Allows you to export a taxonomy to a CSV file', 'tainacan'), + 'slug' => 'vocabularycsv', + 'class_name' => '\Tainacan\Exporter\Term_Exporter', + 'manual_mapping' => false, + 'manual_collection' => false + ]); + + do_action('tainacan-register-exporters', $this); add_action( 'tainacan-enqueue-admin-scripts', array($this, 'enqueue_scripts') ); } diff --git a/src/views/admin/components/navigation/tainacan-repository-subheader.vue b/src/views/admin/components/navigation/tainacan-repository-subheader.vue index f5435bcb6..1a68aa024 100644 --- a/src/views/admin/components/navigation/tainacan-repository-subheader.vue +++ b/src/views/admin/components/navigation/tainacan-repository-subheader.vue @@ -9,7 +9,7 @@ {{ collection && collection.name ? collection.name : '' }}