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.../src/presente.../admin
File: migration-error-presenter.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Yoast\WP\SEO\Presenters\Admin;
[2] Fix | Delete
[3] Fix | Delete
use WPSEO_Shortlinker;
[4] Fix | Delete
use Yoast\WP\SEO\Presenters\Abstract_Presenter;
[5] Fix | Delete
[6] Fix | Delete
/**
[7] Fix | Delete
* Presenter class for the migration error.
[8] Fix | Delete
*/
[9] Fix | Delete
class Migration_Error_Presenter extends Abstract_Presenter {
[10] Fix | Delete
[11] Fix | Delete
/**
[12] Fix | Delete
* Holds the migration error.
[13] Fix | Delete
*
[14] Fix | Delete
* The array holds the following values if filled:
[15] Fix | Delete
* - int|false $time The timestamp.
[16] Fix | Delete
* - string $version The Yoast SEO version.
[17] Fix | Delete
* - string $message The error message.
[18] Fix | Delete
*
[19] Fix | Delete
* @var array
[20] Fix | Delete
*/
[21] Fix | Delete
protected $migration_error;
[22] Fix | Delete
[23] Fix | Delete
/**
[24] Fix | Delete
* Migration_Error_Presenter constructor.
[25] Fix | Delete
*
[26] Fix | Delete
* @param array $migration_error The migration error.
[27] Fix | Delete
*/
[28] Fix | Delete
public function __construct( $migration_error ) {
[29] Fix | Delete
$this->migration_error = $migration_error;
[30] Fix | Delete
}
[31] Fix | Delete
[32] Fix | Delete
/**
[33] Fix | Delete
* Presents the migration error that occurred.
[34] Fix | Delete
*
[35] Fix | Delete
* @return string The error HTML.
[36] Fix | Delete
*/
[37] Fix | Delete
public function present() {
[38] Fix | Delete
$message = \sprintf(
[39] Fix | Delete
/* translators: %s: Yoast SEO. */
[40] Fix | Delete
\esc_html__( '%s had problems creating the database tables needed to speed up your site.', 'wordpress-seo' ),
[41] Fix | Delete
'Yoast SEO'
[42] Fix | Delete
);
[43] Fix | Delete
$support = \sprintf(
[44] Fix | Delete
/* translators: %1$s: link to help article about solving table issue. %2$s: is anchor closing. */
[45] Fix | Delete
\esc_html__( 'Please read %1$sthis help article%2$s to find out how to resolve this problem.', 'wordpress-seo' ),
[46] Fix | Delete
'<a href="' . WPSEO_Shortlinker::get( 'https://yoa.st/3-6' ) . '">',
[47] Fix | Delete
'</a>'
[48] Fix | Delete
);
[49] Fix | Delete
$reassurance = \sprintf(
[50] Fix | Delete
/* translators: %s: Yoast SEO. */
[51] Fix | Delete
\esc_html__( 'Your site will continue to work normally, but won\'t take full advantage of %s.', 'wordpress-seo' ),
[52] Fix | Delete
'Yoast SEO'
[53] Fix | Delete
);
[54] Fix | Delete
[55] Fix | Delete
$debug_info = \sprintf(
[56] Fix | Delete
'<details><summary>%1$s</summary><p>%2$s</p></details>',
[57] Fix | Delete
\esc_html__( 'Show debug information', 'wordpress-seo' ),
[58] Fix | Delete
\esc_html( $this->migration_error['message'] )
[59] Fix | Delete
);
[60] Fix | Delete
[61] Fix | Delete
return \sprintf(
[62] Fix | Delete
'<div class="notice notice-error"><p>%1$s</p><p>%2$s</p><p>%3$s</p>%4$s</div>',
[63] Fix | Delete
$message,
[64] Fix | Delete
$support,
[65] Fix | Delete
$reassurance,
[66] Fix | Delete
$debug_info
[67] Fix | Delete
);
[68] Fix | Delete
}
[69] Fix | Delete
}
[70] Fix | Delete
[71] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function