I18N: After [37188], display script
and style
tags in the message as <script>
and <style>
.
Props dd32. See #36496. git-svn-id: https://develop.svn.wordpress.org/trunk@37190 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
26a5e78d94
commit
8594b7922d
@ -110,7 +110,7 @@ function wp_add_inline_script( $handle, $data, $position = 'after' ) {
|
||||
_doing_it_wrong( __FUNCTION__, sprintf(
|
||||
/* translators: 1: script, 2: wp_add_inline_script() */
|
||||
__( 'Do not pass %1$s tags to %2$s.' ),
|
||||
'<code>script</code>',
|
||||
'<code><script></code>',
|
||||
'<code>wp_add_inline_script()</code>'
|
||||
), '4.5' );
|
||||
$data = trim( preg_replace( '#<script[^>]*>(.*)</script>#is', '$1', $data ) );
|
||||
|
@ -87,7 +87,7 @@ function wp_add_inline_style( $handle, $data ) {
|
||||
_doing_it_wrong( __FUNCTION__, sprintf(
|
||||
/* translators: 1: style, 2: wp_add_inline_style() */
|
||||
__( 'Do not pass %1$s tags to %2$s.' ),
|
||||
'<code>style</code>',
|
||||
'<code><style></code>',
|
||||
'<code>wp_add_inline_style()</code>'
|
||||
), '3.7' );
|
||||
$data = trim( preg_replace( '#<style[^>]*>(.*)</style>#is', '$1', $data ) );
|
||||
|
Loading…
Reference in New Issue
Block a user