From 21535e1cb81995042a96354ef9e3dc32f7de09b4 Mon Sep 17 00:00:00 2001 From: westi Date: Wed, 29 Oct 2008 22:17:54 +0000 Subject: [PATCH] Default media type to all. Fixes #8000 props filosofo. git-svn-id: http://svn.automattic.com/wordpress/trunk@9404 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.wp-styles.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/functions.wp-styles.php b/wp-includes/functions.wp-styles.php index af552909f..44e362c02 100644 --- a/wp-includes/functions.wp-styles.php +++ b/wp-includes/functions.wp-styles.php @@ -38,7 +38,7 @@ function wp_print_styles( $handles = false ) { * @since r79 * @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; if ( !is_a($wp_styles, 'WP_Styles') ) $wp_styles = new WP_Styles();