[wp-trac] [WordPress Trac] #39997: Loads of child style.css using version of parent
WordPress Trac
noreply at wordpress.org
Wed Mar 1 13:25:49 UTC 2017
#39997: Loads of child style.css using version of parent
-------------------------------+------------------------------
Reporter: parsmizban | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: Script Loader | Version: 4.7.2
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses: template
-------------------------------+------------------------------
Comment (by pothi):
If you understand how the child's theme's stylesheet is loaded, that'd
help to track down where things went wrong. For example, the ID
"twentyfifteen-style-css" was created by the following line...
{{{
wp_enqueue_style( 'twentyfifteen-style', get_stylesheet_uri() );
}}}
It '''exists in parent theme'''. It is simply overridden by child theme.
So, naturally, the syntax is clear. The fourth parameter, if not set any
value (or null), WP would attach its version number. Direct quote...
(string|bool|null) (Optional) String specifying stylesheet version
number, if it has one, which is added to the URL as a query string for
cache busting purposes. If version is set to false, a version number is
automatically added equal to current installed WordPress version. If set
to null, no version is added.
Default value: false
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39997#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list