Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/wordpres...
File: wordpress-importer.php
<?php
[0] Fix | Delete
/*
[1] Fix | Delete
* @wordpress-plugin
[2] Fix | Delete
* Plugin Name: WordPress Importer
[3] Fix | Delete
* Plugin URI: https://wordpress.org/plugins/wordpress-importer/
[4] Fix | Delete
* Description: Import posts, pages, comments, custom fields, categories, tags and more from a WordPress export file.
[5] Fix | Delete
* Author: wordpressdotorg
[6] Fix | Delete
* Author URI: https://wordpress.org/
[7] Fix | Delete
* Version: 0.8.2
[8] Fix | Delete
* Requires at least: 5.2
[9] Fix | Delete
* Requires PHP: 5.6
[10] Fix | Delete
* Text Domain: wordpress-importer
[11] Fix | Delete
* License: GPLv2 or later
[12] Fix | Delete
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
[13] Fix | Delete
*/
[14] Fix | Delete
[15] Fix | Delete
if ( ! defined( 'WP_LOAD_IMPORTERS' ) ) {
[16] Fix | Delete
return;
[17] Fix | Delete
}
[18] Fix | Delete
[19] Fix | Delete
/** Display verbose errors */
[20] Fix | Delete
if ( ! defined( 'IMPORT_DEBUG' ) ) {
[21] Fix | Delete
define( 'IMPORT_DEBUG', WP_DEBUG );
[22] Fix | Delete
}
[23] Fix | Delete
[24] Fix | Delete
/** WordPress Import Administration API */
[25] Fix | Delete
require_once ABSPATH . 'wp-admin/includes/import.php';
[26] Fix | Delete
[27] Fix | Delete
if ( ! class_exists( 'WP_Importer' ) ) {
[28] Fix | Delete
$class_wp_importer = ABSPATH . 'wp-admin/includes/class-wp-importer.php';
[29] Fix | Delete
if ( file_exists( $class_wp_importer ) ) {
[30] Fix | Delete
require $class_wp_importer;
[31] Fix | Delete
}
[32] Fix | Delete
}
[33] Fix | Delete
[34] Fix | Delete
/** Functions missing in older WordPress versions. */
[35] Fix | Delete
require_once dirname( __FILE__ ) . '/compat.php';
[36] Fix | Delete
[37] Fix | Delete
/** WXR_Parser class */
[38] Fix | Delete
require_once dirname( __FILE__ ) . '/parsers/class-wxr-parser.php';
[39] Fix | Delete
[40] Fix | Delete
/** WXR_Parser_SimpleXML class */
[41] Fix | Delete
require_once dirname( __FILE__ ) . '/parsers/class-wxr-parser-simplexml.php';
[42] Fix | Delete
[43] Fix | Delete
/** WXR_Parser_XML class */
[44] Fix | Delete
require_once dirname( __FILE__ ) . '/parsers/class-wxr-parser-xml.php';
[45] Fix | Delete
[46] Fix | Delete
/** WXR_Parser_Regex class */
[47] Fix | Delete
require_once dirname( __FILE__ ) . '/parsers/class-wxr-parser-regex.php';
[48] Fix | Delete
[49] Fix | Delete
/** WP_Import class */
[50] Fix | Delete
require_once dirname( __FILE__ ) . '/class-wp-import.php';
[51] Fix | Delete
[52] Fix | Delete
function wordpress_importer_init() {
[53] Fix | Delete
load_plugin_textdomain( 'wordpress-importer' );
[54] Fix | Delete
[55] Fix | Delete
/**
[56] Fix | Delete
* WordPress Importer object for registering the import callback
[57] Fix | Delete
* @global WP_Import $wp_import
[58] Fix | Delete
*/
[59] Fix | Delete
$GLOBALS['wp_import'] = new WP_Import();
[60] Fix | Delete
// phpcs:ignore WordPress.WP.CapitalPDangit
[61] Fix | Delete
register_importer( 'wordpress', 'WordPress', __( 'Import <strong>posts, pages, comments, custom fields, categories, and tags</strong> from a WordPress export file.', 'wordpress-importer' ), array( $GLOBALS['wp_import'], 'dispatch' ) );
[62] Fix | Delete
}
[63] Fix | Delete
add_action( 'admin_init', 'wordpress_importer_init' );
[64] Fix | Delete
[65] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function