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/helpers
File: environment-helper.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Yoast\WP\SEO\Helpers;
[2] Fix | Delete
[3] Fix | Delete
/**
[4] Fix | Delete
* A helper object for site environment.
[5] Fix | Delete
*/
[6] Fix | Delete
class Environment_Helper {
[7] Fix | Delete
[8] Fix | Delete
/**
[9] Fix | Delete
* Determines if the site is running on production.
[10] Fix | Delete
*
[11] Fix | Delete
* @return bool True if WordPress is currently running on production, false for all other environments.
[12] Fix | Delete
*/
[13] Fix | Delete
public function is_production_mode() {
[14] Fix | Delete
// phpcs:ignore Yoast.NamingConventions.ValidHookName.WrongPrefix -- existing hook.
[15] Fix | Delete
$override = \apply_filters( 'yoast_seo_development_mode', false );
[16] Fix | Delete
if ( $override ) {
[17] Fix | Delete
return true;
[18] Fix | Delete
}
[19] Fix | Delete
[20] Fix | Delete
return $this->get_wp_environment() === 'production';
[21] Fix | Delete
}
[22] Fix | Delete
[23] Fix | Delete
/**
[24] Fix | Delete
* Determines on which environment WordPress is running.
[25] Fix | Delete
*
[26] Fix | Delete
* @return string The current WordPress environment.
[27] Fix | Delete
*/
[28] Fix | Delete
public function get_wp_environment() {
[29] Fix | Delete
return \wp_get_environment_type();
[30] Fix | Delete
}
[31] Fix | Delete
}
[32] Fix | Delete
[33] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function