Ticket #16012: wordpress-importer-i18n-fix.patch
File wordpress-importer-i18n-fix.patch, 1.2 KB (added by , 14 years ago) |
---|
-
trunk/wordpress-importer.php
980 980 } 981 981 } 982 982 983 /**984 * WordPress Importer object for registering the import callback985 * @global WP_Import $wp_import986 */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 990 983 } // class_exists( 'WP_Importer' ) 991 984 992 985 function wordpress_importer_init() { 993 986 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' ) ); 994 994 } 995 add_action( ' init', 'wordpress_importer_init' );995 add_action( 'admin_init', 'wordpress_importer_init' );