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: search-engines-discouraged-presenter.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Yoast\WP\SEO\Presenters\Admin;
[2] Fix | Delete
[3] Fix | Delete
use Yoast\WP\SEO\Presenters\Abstract_Presenter;
[4] Fix | Delete
[5] Fix | Delete
/**
[6] Fix | Delete
* Class Search_Engines_Discouraged_Presenter.
[7] Fix | Delete
*/
[8] Fix | Delete
class Search_Engines_Discouraged_Presenter extends Abstract_Presenter {
[9] Fix | Delete
[10] Fix | Delete
/**
[11] Fix | Delete
* Returns the notification as an HTML string.
[12] Fix | Delete
*
[13] Fix | Delete
* @return string The notification in an HTML string representation.
[14] Fix | Delete
*/
[15] Fix | Delete
public function present() {
[16] Fix | Delete
$notification_text = '<p>';
[17] Fix | Delete
$notification_text .= $this->get_message();
[18] Fix | Delete
$notification_text .= '</p>';
[19] Fix | Delete
[20] Fix | Delete
return $notification_text;
[21] Fix | Delete
}
[22] Fix | Delete
[23] Fix | Delete
/**
[24] Fix | Delete
* Returns the message to show.
[25] Fix | Delete
*
[26] Fix | Delete
* @return string The message.
[27] Fix | Delete
*/
[28] Fix | Delete
protected function get_message() {
[29] Fix | Delete
return \sprintf(
[30] Fix | Delete
'<strong>%1$s</strong> %2$s <button type="button" id="robotsmessage-dismiss-button" class="button-link hide-if-no-js" data-nonce="%3$s">%4$s</button>',
[31] Fix | Delete
\esc_html__( 'Huge SEO Issue: You\'re blocking access to robots.', 'wordpress-seo' ),
[32] Fix | Delete
\sprintf(
[33] Fix | Delete
/* translators: 1: Link start tag to the WordPress Reading Settings page, 2: Link closing tag. */
[34] Fix | Delete
\esc_html__( 'If you want search engines to show this site in their results, you must %1$sgo to your Reading Settings%2$s and uncheck the box for Search Engine Visibility.', 'wordpress-seo' ),
[35] Fix | Delete
'<a href="' . \esc_url( \admin_url( 'options-reading.php' ) ) . '">',
[36] Fix | Delete
'</a>'
[37] Fix | Delete
),
[38] Fix | Delete
\esc_js( \wp_create_nonce( 'wpseo-ignore' ) ),
[39] Fix | Delete
\esc_html__( 'I don\'t want this site to show in the search results.', 'wordpress-seo' )
[40] Fix | Delete
);
[41] Fix | Delete
}
[42] Fix | Delete
}
[43] Fix | Delete
[44] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function