Have media default to 'all', not false, in wp_enqueue_style. props koopersmith, fixes #13056.
git-svn-id: https://develop.svn.wordpress.org/trunk@14255 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
84ea52469c
commit
5dbebf6cfc
@ -93,7 +93,7 @@ function wp_deregister_style( $handle ) {
|
|||||||
* if a version number is available and makes sense for the stylesheet.
|
* if a version number is available and makes sense for the stylesheet.
|
||||||
* @param string $media The media for which this stylesheet has been defined.
|
* @param string $media The media for which this stylesheet has been defined.
|
||||||
*/
|
*/
|
||||||
function wp_enqueue_style( $handle, $src = false, $deps = array(), $ver = false, $media = false ) {
|
function wp_enqueue_style( $handle, $src = false, $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();
|
||||||
|
Loading…
Reference in New Issue
Block a user