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:
Sergey Biryukov
2016-04-13 04:15:40 +00:00
parent 26a5e78d94
commit 8594b7922d
2 changed files with 2 additions and 2 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 ) );