We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4293ba4 commit 3e4cab6Copy full SHA for 3e4cab6
.github/changelog/1561-from-description
@@ -0,0 +1,4 @@
1
+Significance: patch
2
+Type: changed
3
+
4
+Importers are loaded on admin-specific hook.
activitypub.php
@@ -109,7 +109,7 @@ function plugin_admin_init() {
109
110
if ( defined( 'WP_LOAD_IMPORTERS' ) && WP_LOAD_IMPORTERS ) {
111
require_once __DIR__ . '/includes/wp-admin/import/load.php';
112
- \add_action( 'init', __NAMESPACE__ . '\WP_Admin\Import\load' );
+ \add_action( 'admin_init', __NAMESPACE__ . '\WP_Admin\Import\load' );
113
}
114
115
\add_action( 'plugins_loaded', __NAMESPACE__ . '\plugin_admin_init' );
0 commit comments