WordPress.org

Plugin Directory

Changeset 574131


Ignore:
Timestamp:
07/18/12 14:36:28 (22 months ago)
Author:
dllh
Message:

Fixes an issue in which the importer was calling l10n functions before textdomain was loaded, props @westi.

Location:
livejournal-importer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • livejournal-importer/trunk/livejournal-importer.php

    r345777 r574131  
    11161116} 
    11171117 
    1118 $lj_api_import = new LJ_API_Import(); 
    1119  
    1120 register_importer( 'livejournal', __( 'LiveJournal' , 'livejournal-importer'), __( 'Import posts from LiveJournal using their API.' , 'livejournal-importer'), array( $lj_api_import, 'dispatch' ) ); 
    1121  
    11221118} // class_exists( 'WP_Importer' ) 
    11231119 
    11241120function livejournal_importer_init() { 
    1125     load_plugin_textdomain( 'livejournal-importer', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' ); 
     1121    global $lj_api_import; 
     1122 
     1123    load_plugin_textdomain( 'livejournal-importer', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );  
     1124    $lj_api_import = new LJ_API_Import(); 
     1125 
     1126    register_importer( 'livejournal', __( 'LiveJournal' , 'livejournal-importer'), __( 'Import posts from LiveJournal using their API.' , 'livejournal-importer'), array( $lj_api_import, 'dispatch' ) ); 
    11261127} 
    11271128add_action( 'init', 'livejournal_importer_init' ); 
  • livejournal-importer/trunk/readme.txt

    r547678 r574131  
    55Requires at least: 3.0 
    66Tested up to: 3.4 
    7 Stable tag: 0.4 
     7Stable tag: 0.5 
    88License: GPLv2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    2727== Changelog == 
    2828 
     29= 0.5 = 
     30* Fix order of translation functions loading so that translations can actually be rendered 
     31 
    2932= 0.4 = 
    3033* Fix AJAX handler to use the global and have the class defined and instantiated 
Note: See TracChangeset for help on using the changeset viewer.