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/conditio...
File: feature-flag-conditional.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Yoast\WP\SEO\Conditionals;
[2] Fix | Delete
[3] Fix | Delete
/**
[4] Fix | Delete
* Abstract class for creating conditionals based on feature flags.
[5] Fix | Delete
*/
[6] Fix | Delete
abstract class Feature_Flag_Conditional implements Conditional {
[7] Fix | Delete
[8] Fix | Delete
/**
[9] Fix | Delete
* Returns whether or not this conditional is met.
[10] Fix | Delete
*
[11] Fix | Delete
* @return bool Whether or not the conditional is met.
[12] Fix | Delete
*/
[13] Fix | Delete
public function is_met() {
[14] Fix | Delete
$feature_flag = \strtoupper( $this->get_feature_flag() );
[15] Fix | Delete
[16] Fix | Delete
return \defined( 'YOAST_SEO_' . $feature_flag ) && \constant( 'YOAST_SEO_' . $feature_flag ) === true;
[17] Fix | Delete
}
[18] Fix | Delete
[19] Fix | Delete
/**
[20] Fix | Delete
* Returns the name of the feature flag.
[21] Fix | Delete
* 'YOAST_SEO_' is automatically prepended to it and it will be uppercased.
[22] Fix | Delete
*
[23] Fix | Delete
* @return string the name of the feature flag.
[24] Fix | Delete
*/
[25] Fix | Delete
abstract protected function get_feature_flag();
[26] Fix | Delete
[27] Fix | Delete
/**
[28] Fix | Delete
* Returns the feature name.
[29] Fix | Delete
*
[30] Fix | Delete
* @return string the name of the feature flag.
[31] Fix | Delete
*/
[32] Fix | Delete
public function get_feature_name() {
[33] Fix | Delete
return $this->get_feature_flag();
[34] Fix | Delete
}
[35] Fix | Delete
}
[36] Fix | Delete
[37] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function