Edit File by line
/home/barbar84/www/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
return $this->get_wp_environment() === 'production';
[15] Fix | Delete
}
[16] Fix | Delete
[17] Fix | Delete
/**
[18] Fix | Delete
* Determines on which environment WordPress is running.
[19] Fix | Delete
*
[20] Fix | Delete
* @return string The current WordPress environment.
[21] Fix | Delete
*/
[22] Fix | Delete
public function get_wp_environment() {
[23] Fix | Delete
return \wp_get_environment_type();
[24] Fix | Delete
}
[25] Fix | Delete
}
[26] Fix | Delete
[27] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function