WordPress 3.3 RC1 Stylesheet Problems
The admin stylesheet for WordPress 3.3 RC1 does not display ‹li› tags correctly. This is especially apparent in ordered lists, in which the numbers disappear.
The problem is that the stylesheet sets all ‹li› tags with list-style:none; regardless of the ‹ul› or ‹ol› parent class.
Until the problem is fixed in the WordPress core, one option is to add some styles to your plugin. Since this is a tiny fix, I don't bother to enque the styles; I just add them to the admin head. If your plugin uses an external stylesheet, you could add the style definitions there instead.
// When the plugin loads
if ( version_compare($wp_version, '3.3' >= 0) ) {
add_action('admin_head', array($this, 'fix_WP3_3_styles'));
}
function fix_WP3_3_styles() {
$screen = get_current_screen();
if ( $screen->id == $this->options_page ) {
echo '‹style type="text/css"›
ul.ul-square li { list-style:square outside none; }
ul.ul-disc li { list-style: disc outside none; }
ol li { list-style-type: decimal }‹/style›';
}
}
