Edit File by line
/home/zeestwma/richards.../wp-conte.../plugins/woocomme.../src/Blocks/Domain/Services
File: FeatureGating.php
<?php
[0] Fix | Delete
namespace Automattic\WooCommerce\Blocks\Domain\Services;
[1] Fix | Delete
[2] Fix | Delete
use Automattic\WooCommerce\Admin\DeprecatedClassFacade;
[3] Fix | Delete
[4] Fix | Delete
/**
[5] Fix | Delete
* Service class that used to handle feature flags. That functionality
[6] Fix | Delete
* is removed now and it is only used to determine "environment".
[7] Fix | Delete
*
[8] Fix | Delete
* @internal
[9] Fix | Delete
*
[10] Fix | Delete
* @deprecated since 9.6.0, use wp_get_environment_type() instead.
[11] Fix | Delete
*/
[12] Fix | Delete
class FeatureGating extends DeprecatedClassFacade {
[13] Fix | Delete
/**
[14] Fix | Delete
* The version that this class was deprecated in.
[15] Fix | Delete
*
[16] Fix | Delete
* @var string
[17] Fix | Delete
*/
[18] Fix | Delete
protected static $deprecated_in_version = '9.6.0';
[19] Fix | Delete
[20] Fix | Delete
/**
[21] Fix | Delete
* Constructor
[22] Fix | Delete
*
[23] Fix | Delete
* @param string $environment Hardcoded environment value. Useful for tests.
[24] Fix | Delete
*/
[25] Fix | Delete
public function __construct( $environment = 'unset' ) {
[26] Fix | Delete
}
[27] Fix | Delete
}
[28] Fix | Delete
[29] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function