Ticket #34908: 34908.1.patch
File 34908.1.patch, 1.6 KB (added by , 10 years ago) |
---|
-
src/wp-includes/rest-api.php
324 324 * 325 325 * @since 4.4.0 326 326 * 327 * @param string $function Function name.328 * @param string $replacement Replacement function name.327 * @param string $function The function that was called. 328 * @param string $replacement The function that should have been called. 329 329 * @param string $version Version. 330 330 */ 331 331 function rest_handle_deprecated_function( $function, $replacement, $version ) { … … 345 345 * 346 346 * @since 4.4.0 347 347 * 348 * @param string $function Function name.349 * @param string $ replacement Replacement function name.348 * @param string $function The function that was called. 349 * @param string $message A message regarding the change. 350 350 * @param string $version Version. 351 351 */ 352 function rest_handle_deprecated_argument( $function, $ replacement, $version ) {353 if ( ! empty( $ replacement) ) {354 /* translators: 1: function name, 2: WordPress version number, 3: new argument name */355 $string = sprintf( __( '%1$s (since %2$s; %3$s)' ), $function, $version, $ replacement);352 function rest_handle_deprecated_argument( $function, $message, $version ) { 353 if ( ! empty( $message ) ) { 354 /* translators: 1: function name, 2: WordPress version number, 3: error message */ 355 $string = sprintf( __( '%1$s (since %2$s; %3$s)' ), $function, $version, $message ); 356 356 } else { 357 357 /* translators: 1: function name, 2: WordPress version number */ 358 358 $string = sprintf( __( '%1$s (since %2$s; no alternative available)' ), $function, $version );