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: settings-conditional.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Yoast\WP\SEO\Conditionals;
[2] Fix | Delete
[3] Fix | Delete
/**
[4] Fix | Delete
* Class Settings_Conditional.
[5] Fix | Delete
*/
[6] Fix | Delete
class Settings_Conditional implements Conditional {
[7] Fix | Delete
[8] Fix | Delete
/**
[9] Fix | Delete
* Holds User_Can_Manage_Wpseo_Options_Conditional.
[10] Fix | Delete
*
[11] Fix | Delete
* @var User_Can_Manage_Wpseo_Options_Conditional
[12] Fix | Delete
*/
[13] Fix | Delete
protected $user_can_manage_wpseo_options_conditional;
[14] Fix | Delete
[15] Fix | Delete
/**
[16] Fix | Delete
* Constructs Settings_Conditional.
[17] Fix | Delete
*
[18] Fix | Delete
* @param User_Can_Manage_Wpseo_Options_Conditional $user_can_manage_wpseo_options_conditional The User_Can_Manage_Wpseo_Options_Conditional.
[19] Fix | Delete
*/
[20] Fix | Delete
public function __construct(
[21] Fix | Delete
User_Can_Manage_Wpseo_Options_Conditional $user_can_manage_wpseo_options_conditional
[22] Fix | Delete
) {
[23] Fix | Delete
$this->user_can_manage_wpseo_options_conditional = $user_can_manage_wpseo_options_conditional;
[24] Fix | Delete
}
[25] Fix | Delete
[26] Fix | Delete
/**
[27] Fix | Delete
* Returns whether or not this conditional is met.
[28] Fix | Delete
*
[29] Fix | Delete
* @return bool Whether or not the conditional is met.
[30] Fix | Delete
*/
[31] Fix | Delete
public function is_met() {
[32] Fix | Delete
if ( ! $this->user_can_manage_wpseo_options_conditional->is_met() ) {
[33] Fix | Delete
return false;
[34] Fix | Delete
}
[35] Fix | Delete
[36] Fix | Delete
return true;
[37] Fix | Delete
}
[38] Fix | Delete
}
[39] Fix | Delete
[40] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function