WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #19510, comment 8


Ignore:
Timestamp:
12/12/11 05:59:29 (3 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #19510, comment 8

    initial v1  
    22> Or we could make 'wp_print_styles' pass the handle as a parameter. 
    33 
    4 You mean if there's a style handle, we don't run the action? That may work too. 
     4You mean if there's a style handle, we don't run the action? That may work: 
     5{{{ 
     6function wp_print_styles( $handles = false ) { 
     7  if ( empty($handles) ) 
     8    do_action( 'wp_print_styles' ); 
     9... 
     10}}} 
     11 
    512 
    613Thinking that even if we have a separate function for the admin, a plugin may still use wp_print_styles() in the admin. Seems choices are either to disallow enqueueing mid-page for styles or not run the hook in the admin.