WordPress.org

Make WordPress Core

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

File greymatter-importer-i18n-fix.patch, 1006 bytes (added by SergeyBiryukov, 4 years ago)
  • trunk/greymatter-importer.php

     
    343343        } 
    344344} 
    345345 
    346 $gm_import = new GM_Import(); 
    347  
    348 register_importer('greymatter', __('GreyMatter', 'greymatter-importer'), __('Import users, posts, and comments from a Greymatter blog.', 'greymatter-importer'), array ($gm_import, 'dispatch')); 
    349  
    350346} // class_exists( 'WP_Importer' ) 
    351347 
    352348function greymatter_importer_init() { 
    353349    load_plugin_textdomain( 'greymatter-importer', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' ); 
     350 
     351        $gm_import = new GM_Import(); 
     352        register_importer('greymatter', __('GreyMatter', 'greymatter-importer'), __('Import users, posts, and comments from a Greymatter blog.', 'greymatter-importer'), array ($gm_import, 'dispatch')); 
    354353} 
    355 add_action( 'init', 'greymatter_importer_init' ); 
     354add_action( 'admin_init', 'greymatter_importer_init' );