WordPress.org

Make WordPress Core

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

File textpattern-importer-i18n-fix.patch, 1.1 KB (added by SergeyBiryukov, 7 years ago)
  • trunk/textpattern-importer.php

     
    702702        }
    703703}
    704704
    705 $txp_import = new Textpattern_Import();
    706 
    707 register_importer('textpattern', __('TextPattern', 'textpattern-importer'), __('Import categories, users, posts, comments, and links from a TextPattern blog.', 'textpattern-importer'), array ($txp_import, 'dispatch'));
    708 
    709705} // class_exists( 'WP_Importer' )
    710706
    711707function textpattern_importer_init() {
    712708    load_plugin_textdomain( 'textpattern-importer', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
     709
     710        $txp_import = new Textpattern_Import();
     711        register_importer('textpattern', __('TextPattern', 'textpattern-importer'), __('Import categories, users, posts, comments, and links from a TextPattern blog.', 'textpattern-importer'), array ($txp_import, 'dispatch'));
    713712}
    714 add_action( 'init', 'textpattern_importer_init' );
     713add_action( 'admin_init', 'textpattern_importer_init' );