Disable the new editor for variable products. (#39780)
* Disable the new editor for variable products with the dev feature flag disabled. * Add changelog
This commit is contained in:
parent
74beca459e
commit
afc8e0fac5
|
@ -0,0 +1,4 @@
|
|||
Significance: minor
|
||||
Type: dev
|
||||
|
||||
[Product Block Editor] Disable the new editor for variable products.
|
|
@ -25,7 +25,7 @@ class Init {
|
|||
*
|
||||
* @var array
|
||||
*/
|
||||
private $supported_post_types = array( 'simple', 'variable' );
|
||||
private $supported_post_types = array( 'simple' );
|
||||
|
||||
/**
|
||||
* Redirection controller.
|
||||
|
@ -38,6 +38,10 @@ class Init {
|
|||
* Constructor
|
||||
*/
|
||||
public function __construct() {
|
||||
if ( Features::is_enabled( 'product-variation-management' ) ) {
|
||||
array_push($this->supported_post_types, 'variable');
|
||||
}
|
||||
|
||||
$this->redirection_controller = new RedirectionController( $this->supported_post_types );
|
||||
|
||||
if ( \Automattic\WooCommerce\Utilities\FeaturesUtil::feature_is_enabled( 'product_block_editor' ) ) {
|
||||
|
|
Loading…
Reference in New Issue