Changeset 25786 for trunk/src/wp-includes/functions.wp-styles.php
- Timestamp:
- 10/15/2013 02:34:33 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/functions.wp-styles.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.wp-styles.php
r25594 r25786 15 15 * passing an array with one string prints that style, 16 16 * and passing an array of strings prints those styles. 17 * 17 * 18 18 * @see do_action() Calls 'wp_print_styles' hook. 19 19 * @global WP_Styles $wp_styles The WP_Styles object for printing styles. … … 70 70 '<code>wp_enqueue_scripts</code>', '<code>admin_enqueue_scripts</code>', '<code>login_enqueue_scripts</code>' ), '3.3' ); 71 71 $wp_styles = new WP_Styles(); 72 } 73 74 if ( false !== stripos( $data, '</style>' ) ) { 75 _doing_it_wrong( __FUNCTION__, 'Do not pass <style> tags to wp_add_inline_style()', '3.7' ); 76 $data = trim( preg_replace( '#<style[^>]*>(.*)</style>#is', '$1', $data ) ); 72 77 } 73 78
Note: See TracChangeset
for help on using the changeset viewer.