Changes between Initial Version and Version 1 of Ticket #19510, comment 8
- Timestamp:
- 12/12/2011 05:59:29 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #19510, comment 8
initial v1 2 2 > Or we could make 'wp_print_styles' pass the handle as a parameter. 3 3 4 You mean if there's a style handle, we don't run the action? That may work too. 4 You mean if there's a style handle, we don't run the action? That may work: 5 {{{ 6 function wp_print_styles( $handles = false ) { 7 if ( empty($handles) ) 8 do_action( 'wp_print_styles' ); 9 ... 10 }}} 11 5 12 6 13 Thinking 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.