WordPress.org

Make WordPress Core

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

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

     
    479479        function WP_Categories_to_Tags() { /* Do nothing. */ }
    480480}
    481481
    482 $wp_cat2tag_importer = new WP_Categories_to_Tags();
    483 register_importer('wpcat2tag', __('Categories and Tags Converter', 'wpcat2tag-importer'), __('Convert existing categories to tags or tags to categories, selectively.', 'wpcat2tag-importer'), array(&$wp_cat2tag_importer, 'init'));
    484 
    485482} // class_exists( 'WP_Importer' )
    486483
    487484function wpcat2tag_importer_init() {
    488485    load_plugin_textdomain( 'wpcat2tag-importer', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
     486
     487        $wp_cat2tag_importer = new WP_Categories_to_Tags();
     488        register_importer('wpcat2tag', __('Categories and Tags Converter', 'wpcat2tag-importer'), __('Convert existing categories to tags or tags to categories, selectively.', 'wpcat2tag-importer'), array(&$wp_cat2tag_importer, 'init'));
    489489}
    490 add_action( 'init', 'wpcat2tag_importer_init' );
     490add_action( 'admin_init', 'wpcat2tag_importer_init' );