Opened 8 years ago
Closed 6 months ago
#45741 closed enhancement (wontfix)
Theme block style dependencies while enqueuing
| Reported by: | superpoincare | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Bundled Theme | Version: | 5.0.2 |
| Severity: | trivial | Keywords: | |
| Cc: | Focuses: | css |
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' );
Change History (3)
This ticket was mentioned in Slack in #core-themes by karmatosed. View the logs.
2 years ago
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Thanks for the report!
The 'wp-block-library-theme' styles can be added inline, so that could be tricky (if listing that one is necessary).
After finding an issue with the stylesheet sequence on #54076, adding 'wp-block-library' should be worth exploring with Twenty Twelve to Twenty Seventeen.