Skip to content

Commit

Permalink
Remove the enqueing of the utilities stylesheet (godaddy-wordpress#1260)
Browse files Browse the repository at this point in the history
  • Loading branch information
richtabor authored Jan 17, 2020
1 parent 8ad59ea commit 3006779
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
/**
Expand Down
18 changes: 0 additions & 18 deletions includes/class-coblocks-block-assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
};
}

/**
Expand Down

0 comments on commit 3006779

Please sign in to comment.