WordPress.org

Make WordPress Core

Ticket #16012: movabletype-importer-i18n-fix.patch

File movabletype-importer-i18n-fix.patch, 1.0 KB (added by SergeyBiryukov, 7 years ago)
  • trunk/movabletype-importer.php

     
    522522        }
    523523}
    524524
    525 $mt_import = new MT_Import();
    526 
    527 register_importer('mt', __('Movable Type and TypePad', 'movabletype-importer'), __('Import posts and comments from a Movable Type or TypePad blog.', 'movabletype-importer'), array ($mt_import, 'dispatch'));
    528 
    529525} // class_exists( 'WP_Importer' )
    530526
    531527function movabletype_importer_init() {
    532528    load_plugin_textdomain( 'movabletype-importer', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
     529
     530        $mt_import = new MT_Import();
     531        register_importer('mt', __('Movable Type and TypePad', 'movabletype-importer'), __('Import posts and comments from a Movable Type or TypePad blog.', 'movabletype-importer'), array ($mt_import, 'dispatch'));
    533532}
    534 add_action( 'init', 'movabletype_importer_init' );
     533add_action( 'admin_init', 'movabletype_importer_init' );