REST API: Add missing translator comments for deprecated function and argument strings.
Props akirk. Fixes #34486. Built from https://develop.svn.wordpress.org/trunk@35433 git-svn-id: http://core.svn.wordpress.org/trunk@35397 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a3aaa0f951
commit
e7082e31dd
|
@ -361,8 +361,10 @@ function rest_ensure_response( $response ) {
|
||||||
*/
|
*/
|
||||||
function rest_handle_deprecated_function( $function, $replacement, $version ) {
|
function rest_handle_deprecated_function( $function, $replacement, $version ) {
|
||||||
if ( ! empty( $replacement ) ) {
|
if ( ! empty( $replacement ) ) {
|
||||||
|
/* translators: 1: function name, 2: WordPress version number, 3: new function name */
|
||||||
$string = sprintf( __( '%1$s (since %2$s; use %3$s instead)' ), $function, $version, $replacement );
|
$string = sprintf( __( '%1$s (since %2$s; use %3$s instead)' ), $function, $version, $replacement );
|
||||||
} else {
|
} else {
|
||||||
|
/* translators: 1: function name, 2: WordPress version number */
|
||||||
$string = sprintf( __( '%1$s (since %2$s; no alternative available)' ), $function, $version );
|
$string = sprintf( __( '%1$s (since %2$s; no alternative available)' ), $function, $version );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -380,8 +382,10 @@ function rest_handle_deprecated_function( $function, $replacement, $version ) {
|
||||||
*/
|
*/
|
||||||
function rest_handle_deprecated_argument( $function, $replacement, $version ) {
|
function rest_handle_deprecated_argument( $function, $replacement, $version ) {
|
||||||
if ( ! empty( $replacement ) ) {
|
if ( ! empty( $replacement ) ) {
|
||||||
|
/* translators: 1: function name, 2: WordPress version number, 3: new argument name */
|
||||||
$string = sprintf( __( '%1$s (since %2$s; %3$s)' ), $function, $version, $replacement );
|
$string = sprintf( __( '%1$s (since %2$s; %3$s)' ), $function, $version, $replacement );
|
||||||
} else {
|
} else {
|
||||||
|
/* translators: 1: function name, 2: WordPress version number */
|
||||||
$string = sprintf( __( '%1$s (since %2$s; no alternative available)' ), $function, $version );
|
$string = sprintf( __( '%1$s (since %2$s; no alternative available)' ), $function, $version );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.4-beta2-35432';
|
$wp_version = '4.4-beta2-35433';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue