Make WordPress Core

Opened 17 years ago

Closed 17 years ago

#10618 closed defect (bug) (invalid)

Conditionnal IE CSS not possible for plugins

Reported by: arena Owned by:
Priority: low Milestone:
Component: Administration Version: 2.8.4
Severity: normal Keywords:
Cc: Focuses:

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)

#1 follow-up: @CalebKniffen
17 years ago

Couldn't you use the print_styles hook?

#2 in reply to: ↑ 1 @arena
17 years ago

  • Priority normallow

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

#3 @arena
17 years ago

  • Resolutionwontfix
  • Status newclosed

#4 @scribu
17 years ago

  • Milestone UnassignedFuture Release
  • Resolution wontfix
  • Status closedreopened

#5 @scribu
17 years ago

Don't confuse 'wontfix' with 'haven't gotten around to this ticket yet'.

#6 @azaozz
17 years ago

  • Milestone Future Release
  • Resolutioninvalid
  • Status reopenedclosed

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.