I18N: Remove tag and function names from two translatable strings.
Add translator comments. Props andg for initial patch. Fixes #36496. Built from https://develop.svn.wordpress.org/trunk@37188 git-svn-id: http://core.svn.wordpress.org/trunk@37154 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e9dbea9aac
commit
7e40b1d282
|
@ -107,7 +107,12 @@ function wp_add_inline_script( $handle, $data, $position = 'after' ) {
|
|||
_wp_scripts_maybe_doing_it_wrong( __FUNCTION__ );
|
||||
|
||||
if ( false !== stripos( $data, '</script>' ) ) {
|
||||
_doing_it_wrong( __FUNCTION__, __( 'Do not pass script tags to wp_add_inline_script().' ), '4.5.0' );
|
||||
_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>wp_add_inline_script()</code>'
|
||||
), '4.5' );
|
||||
$data = trim( preg_replace( '#<script[^>]*>(.*)</script>#is', '$1', $data ) );
|
||||
}
|
||||
|
||||
|
|
|
@ -84,7 +84,12 @@ function wp_add_inline_style( $handle, $data ) {
|
|||
_wp_scripts_maybe_doing_it_wrong( __FUNCTION__ );
|
||||
|
||||
if ( false !== stripos( $data, '</style>' ) ) {
|
||||
_doing_it_wrong( __FUNCTION__, __( 'Do not pass style tags to wp_add_inline_style().' ), '3.7' );
|
||||
_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>wp_add_inline_style()</code>'
|
||||
), '3.7' );
|
||||
$data = trim( preg_replace( '#<style[^>]*>(.*)</style>#is', '$1', $data ) );
|
||||
}
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.6-alpha-37185';
|
||||
$wp_version = '4.6-alpha-37188';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue