I18N: After [37188], display script and style tags in the message as <script> and <style>.

Props dd32.
See #36496.
Built from https://develop.svn.wordpress.org/trunk@37190


git-svn-id: http://core.svn.wordpress.org/trunk@37156 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov
2016-04-13 04:16:27 +00:00
parent 0b772e928c
commit 5e31cb45fe
3 changed files with 3 additions and 3 deletions

View File

@@ -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>&lt;script&gt;</code>',
'<code>wp_add_inline_script()</code>'
), '4.5' );
$data = trim( preg_replace( '#<script[^>]*>(.*)</script>#is', '$1', $data ) );