WordPress.org

Make WordPress Core

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

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

     
    679679        }
    680680}
    681681
    682 $dc_import = new Dotclear_Import();
    683 
    684 register_importer('dotclear', __('DotClear', 'dotclear-importer'), __('Import categories, users, posts, comments, and links from a DotClear blog.', 'dotclear-importer'), array ($dc_import, 'dispatch'));
    685 
    686682} // class_exists( 'WP_Importer' )
    687683
    688684function dotclear_importer_init() {
    689685    load_plugin_textdomain( 'dotclear-importer', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
     686
     687        $dc_import = new Dotclear_Import();
     688        register_importer('dotclear', __('DotClear', 'dotclear-importer'), __('Import categories, users, posts, comments, and links from a DotClear blog.', 'dotclear-importer'), array ($dc_import, 'dispatch'));
    690689}
    691 add_action( 'init', 'dotclear_importer_init' );
     690add_action( 'admin_init', 'dotclear_importer_init' );