Opened 4 years ago
Closed 4 years ago
#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 (6)
comment:1
follow-up:
↓ 2
CalebKniffen
— 4 years ago
comment:2
in reply to:
↑ 1
arena
— 4 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
comment:4
scribu
— 4 years ago
- Milestone changed from Unassigned to Future Release
- Resolution wontfix deleted
- Status changed from closed to reopened
comment:5
scribu
— 4 years ago
Don't confuse 'wontfix' with 'haven't gotten around to this ticket yet'.
comment:6
azaozz
— 4 years ago
- Milestone Future Release deleted
- Resolution set to invalid
- Status changed from reopened to closed
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?