From 3afb9a87f9d2e06b007b1db79c3e44a4f6f3c716 Mon Sep 17 00:00:00 2001 From: vnmedeiros Date: Tue, 28 Jan 2020 11:47:46 -0300 Subject: [PATCH] change locale action `tainacan-register-filter-type` #349 --- src/tainacan.php | 1 + src/views/class-tainacan-admin.php | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tainacan.php b/src/tainacan.php index 7ef1190e3..58f9d1097 100644 --- a/src/tainacan.php +++ b/src/tainacan.php @@ -32,6 +32,7 @@ function tainacan_load_plugin_textdomain() { } add_action( 'plugins_loaded', 'tainacan_load_plugin_textdomain' ); +do_action('tainacan-register-filter-type'); add_action( 'after_setup_theme', function() { add_image_size( 'tainacan-small', 40, 40, true ); add_image_size( 'tainacan-medium', 275, 275, true ); diff --git a/src/views/class-tainacan-admin.php b/src/views/class-tainacan-admin.php index 344324bf9..d82377e03 100644 --- a/src/views/class-tainacan-admin.php +++ b/src/views/class-tainacan-admin.php @@ -164,7 +164,6 @@ class Admin { global $TAINACAN_BASE_URL; global $TAINACAN_EXTRA_FILTER_SCRIPTS; - do_action('tainacan-register-filter-type'); $deps = ['underscore', 'media-editor', 'media-views', 'customize-controls']; foreach($TAINACAN_EXTRA_FILTER_SCRIPTS as $dep) { $deps[] = $dep;