[wp-hackers] locale_stylesheet(): media 'screen' ?

Andrew Nacin wp at andrewnacin.com
Thu May 6 14:04:18 UTC 2010


You're welcome to create an "enhancement" ticket for that at
http://core.trac.wordpress.org.

Just a note, it has been "screen" for four years now, since that function
was introduced. I don't think we'll be breaking much, but it's definitely
something to consider.

2010/5/6 Raphaël Droz <raphael.droz at gmail.com>

> Hi,
> I found that the theme.php locale_stylesheet() function
> which is used to load the main style.css of a theme default to
> media="screen".
>
> It's a problem in some cases because if one wants to define 'print' css
> properties,
> it has to add to be done in a new file to override it instead of simply add
> a @media screen {}
> section in the original style.css.
> I don't see many side-effects in making locale_stylesheet() defaults to
> 'all'


More information about the wp-hackers mailing list