WordPress.org

Make WordPress Core

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

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

     
    10961096 
    10971097} 
    10981098 
    1099 $lj_api_import = new LJ_API_Import(); 
    1100  
    1101 register_importer( 'livejournal', __( 'LiveJournal' , 'livejournal-importer'), __( 'Import posts from LiveJournal using their API.' , 'livejournal-importer'), array( $lj_api_import, 'dispatch' ) ); 
    1102  
    11031099} // class_exists( 'WP_Importer' ) 
    11041100 
    11051101function livejournal_importer_init() { 
    11061102    load_plugin_textdomain( 'livejournal-importer', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' ); 
     1103 
     1104        $lj_api_import = new LJ_API_Import(); 
     1105        register_importer( 'livejournal', __( 'LiveJournal' , 'livejournal-importer'), __( 'Import posts from LiveJournal using their API.' , 'livejournal-importer'), array( $lj_api_import, 'dispatch' ) ); 
    11071106} 
    1108 add_action( 'init', 'livejournal_importer_init' ); 
     1107add_action( 'admin_init', 'livejournal_importer_init' );