Skip to content

Commit

Permalink
Restore wp_register_style
Browse files Browse the repository at this point in the history
We need to register it, not enqueue it, so doesn’t get included on every page
  • Loading branch information
johngodley committed Jun 18, 2020
1 parent bb26c48 commit 05ac5ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/layout-grid/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
} );

add_action( 'wp_enqueue_scripts', function() {
wp_enqueue_style(
wp_register_style(
'wpcom-layout-grid-front',
plugins_url( 'front.css', __FILE__ ),
[], // no dependencies
Expand Down

0 comments on commit 05ac5ef

Please sign in to comment.