Changeset 35845
- Timestamp:
- 12/09/2015 09:25:15 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api.php
r35822 r35845 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 */ … … 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 */
Note: See TracChangeset
for help on using the changeset viewer.