WordPress.org

Make WordPress Core

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

File rss-importer-i18n-fix.patch, 853 bytes (added by SergeyBiryukov, 8 years ago)
  • trunk/rss-importer.php

     
    214214        }
    215215}
    216216
    217 $rss_import = new RSS_Import();
    218 
    219 register_importer('rss', __('RSS', 'rss-importer'), __('Import posts from an RSS feed.', 'rss-importer'), array ($rss_import, 'dispatch'));
    220 
    221217} // class_exists( 'WP_Importer' )
    222218
    223219function rss_importer_init() {
    224220    load_plugin_textdomain( 'rss-importer', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
     221
     222        $rss_import = new RSS_Import();
     223        register_importer('rss', __('RSS', 'rss-importer'), __('Import posts from an RSS feed.', 'rss-importer'), array ($rss_import, 'dispatch'));
    225224}
    226 add_action( 'init', 'rss_importer_init' );
     225add_action( 'admin_init', 'rss_importer_init' );