Changeset 42343 for trunk/src/wp-includes/functions.wp-styles.php
- Timestamp:
- 11/30/2017 11:09:33 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.wp-styles.php
r38519 r42343 85 85 86 86 if ( false !== stripos( $data, '</style>' ) ) { 87 _doing_it_wrong( __FUNCTION__, sprintf( 88 /* translators: 1: <style>, 2: wp_add_inline_style() */ 89 __( 'Do not pass %1$s tags to %2$s.' ), 90 '<code><style></code>', 91 '<code>wp_add_inline_style()</code>' 92 ), '3.7.0' ); 87 _doing_it_wrong( 88 __FUNCTION__, sprintf( 89 /* translators: 1: <style>, 2: wp_add_inline_style() */ 90 __( 'Do not pass %1$s tags to %2$s.' ), 91 '<code><style></code>', 92 '<code>wp_add_inline_style()</code>' 93 ), '3.7.0' 94 ); 93 95 $data = trim( preg_replace( '#<style[^>]*>(.*)</style>#is', '$1', $data ) ); 94 96 } … … 168 170 169 171 if ( $src ) { 170 $_handle = explode( '?', $handle);172 $_handle = explode( '?', $handle ); 171 173 $wp_styles->add( $_handle[0], $src, $deps, $ver, $media ); 172 174 }
Note: See TracChangeset
for help on using the changeset viewer.