Changeset 54931
- Timestamp:
- 12/04/2022 12:46:09 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.wp-styles.php
r54470 r54931 205 205 * 206 206 * @param string $handle Name of the stylesheet. 207 * @param string $ listOptional. Status of the stylesheet to check. Default 'enqueued'.207 * @param string $status Optional. Status of the stylesheet to check. Default 'enqueued'. 208 208 * Accepts 'enqueued', 'registered', 'queue', 'to_do', and 'done'. 209 209 * @return bool Whether style is queued. 210 210 */ 211 function wp_style_is( $handle, $ list= 'enqueued' ) {212 _wp_scripts_maybe_doing_it_wrong( __FUNCTION__, $handle ); 213 214 return (bool) wp_styles()->query( $handle, $ list);211 function wp_style_is( $handle, $status = 'enqueued' ) { 212 _wp_scripts_maybe_doing_it_wrong( __FUNCTION__, $handle ); 213 214 return (bool) wp_styles()->query( $handle, $status ); 215 215 } 216 216
Note: See TracChangeset
for help on using the changeset viewer.