WordPress.org

Make WordPress Core

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

File blogware-importer-i18n-fix.patch, 940 bytes (added by SergeyBiryukov, 7 years ago)
  • trunk/blogware-importer.php

     
    221221        }
    222222}
    223223
    224 $blogware_import = new BW_Import();
    225 
    226 register_importer('blogware', __('Blogware', 'blogware-importer'), __('Import posts from Blogware.', 'blogware-importer'), array ($blogware_import, 'dispatch'));
    227 
    228224} // class_exists( 'WP_Importer' )
    229225
    230226function blogware_importer_init() {
    231227    load_plugin_textdomain( 'blogware-importer', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
     228
     229        $blogware_import = new BW_Import();
     230        register_importer('blogware', __('Blogware', 'blogware-importer'), __('Import posts from Blogware.', 'blogware-importer'), array ($blogware_import, 'dispatch'));
    232231}
    233 add_action( 'init', 'blogware_importer_init' );
     232add_action( 'admin_init', 'blogware_importer_init' );