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 ) );

View File

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

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.6-alpha-37189';
$wp_version = '4.6-alpha-37190';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.