Changeset 18464 for trunk/wp-includes/functions.wp-styles.php
- Timestamp:
- 07/25/2011 12:36:06 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.wp-styles.php
r15601 r18464 26 26 if ( !is_a($wp_styles, 'WP_Styles') ) { 27 27 if ( !$handles ) 28 return array(); // No need to instantiate if nothing 's there.28 return array(); // No need to instantiate if nothing is there. 29 29 else 30 30 $wp_styles = new WP_Styles(); … … 32 32 33 33 return $wp_styles->do_items( $handles ); 34 } 35 36 /** 37 * Adds extra CSS. 38 * 39 * Works only if the stylesheet has already been added. 40 * Accepts a string $data containing the CSS. 41 * 42 * @since 3.3 43 * @see WP_Scripts::add_inline_style() 44 */ 45 function wp_add_inline_style( $handle, $data ) { 46 global $wp_styles; 47 if ( !is_a($wp_styles, 'WP_Styles') ) 48 return false; 49 50 return $wp_styles->add_inline_style( $handle, $data ); 34 51 } 35 52
Note: See TracChangeset
for help on using the changeset viewer.