[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:34:07 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:  critical                 |  Resolution:
 Keywords:  dev-feedback regression  |
-------------------------------------+------------------

Comment (by dd32):

 Taking a step back here, This really only affects plugins/themes that
 don't use specific selectors.

 I'd be willing to bet that most of the plugins using this hook, will be
 enqueuing CSS for specific classes - otherwise they'll be breaking more
 than just a few things on the front end.

 A quick hotfix which should solve any problems, whilst hopefully not
 causing any others, would be something like this:
 {{{
 add_action( 'admin_init', function() {
 remove_all_actions('wp_print_styles'); }, 1);
 }}}
 that'll catch and remove any hooks that were probably meant for the front
 end.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19510#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list