From d611efe5b13f5a2c3e75a4980dabab0552312e90 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 23 Aug 2016 23:53:27 +0000 Subject: [PATCH] I18N: Add translator comments for strings in `wp-includes/functions.wp-scripts.php`. Props ramiy. Fixes #37803. Built from https://develop.svn.wordpress.org/trunk@38345 git-svn-id: http://core.svn.wordpress.org/trunk@38286 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.wp-scripts.php | 9 +++++++-- wp-includes/version.php | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/wp-includes/functions.wp-scripts.php b/wp-includes/functions.wp-scripts.php index 767d995d67..315d69f8d0 100644 --- a/wp-includes/functions.wp-scripts.php +++ b/wp-includes/functions.wp-scripts.php @@ -39,6 +39,7 @@ function _wp_scripts_maybe_doing_it_wrong( $function ) { } _doing_it_wrong( $function, sprintf( + /* translators: 1: wp_enqueue_scripts, 2: admin_enqueue_scripts, 3: login_enqueue_scripts */ __( 'Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.' ), 'wp_enqueue_scripts', 'admin_enqueue_scripts', @@ -224,8 +225,12 @@ function wp_deregister_script( $handle ) { ); if ( in_array( $handle, $no ) ) { - $message = sprintf( __( 'Do not deregister the %1$s script in the administration area. To target the front-end theme, use the %2$s hook.' ), - "$handle", 'wp_enqueue_scripts' ); + $message = sprintf( + /* translators: 1: script name, 2: wp_enqueue_scripts */ + __( 'Do not deregister the %1$s script in the administration area. To target the front-end theme, use the %2$s hook.' ), + "$handle", + 'wp_enqueue_scripts' + ); _doing_it_wrong( __FUNCTION__, $message, '3.6.0' ); return; } diff --git a/wp-includes/version.php b/wp-includes/version.php index f5fe9fd3c4..2315e9a183 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-alpha-38344'; +$wp_version = '4.7-alpha-38345'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.