Make WordPress Core

Changeset 35433


Ignore:
Timestamp:
10/29/2015 07:03:47 PM (9 years ago)
Author:
SergeyBiryukov
Message:

REST API: Add missing translator comments for deprecated function and argument strings.

Props akirk.
Fixes #34486.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/rest-functions.php

    r35351 r35433  
    362362function rest_handle_deprecated_function( $function, $replacement, $version ) {
    363363    if ( ! empty( $replacement ) ) {
     364        /* translators: 1: function name, 2: WordPress version number, 3: new function name */
    364365        $string = sprintf( __( '%1$s (since %2$s; use %3$s instead)' ), $function, $version, $replacement );
    365366    } else {
     367        /* translators: 1: function name, 2: WordPress version number */
    366368        $string = sprintf( __( '%1$s (since %2$s; no alternative available)' ), $function, $version );
    367369    }
     
    381383function rest_handle_deprecated_argument( $function, $replacement, $version ) {
    382384    if ( ! empty( $replacement ) ) {
     385        /* translators: 1: function name, 2: WordPress version number, 3: new argument name */
    383386        $string = sprintf( __( '%1$s (since %2$s; %3$s)' ), $function, $version, $replacement );
    384387    } else {
     388        /* translators: 1: function name, 2: WordPress version number */
    385389        $string = sprintf( __( '%1$s (since %2$s; no alternative available)' ), $function, $version );
    386390    }
Note: See TracChangeset for help on using the changeset viewer.