Ticket #10618 (closed defect (bug): invalid)
Conditionnal IE CSS not possible for plugins
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | |
| Component: | Administration | Version: | 2.8.4 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
due to a specific test in WP_Styles
if ( $this->in_default_dir($this->registered[$handle]->src) && ...
it is not possible to have IE specific css for plugins?
Change History
comment:1
follow-up:
↓ 2
CalebKniffen — 2 years ago
- Priority changed from normal to low
Replying to CalebKniffen:
Couldn't you use the print_styles hook?
Well sure i can do it on my own.
Anyway for my specific need i changed the layout of the admin page. new layout is ok under all browsers
- Status changed from closed to reopened
- Resolution wontfix deleted
- Milestone changed from Unassigned to Future Release
Don't confuse 'wontfix' with 'haven't gotten around to this ticket yet'.
- Status changed from reopened to closed
- Resolution set to invalid
- Milestone Future Release deleted
This seems to work well:
wp_enqueue_style('my-style', WP_PLUGIN_URL . '/my-plugin/style.css', ... );
global $wp_styles;
$wp_styles->add_data( 'my-style', 'conditional', 'lte IE 7' );
Note: See
TracTickets for help on using
tickets.

Couldn't you use the print_styles hook?