[wp-trac] [WordPress Trac] #33471: wp_enqueue_style() doesn't register it in parallel wp_enqueue_scripts
WordPress Trac
noreply at wordpress.org
Thu Sep 24 08:41:09 UTC 2015
#33471: wp_enqueue_style() doesn't register it in parallel wp_enqueue_scripts
--------------------------+----------------------
Reporter: Looimaster | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: General | Version: 4.3
Severity: normal | Resolution: invalid
Keywords: | Focuses:
--------------------------+----------------------
Comment (by Looimaster):
I use `get_stylesheet_uri()` in functions.php (it's even accompanied by
the same "Loads our main stylesheet." comment like in Twenty Fifteen
theme).
The other function I'm using in /inc/customizer.php which was for a short
while included at the top of functions.php, before the place where I
enqueue style.css.
`get_stylesheet_uri()` in both functions returns the following: `string
'http://192.168.0.68/wp/wp-content/themes/name/style.css' (length=55)`
I copied the first function to my functions.php again and the outcome is
still:
{{{
boolean true (enqueued)
boolean false (registered)
boolean false (to_do)
boolean false (done)
}}}
When I uncomment the following in the first function:
{{{
global $wp_styles;
var_dump($wp_styles);
}}}
then interestingly "my-style" is neither registered nor enqueued (like
expected).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33471#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list