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.../debug
File: marker-open-presenter.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Yoast\WP\SEO\Presenters\Debug;
[2] Fix | Delete
[3] Fix | Delete
use Yoast\WP\SEO\Presenters\Abstract_Indexable_Presenter;
[4] Fix | Delete
[5] Fix | Delete
/**
[6] Fix | Delete
* Presenter class for the debug open marker.
[7] Fix | Delete
*/
[8] Fix | Delete
final class Marker_Open_Presenter extends Abstract_Indexable_Presenter {
[9] Fix | Delete
[10] Fix | Delete
/**
[11] Fix | Delete
* Returns the debug close marker.
[12] Fix | Delete
*
[13] Fix | Delete
* @return string The debug close marker.
[14] Fix | Delete
*/
[15] Fix | Delete
public function present() {
[16] Fix | Delete
/**
[17] Fix | Delete
* Filter: 'wpseo_debug_markers' - Allow disabling the debug markers.
[18] Fix | Delete
*
[19] Fix | Delete
* @param bool $show_markers True when the debug markers should be shown.
[20] Fix | Delete
*/
[21] Fix | Delete
if ( ! \apply_filters( 'wpseo_debug_markers', true ) ) {
[22] Fix | Delete
return '';
[23] Fix | Delete
}
[24] Fix | Delete
$version_info = 'v' . \WPSEO_VERSION;
[25] Fix | Delete
[26] Fix | Delete
if ( $this->helpers->product->is_premium() ) {
[27] Fix | Delete
$version_info = $this->construct_version_info();
[28] Fix | Delete
}
[29] Fix | Delete
[30] Fix | Delete
return \sprintf(
[31] Fix | Delete
'<!-- This site is optimized with the %1$s %2$s - https://yoast.com/wordpress/plugins/seo/ -->',
[32] Fix | Delete
\esc_html( $this->helpers->product->get_name() ),
[33] Fix | Delete
$version_info
[34] Fix | Delete
);
[35] Fix | Delete
}
[36] Fix | Delete
[37] Fix | Delete
/**
[38] Fix | Delete
* Gets the plugin version information, including the free version if Premium is used.
[39] Fix | Delete
*
[40] Fix | Delete
* @return string The constructed version information.
[41] Fix | Delete
*/
[42] Fix | Delete
private function construct_version_info() {
[43] Fix | Delete
/**
[44] Fix | Delete
* Filter: 'wpseo_hide_version' - can be used to hide the Yoast SEO version in the debug marker (only available in Yoast SEO Premium).
[45] Fix | Delete
*
[46] Fix | Delete
* @param bool $hide_version
[47] Fix | Delete
*/
[48] Fix | Delete
if ( \apply_filters( 'wpseo_hide_version', false ) ) {
[49] Fix | Delete
return '';
[50] Fix | Delete
}
[51] Fix | Delete
[52] Fix | Delete
return 'v' . \WPSEO_PREMIUM_VERSION . ' (Yoast SEO v' . \WPSEO_VERSION . ')';
[53] Fix | Delete
}
[54] Fix | Delete
[55] Fix | Delete
/**
[56] Fix | Delete
* Gets the raw value of a presentation.
[57] Fix | Delete
*
[58] Fix | Delete
* @return string The raw value.
[59] Fix | Delete
*/
[60] Fix | Delete
public function get() {
[61] Fix | Delete
return '';
[62] Fix | Delete
}
[63] Fix | Delete
}
[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