Changeset 48765
- Timestamp:
- 08/09/2020 01:44:29 AM (4 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-recovery-mode-email-service.php
r48590 r48765 76 76 77 77 $err_message = sprintf( 78 /* translators: 1 . Last sent as a human time diff, 2.Wait time as a human time diff. */78 /* translators: 1: Last sent as a human time diff, 2: Wait time as a human time diff. */ 79 79 __( 'A recovery link was already sent %1$s ago. Please wait another %2$s before requesting a new email.' ), 80 80 human_time_diff( $last_sent ), -
trunk/src/wp-includes/rest-api.php
r48590 r48765 94 94 __FUNCTION__, 95 95 sprintf( 96 /* translators: 1 . The REST API route being registered. 2. The argument name. 3.The suggested function name. */96 /* translators: 1: The REST API route being registered, 2: The argument name, 3: The suggested function name. */ 97 97 __( 'The REST API route definition for %1$s is missing the required %2$s argument. For REST API routes that are intended to be public, use %3$s as the permission callback.' ), 98 98 '<code>' . $clean_namespace . '/' . trim( $route, '/' ) . '</code>', … … 1462 1462 _doing_it_wrong( 1463 1463 __FUNCTION__, 1464 /* translators: 1 . Parameter. 2.List of allowed types. */1464 /* translators: 1: Parameter, 2: List of allowed types. */ 1465 1465 wp_sprintf( __( 'The "type" schema keyword for %1$s can only contain the built-in types: %2$l.' ), $param, $allowed_types ), 1466 1466 '5.5.0' … … 1561 1561 1562 1562 if ( ! isset( $args['type'] ) ) { 1563 /* translators: 1. Parameter*/1563 /* translators: %s: Parameter. */ 1564 1564 _doing_it_wrong( __FUNCTION__, sprintf( __( 'The "type" schema keyword for %s is required.' ), $param ), '5.5.0' ); 1565 1565 } … … 1579 1579 _doing_it_wrong( 1580 1580 __FUNCTION__, 1581 /* translators: 1 . Parameter 2.The list of allowed types. */1581 /* translators: 1: Parameter, 2: The list of allowed types. */ 1582 1582 wp_sprintf( __( 'The "type" schema keyword for %1$s can only be on of the built-in types: %2$l.' ), $param, $allowed_types ), 1583 1583 '5.5.0' … … 1613 1613 1614 1614 if ( ! empty( $args['uniqueItems'] ) && ! rest_validate_array_contains_unique_items( $value ) ) { 1615 /* translators: 1: Parameter */1615 /* translators: 1: Parameter. */ 1616 1616 return new WP_Error( 'rest_invalid_param', sprintf( __( '%1$s has duplicate items.' ), $param ) ); 1617 1617 } … … 1765 1765 case 'uuid': 1766 1766 if ( ! wp_is_uuid( $value ) ) { 1767 /* translators: %s is the name of a JSON field expecting a valid uuid. */1767 /* translators: %s: The name of a JSON field expecting a valid UUID. */ 1768 1768 return new WP_Error( 'rest_invalid_uuid', sprintf( __( '%s is not a valid UUID.' ), $param ) ); 1769 1769 } … … 1832 1832 1833 1833 if ( ! isset( $args['type'] ) ) { 1834 /* translators: 1. Parameter*/1834 /* translators: %s: Parameter. */ 1835 1835 _doing_it_wrong( __FUNCTION__, sprintf( __( 'The "type" schema keyword for %s is required.' ), $param ), '5.5.0' ); 1836 1836 } … … 1849 1849 _doing_it_wrong( 1850 1850 __FUNCTION__, 1851 /* translators: 1 . Parameter. 2.The list of allowed types. */1851 /* translators: 1: Parameter, 2: The list of allowed types. */ 1852 1852 wp_sprintf( __( 'The "type" schema keyword for %1$s can only be on of the built-in types: %2$l.' ), $param, $allowed_types ), 1853 1853 '5.5.0' … … 1865 1865 1866 1866 if ( ! empty( $args['uniqueItems'] ) && ! rest_validate_array_contains_unique_items( $value ) ) { 1867 /* translators: 1: Parameter */1867 /* translators: 1: Parameter. */ 1868 1868 return new WP_Error( 'rest_invalid_param', sprintf( __( '%1$s has duplicate items.' ), $param ) ); 1869 1869 } -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r48613 r48765 2381 2381 'register_taxonomy', 2382 2382 sprintf( 2383 /* translators: 1 . The taxonomy name, 2. The property name, either 'rest_base' or 'name', 3.The conflicting value. */2383 /* translators: 1: The taxonomy name, 2: The property name, either 'rest_base' or 'name', 3: The conflicting value. */ 2384 2384 __( 'The "%1$s" taxonomy "%2$s" property (%3$s) conflicts with an existing property on the REST API Posts Controller. Specify a custom "rest_base" when registering the taxonomy to avoid this error.' ), 2385 2385 $taxonomy->name,
Note: See TracChangeset
for help on using the changeset viewer.