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/clone/wp-conte.../plugins/wordpres.../admin/views/tabs/tool
File: import-seo.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* WPSEO plugin file.
[2] Fix | Delete
*
[3] Fix | Delete
* @package WPSEO\Admin\Views
[4] Fix | Delete
*/
[5] Fix | Delete
[6] Fix | Delete
if ( ! defined( 'WPSEO_VERSION' ) ) {
[7] Fix | Delete
header( 'Status: 403 Forbidden' );
[8] Fix | Delete
header( 'HTTP/1.1 403 Forbidden' );
[9] Fix | Delete
exit();
[10] Fix | Delete
}
[11] Fix | Delete
[12] Fix | Delete
// Determine if we have plugins we can import from. If so, load that tab. Otherwise, load an empty tab.
[13] Fix | Delete
$import_check = new WPSEO_Import_Plugins_Detector();
[14] Fix | Delete
$import_check->detect();
[15] Fix | Delete
if ( count( $import_check->needs_import ) === 0 ) {
[16] Fix | Delete
echo '<h2>', esc_html__( 'Import from other SEO plugins', 'wordpress-seo' ), '</h2>';
[17] Fix | Delete
echo '<p>';
[18] Fix | Delete
printf(
[19] Fix | Delete
/* translators: %s expands to Yoast SEO */
[20] Fix | Delete
esc_html__( '%s did not detect any plugin data from plugins it can import from.', 'wordpress-seo' ),
[21] Fix | Delete
'Yoast SEO'
[22] Fix | Delete
);
[23] Fix | Delete
echo '</p>';
[24] Fix | Delete
[25] Fix | Delete
return;
[26] Fix | Delete
}
[27] Fix | Delete
[28] Fix | Delete
/**
[29] Fix | Delete
* Creates a select box given a name and plugins array.
[30] Fix | Delete
*
[31] Fix | Delete
* @param string $name Name field for the select field.
[32] Fix | Delete
* @param array $plugins An array of plugins and classes.
[33] Fix | Delete
*
[34] Fix | Delete
* @return void
[35] Fix | Delete
*/
[36] Fix | Delete
function wpseo_import_external_select( $name, $plugins ) {
[37] Fix | Delete
esc_html_e( 'Plugin: ', 'wordpress-seo' );
[38] Fix | Delete
echo '<select name="', esc_attr( $name ), '">';
[39] Fix | Delete
foreach ( $plugins as $class => $plugin ) {
[40] Fix | Delete
/* translators: %s is replaced with the name of the plugin we're importing from. */
[41] Fix | Delete
echo '<option value="' . esc_attr( $class ) . '">' . esc_html( $plugin ) . '</option>';
[42] Fix | Delete
}
[43] Fix | Delete
echo '</select>';
[44] Fix | Delete
}
[45] Fix | Delete
[46] Fix | Delete
?>
[47] Fix | Delete
<h2><?php esc_html_e( 'Import from other SEO plugins', 'wordpress-seo' ); ?></h2>
[48] Fix | Delete
<p>
[49] Fix | Delete
<?php esc_html_e( 'We\'ve detected data from one or more SEO plugins on your site. Please follow the following steps to import that data:', 'wordpress-seo' ); ?>
[50] Fix | Delete
</p>
[51] Fix | Delete
[52] Fix | Delete
<div class="tab-block">
[53] Fix | Delete
<h3><?php esc_html_e( 'Step 1: Create a backup', 'wordpress-seo' ); ?></h3>
[54] Fix | Delete
<p>
[55] Fix | Delete
<?php esc_html_e( 'Please make a backup of your database before starting this process.', 'wordpress-seo' ); ?>
[56] Fix | Delete
</p>
[57] Fix | Delete
</div>
[58] Fix | Delete
[59] Fix | Delete
<div class="tab-block">
[60] Fix | Delete
<h3><?php esc_html_e( 'Step 2: Import', 'wordpress-seo' ); ?></h3>
[61] Fix | Delete
<p class="yoast-import-explanation">
[62] Fix | Delete
<?php
[63] Fix | Delete
printf(
[64] Fix | Delete
/* translators: 1: expands to Yoast SEO */
[65] Fix | Delete
esc_html__( 'This will import the post metadata like SEO titles and descriptions into your %1$s metadata. It will only do this when there is no existing %1$s metadata yet. The original data will remain in place.', 'wordpress-seo' ),
[66] Fix | Delete
'Yoast SEO'
[67] Fix | Delete
);
[68] Fix | Delete
?>
[69] Fix | Delete
</p>
[70] Fix | Delete
<form action="<?php echo esc_url( admin_url( 'admin.php?page=wpseo_tools&tool=import-export#top#import-seo' ) ); ?>"
[71] Fix | Delete
method="post" accept-charset="<?php echo esc_attr( get_bloginfo( 'charset' ) ); ?>">
[72] Fix | Delete
<?php
[73] Fix | Delete
wp_nonce_field( 'wpseo-import-plugins', '_wpnonce', true, true );
[74] Fix | Delete
wpseo_import_external_select( 'import_external_plugin', $import_check->needs_import );
[75] Fix | Delete
?>
[76] Fix | Delete
<?php
[77] Fix | Delete
[78] Fix | Delete
/**
[79] Fix | Delete
* WARNING: This hook is intended for internal use only.
[80] Fix | Delete
* Don't use it in your code as it will be removed shortly.
[81] Fix | Delete
*/
[82] Fix | Delete
do_action( 'wpseo_import_other_plugins_internal' );
[83] Fix | Delete
[84] Fix | Delete
?>
[85] Fix | Delete
<input type="submit" class="button button-primary" name="import_external"
[86] Fix | Delete
value="<?php esc_attr_e( 'Import', 'wordpress-seo' ); ?>"/>
[87] Fix | Delete
</form>
[88] Fix | Delete
</div>
[89] Fix | Delete
[90] Fix | Delete
<div class="tab-block">
[91] Fix | Delete
<h3><?php esc_html_e( 'Step 3: Check your data', 'wordpress-seo' ); ?></h3>
[92] Fix | Delete
<p>
[93] Fix | Delete
<?php esc_html_e( 'Please check your posts and pages and see if the metadata was successfully imported.', 'wordpress-seo' ); ?>
[94] Fix | Delete
</p>
[95] Fix | Delete
</div>
[96] Fix | Delete
[97] Fix | Delete
<div class="tab-block">
[98] Fix | Delete
<h3><?php esc_html_e( 'Step 4: Go through the first time configuration', 'wordpress-seo' ); ?></h3>
[99] Fix | Delete
<p>
[100] Fix | Delete
<?php
[101] Fix | Delete
printf(
[102] Fix | Delete
/* translators: 1: Link start tag to the First time configuration tab in the General page, 2: Link closing tag. */
[103] Fix | Delete
esc_html__( 'You should finish the %1$sfirst time configuration%2$s to make sure your SEO data has been optimized and you’ve set the essential Yoast SEO settings for your site.', 'wordpress-seo' ),
[104] Fix | Delete
'<a href="' . esc_url( admin_url( 'admin.php?page=wpseo_dashboard#top#first-time-configuration' ) ) . '">',
[105] Fix | Delete
'</a>'
[106] Fix | Delete
);
[107] Fix | Delete
?>
[108] Fix | Delete
</p>
[109] Fix | Delete
</div>
[110] Fix | Delete
[111] Fix | Delete
<div class="tab-block">
[112] Fix | Delete
<h3><?php esc_html_e( 'Step 5: Clean up', 'wordpress-seo' ); ?></h3>
[113] Fix | Delete
<p class="yoast-cleanup-explanation">
[114] Fix | Delete
<?php esc_html_e( 'Once you\'re certain your site is OK, you can clean up. This will remove all the original data.', 'wordpress-seo' ); ?>
[115] Fix | Delete
</p>
[116] Fix | Delete
<form action="<?php echo esc_url( admin_url( 'admin.php?page=wpseo_tools&tool=import-export#top#import-seo' ) ); ?>"
[117] Fix | Delete
method="post" accept-charset="<?php echo esc_attr( get_bloginfo( 'charset' ) ); ?>">
[118] Fix | Delete
<?php
[119] Fix | Delete
wp_nonce_field( 'wpseo-clean-plugins', '_wpnonce', true, true );
[120] Fix | Delete
wpseo_import_external_select( 'clean_external_plugin', $import_check->needs_import );
[121] Fix | Delete
?>
[122] Fix | Delete
<input type="submit" class="button button-primary" name="clean_external"
[123] Fix | Delete
value="<?php esc_attr_e( 'Clean', 'wordpress-seo' ); ?>"/>
[124] Fix | Delete
</form>
[125] Fix | Delete
</div>
[126] Fix | Delete
[127] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function