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.../src/conditio...
File: should-index-links-conditional.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Yoast\WP\SEO\Conditionals;
[2] Fix | Delete
[3] Fix | Delete
use Yoast\WP\SEO\Helpers\Options_Helper;
[4] Fix | Delete
[5] Fix | Delete
/**
[6] Fix | Delete
* Should_Index_Links_Conditional class.
[7] Fix | Delete
*/
[8] Fix | Delete
class Should_Index_Links_Conditional implements Conditional {
[9] Fix | Delete
[10] Fix | Delete
/**
[11] Fix | Delete
* The options helper.
[12] Fix | Delete
*
[13] Fix | Delete
* @var Options_Helper
[14] Fix | Delete
*/
[15] Fix | Delete
protected $options_helper;
[16] Fix | Delete
[17] Fix | Delete
/**
[18] Fix | Delete
* Should_Index_Links_Conditional constructor.
[19] Fix | Delete
*
[20] Fix | Delete
* @param Options_Helper $options_helper The options helper.
[21] Fix | Delete
*/
[22] Fix | Delete
public function __construct( Options_Helper $options_helper ) {
[23] Fix | Delete
$this->options_helper = $options_helper;
[24] Fix | Delete
}
[25] Fix | Delete
[26] Fix | Delete
/**
[27] Fix | Delete
* Returns `true` when the links on this website should be indexed.
[28] Fix | Delete
*
[29] Fix | Delete
* @return bool `true` when the links on this website should be indexed.
[30] Fix | Delete
*/
[31] Fix | Delete
public function is_met() {
[32] Fix | Delete
$should_index_links = $this->options_helper->get( 'enable_text_link_counter' );
[33] Fix | Delete
[34] Fix | Delete
/**
[35] Fix | Delete
* Filter: 'wpseo_should_index_links' - Allows disabling of Yoast's links indexation.
[36] Fix | Delete
*
[37] Fix | Delete
* @param bool $enable To disable the indexation, return false.
[38] Fix | Delete
*/
[39] Fix | Delete
return \apply_filters( 'wpseo_should_index_links', $should_index_links );
[40] Fix | Delete
}
[41] Fix | Delete
}
[42] Fix | Delete
[43] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function