From 300677940126e865424793beb5dcbdff631436e1 Mon Sep 17 00:00:00 2001 From: Rich Tabor Date: Fri, 17 Jan 2020 14:52:50 -0500 Subject: [PATCH] Remove the enqueing of the utilities stylesheet (#1260) --- README.md | 8 -------- includes/class-coblocks-block-assets.php | 18 ------------------ 2 files changed, 26 deletions(-) diff --git a/README.md b/README.md index ef1bf5a05d9..e5a8cf10411 100644 --- a/README.md +++ b/README.md @@ -57,14 +57,6 @@ The vision for CoBlocks is to create a suite of WordPress blocks and tools to he ### Advanced Controls -Disable CoBlocks utility styes with an optional filter. -```php -/** - * Disable block utility styles. - */ -add_filter( 'coblocks_utility_styles_enabled', '__return_false' ); -``` - Disable sending of email upon Form block submission. ```php /** diff --git a/includes/class-coblocks-block-assets.php b/includes/class-coblocks-block-assets.php index bd6f3bd0500..52c5c2c3187 100644 --- a/includes/class-coblocks-block-assets.php +++ b/includes/class-coblocks-block-assets.php @@ -75,24 +75,6 @@ public function block_assets() { array(), COBLOCKS_VERSION ); - - /** - * Filters whether to load utility styles. - * - * @param bool $load_utility_styles whether the utility css should be loaded. Default false. - */ - $load_utility_styles = (bool) apply_filters( 'coblocks_utility_styles_enabled', false ); - - if ( $load_utility_styles ) { - - // Mock wp_enqueue_style for utility styles. - wp_enqueue_style( - $this->slug . '-utilities', - $this->url . '/dist/utilities.style.build.css', - array(), - COBLOCKS_VERSION - ); - }; } /**