[wp-trac] [WordPress Trac] #19510: wp_print_styles() causing mid-page scripts/styles to bleed into admin
WordPress Trac
wp-trac at lists.automattic.com
Mon Dec 12 06:02:19 UTC 2011
#19510: wp_print_styles() causing mid-page scripts/styles to bleed into admin
---------------------------+------------------
Reporter: AdamBackstrom | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.3
Component: Editor | Version: 3.3
Severity: blocker | Resolution:
Keywords: dev-feedback |
---------------------------+------------------
Comment (by scribu):
Replying to [comment:8 azaozz]:
> You mean if there's a style handle, we don't run the action? That may
work too.
Yes, that would be a better fix for the problem I was thinking about:
We really use wp_print_scripts() in two ways:
a) to output all the styles enqueued so far, in which case the
'wp_print_styles' hook makes sense without a parameter.
b) as a wrapper for {{{$wp_styles->do_items( $handle )}}}, in which it
doesn't make sense to fire the hook, even with a parameter, due to the way
it's already used in the wild.
+1.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19510#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list