Changeset 37188
- Timestamp:
- 04/13/2016 03:01:56 AM (9 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.wp-scripts.php
r36993 r37188 108 108 109 109 if ( false !== stripos( $data, '</script>' ) ) { 110 _doing_it_wrong( __FUNCTION__, __( 'Do not pass script tags to wp_add_inline_script().' ), '4.5.0' ); 110 _doing_it_wrong( __FUNCTION__, sprintf( 111 /* translators: 1: script, 2: wp_add_inline_script() */ 112 __( 'Do not pass %1$s tags to %2$s.' ), 113 '<code>script</code>', 114 '<code>wp_add_inline_script()</code>' 115 ), '4.5' ); 111 116 $data = trim( preg_replace( '#<script[^>]*>(.*)</script>#is', '$1', $data ) ); 112 117 } -
trunk/src/wp-includes/functions.wp-styles.php
r36993 r37188 85 85 86 86 if ( false !== stripos( $data, '</style>' ) ) { 87 _doing_it_wrong( __FUNCTION__, __( 'Do not pass style tags to wp_add_inline_style().' ), '3.7' ); 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' ); 88 93 $data = trim( preg_replace( '#<style[^>]*>(.*)</style>#is', '$1', $data ) ); 89 94 }
Note: See TracChangeset
for help on using the changeset viewer.