Opened 2 years ago
#45741 new enhancement
Theme block style dependencies while enqueuing
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | trivial | Version: | 5.0.2 |
Component: | Bundled Theme | Keywords: | |
Focuses: | Cc: |
Description
Bundled themes enqueue a block style, such as /css/blocks.css in twentytwelve.
These css rules sometimes overwrite the rules in the files with handles wp-block-library and wp-block-library-theme
While the dependencies seem to be maintained, for the sake for completeness, shouldn't dependencies be made explicit in bundled themes' functions.php files?
For example, dependencies in this enqueue?
wp_enqueue_style( 'twentytwelve-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentytwelve-style' ), '20181018' );
Note: See
TracTickets for help on using
tickets.