Default media type to all. Fixes #8000 props filosofo.

git-svn-id: https://develop.svn.wordpress.org/trunk@9404 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2008-10-29 22:17:54 +00:00
parent d3258d101e
commit f521889b25

View File

@ -38,7 +38,7 @@ function wp_print_styles( $handles = false ) {
* @since r79 * @since r79
* @see WP_Styles::add() For parameter and additional information. * @see WP_Styles::add() For parameter and additional information.
*/ */
function wp_register_style( $handle, $src, $deps = array(), $ver = false, $media = false ) { function wp_register_style( $handle, $src, $deps = array(), $ver = false, $media = 'all' ) {
global $wp_styles; global $wp_styles;
if ( !is_a($wp_styles, 'WP_Styles') ) if ( !is_a($wp_styles, 'WP_Styles') )
$wp_styles = new WP_Styles(); $wp_styles = new WP_Styles();