mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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 ) );
|
||||
|
||||
Reference in New Issue
Block a user