Cleanup the use of $wp_styles
global in functions.wp-styles.php
.
See #32444. git-svn-id: https://develop.svn.wordpress.org/trunk@32597 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
bc164ef635
commit
bac34e9daa
@ -61,7 +61,7 @@ function wp_print_styles( $handles = false ) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return wp_styles()->do_items( $handles );
|
return $wp_styles->do_items( $handles );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -152,7 +152,6 @@ function wp_deregister_style( $handle ) {
|
|||||||
* 'screen', 'tty', or 'tv'.
|
* 'screen', 'tty', or 'tv'.
|
||||||
*/
|
*/
|
||||||
function wp_enqueue_style( $handle, $src = false, $deps = array(), $ver = false, $media = 'all' ) {
|
function wp_enqueue_style( $handle, $src = false, $deps = array(), $ver = false, $media = 'all' ) {
|
||||||
global $wp_styles;
|
|
||||||
_wp_scripts_maybe_doing_it_wrong( __FUNCTION__ );
|
_wp_scripts_maybe_doing_it_wrong( __FUNCTION__ );
|
||||||
|
|
||||||
$wp_styles = wp_styles();
|
$wp_styles = wp_styles();
|
||||||
@ -182,8 +181,6 @@ function wp_dequeue_style( $handle ) {
|
|||||||
/**
|
/**
|
||||||
* Check whether a CSS stylesheet has been added to the queue.
|
* Check whether a CSS stylesheet has been added to the queue.
|
||||||
*
|
*
|
||||||
* @global WP_Styles $wp_styles The WP_Styles object for printing styles.
|
|
||||||
*
|
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
*
|
*
|
||||||
* @param string $handle Name of the stylesheet.
|
* @param string $handle Name of the stylesheet.
|
||||||
|
Loading…
Reference in New Issue
Block a user