Disable Cart, Checkout, All Products & filters blocks from the widgets screen (https://github.com/woocommerce/woocommerce-blocks/pull/4646)

This commit is contained in:
Albert Juhé Lluveras 2021-08-30 09:10:55 +02:00 committed by GitHub
parent c8ee90c465
commit 912a1704e0
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ final class BlockTypesController {
/**
* This disables specific blocks in Widget Areas by not registering them.
*/
if ( in_array( $pagenow, [ 'themes.php', 'customize.php' ], true ) ) {
if ( in_array( $pagenow, [ 'widgets.php', 'themes.php', 'customize.php' ], true ) ) {
$block_types = array_diff(
$block_types,
[