| @@ -37,11 +37,8 @@ | ||
| 37 | 37 | * |
| 38 | 38 | * @since 1.2 |
| 39 | 39 | */ |
| 40 | 40 | public function wordpress_importer_init() { |
| 41 | - $class = new ReflectionClass( 'WP_Import' ); | |
| 42 | - load_plugin_textdomain( 'wordpress-importer', false, basename( dirname( $class->getFileName() ) ) . '/languages' ); | |
| 43 | - | |
| 44 | 41 | $GLOBALS['wp_import'] = new PLL_WP_Import(); |
| 45 | 42 | register_importer( 'wordpress', 'WordPress', __( 'Import <strong>posts, pages, comments, custom fields, categories, and tags</strong> from a WordPress export file.', 'polylang' ), array( $GLOBALS['wp_import'], 'dispatch' ) ); // phpcs:ignore WordPress.WP.CapitalPDangit.MisspelledInText |
| 46 | 43 | } |
| 47 | 44 | |