[wp-trac] [WordPress Trac] #45741: Theme block style dependencies while enqueuing
WordPress Trac
noreply at wordpress.org
Tue Nov 30 16:02:34 UTC 2021
#45741: Theme block style dependencies while enqueuing
---------------------------+------------------------------
Reporter: superpoincare | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version: 5.0.2
Severity: trivial | Resolution:
Keywords: needs-patch | Focuses: css
---------------------------+------------------------------
Changes (by sabernhardt):
* keywords: => needs-patch
* focuses: => css
Comment:
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.
{{{
wp_enqueue_style( 'twentytwelve-block-style', get_template_directory_uri()
. '/css/blocks.css', array( 'wp-block-library', 'twentytwelve-style' ),
'20190406' );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45741#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list