[wp-trac] [WordPress Trac] #45741: Theme block style dependencies while enqueuing
WordPress Trac
noreply at wordpress.org
Sat Dec 22 13:17:50 UTC 2018
#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 | Keywords:
Focuses: |
---------------------------+-----------------------------
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' );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45741>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list