WordPress.org

Make WordPress Core

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

File wordpress-importer-i18n-fix.patch, 1.2 KB (added by SergeyBiryukov, 3 years ago)
  • trunk/wordpress-importer.php

     
    980980        } 
    981981} 
    982982 
    983 /** 
    984  * WordPress Importer object for registering the import callback 
    985  * @global WP_Import $wp_import 
    986  */ 
    987 $wp_import = new WP_Import(); 
    988 register_importer( 'wordpress', 'WordPress', __('Import <strong>posts, pages, comments, custom fields, categories, and tags</strong> from a WordPress export file.', 'wordpress-importer'), array( $wp_import, 'dispatch' ) ); 
    989  
    990983} // class_exists( 'WP_Importer' ) 
    991984 
    992985function wordpress_importer_init() { 
    993986    load_plugin_textdomain( 'wordpress-importer', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' ); 
     987 
     988        /** 
     989         * WordPress Importer object for registering the import callback 
     990         * @global WP_Import $wp_import 
     991         */ 
     992        $wp_import = new WP_Import(); 
     993        register_importer( 'wordpress', 'WordPress', __('Import <strong>posts, pages, comments, custom fields, categories, and tags</strong> from a WordPress export file.', 'wordpress-importer'), array( $wp_import, 'dispatch' ) ); 
    994994} 
    995 add_action( 'init', 'wordpress_importer_init' ); 
     995add_action( 'admin_init', 'wordpress_importer_init' );