| @@ -12,11 +12,11 @@ | ||
| 12 | 12 | */ |
| 13 | 13 | function load() { |
| 14 | 14 | require_once ABSPATH . 'wp-admin/includes/import.php'; |
| 15 | 15 | |
| 16 | - if ( ! \class_exists( 'WP_Importer' ) ) { | |
| 16 | + if ( ! class_exists( 'WP_Importer' ) ) { | |
| 17 | 17 | $class_wp_importer = ABSPATH . 'wp-admin/includes/class-wp-importer.php'; |
| 18 | - if ( \file_exists( $class_wp_importer ) ) { | |
| 18 | + if ( file_exists( $class_wp_importer ) ) { | |
| 19 | 19 | require_once $class_wp_importer; |
| 20 | 20 | } |
| 21 | 21 | } |
| 22 | 22 | |
| @@ -24,15 +24,8 @@ | ||
| 24 | 24 | 'mastodon', |
| 25 | 25 | \__( 'Mastodon (Beta)', 'activitypub' ), |
| 26 | 26 | \__( 'Import content from Mastodon.', 'activitypub' ), |
| 27 | 27 | array( __NAMESPACE__ . '\Mastodon', 'dispatch' ) |
| 28 | - ); | |
| 29 | - | |
| 30 | - \register_importer( | |
| 31 | - 'blocklist', | |
| 32 | - \__( 'Domain Blocklist', 'activitypub' ), | |
| 33 | - \__( 'Import a domain blocklist in CSV format (Mastodon, IFTAS DNI, etc.)', 'activitypub' ), | |
| 34 | - array( __NAMESPACE__ . '\Blocklist', 'dispatch' ) | |
| 35 | 28 | ); |
| 36 | 29 | |
| 37 | 30 | if ( '1' === \get_option( 'activitypub_following_ui', '0' ) ) { |
| 38 | 31 | \register_importer( |