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.../public_h.../wp-conte.../plugins/wordpres.../src/presente.../admin
File: woocommerce-beta-editor-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\Helpers\Short_Link_Helper;
[4] Fix | Delete
use Yoast\WP\SEO\Presenters\Abstract_Presenter;
[5] Fix | Delete
[6] Fix | Delete
/**
[7] Fix | Delete
* Class Woocommerce_Beta_Editor_Presenter.
[8] Fix | Delete
*/
[9] Fix | Delete
class Woocommerce_Beta_Editor_Presenter extends Abstract_Presenter {
[10] Fix | Delete
[11] Fix | Delete
/**
[12] Fix | Delete
* The short link helper.
[13] Fix | Delete
*
[14] Fix | Delete
* @var Short_Link_Helper
[15] Fix | Delete
*/
[16] Fix | Delete
protected $short_link_helper;
[17] Fix | Delete
[18] Fix | Delete
/**
[19] Fix | Delete
* Woocommerce_Beta_Editor_Presenter constructor.
[20] Fix | Delete
*
[21] Fix | Delete
* @param Short_Link_Helper $short_link_helper The short link helper.
[22] Fix | Delete
*/
[23] Fix | Delete
public function __construct( Short_Link_Helper $short_link_helper ) {
[24] Fix | Delete
$this->short_link_helper = $short_link_helper;
[25] Fix | Delete
}
[26] Fix | Delete
[27] Fix | Delete
/**
[28] Fix | Delete
* Returns the notification as an HTML string.
[29] Fix | Delete
*
[30] Fix | Delete
* @return string The notification in an HTML string representation.
[31] Fix | Delete
*/
[32] Fix | Delete
public function present() {
[33] Fix | Delete
$notification_text = '<p>';
[34] Fix | Delete
$notification_text .= $this->get_message();
[35] Fix | Delete
$notification_text .= '</p>';
[36] Fix | Delete
[37] Fix | Delete
return $notification_text;
[38] Fix | Delete
}
[39] Fix | Delete
[40] Fix | Delete
/**
[41] Fix | Delete
* Returns the message to show.
[42] Fix | Delete
*
[43] Fix | Delete
* @return string The message.
[44] Fix | Delete
*/
[45] Fix | Delete
protected function get_message() {
[46] Fix | Delete
return \sprintf(
[47] Fix | Delete
'<strong>%1$s</strong> %2$s',
[48] Fix | Delete
\esc_html__( 'Compatibility issue: Yoast SEO is incompatible with the beta WooCommerce product editor.', 'wordpress-seo' ),
[49] Fix | Delete
\sprintf(
[50] Fix | Delete
/* translators: 1: Yoast SEO, 2: Link start tag to the Learn more link, 3: Link closing tag. */
[51] Fix | Delete
\esc_html__( 'The %1$s interface is currently unavailable in the beta WooCommerce product editor. To resolve any issues, please disable the beta editor. %2$sLearn how to disable the beta WooCommerce product editor.%3$s', 'wordpress-seo' ),
[52] Fix | Delete
'Yoast SEO',
[53] Fix | Delete
'<a href="' . \esc_url( $this->short_link_helper->get( 'https://yoa.st/learn-how-disable-beta-woocommerce-product-editor' ) ) . '" target="_blank">',
[54] Fix | Delete
'</a>'
[55] Fix | Delete
)
[56] Fix | Delete
);
[57] Fix | Delete
}
[58] Fix | Delete
}
[59] Fix | Delete
[60] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function