Make WordPress Core

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

File utw-importer-i18n-fix.patch, 1013 bytes (added by SergeyBiryukov, 13 years ago)
  • trunk/utw-importer.php

     
    296296
    297297}
    298298
    299 
    300 // create the import object
    301 $utw_import = new UTW_Import();
    302 
    303 // add it to the import page!
    304 register_importer('utw', 'Ultimate Tag Warrior', __('Import Ultimate Tag Warrior tags into WordPress tags.', 'utw-importer'), array($utw_import, 'dispatch'));
    305 
    306299} // class_exists( 'WP_Importer' )
    307300
    308301function utw_importer_init() {
    309302    load_plugin_textdomain( 'utw-importer', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
     303
     304        // create the import object
     305        $utw_import = new UTW_Import();
     306        // add it to the import page!
     307        register_importer('utw', 'Ultimate Tag Warrior', __('Import Ultimate Tag Warrior tags into WordPress tags.', 'utw-importer'), array($utw_import, 'dispatch'));
    310308}
    311 add_action( 'init', 'utw_importer_init' );
     309add_action( 'admin_init', 'utw_importer_init' );