Make WordPress Core

Ticket #34486: 34486.diff

File 34486.diff, 1.3 KB (added by akirk, 9 years ago)
  • src/wp-includes/rest-api/rest-functions.php

     
    361361 */
    362362function rest_handle_deprecated_function( $function, $replacement, $version ) {
    363363        if ( ! empty( $replacement ) ) {
     364                /* translators: %1$s: function name, %2$s: WordPress version number, %3$s: new function name */
    364365                $string = sprintf( __( '%1$s (since %2$s; use %3$s instead)' ), $function, $version, $replacement );
    365366        } else {
     367                /* translators: %1$s: function name, %2$s: WordPress version number */
    366368                $string = sprintf( __( '%1$s (since %2$s; no alternative available)' ), $function, $version );
    367369        }
    368370
     
    380382 */
    381383function rest_handle_deprecated_argument( $function, $replacement, $version ) {
    382384        if ( ! empty( $replacement ) ) {
     385                /* translators: %1$s: function name, %2$s: WordPress version number, %3$s: new function name */
    383386                $string = sprintf( __( '%1$s (since %2$s; %3$s)' ), $function, $version, $replacement );
    384387        } else {
     388                /* translators: %1$s: function name, %2$s: WordPress version number */
    385389                $string = sprintf( __( '%1$s (since %2$s; no alternative available)' ), $function, $version );
    386390        }
    387391