Changeset 50234 for trunk/src/wp-includes/rest-api.php
- Timestamp:
- 02/07/2021 12:42:06 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api.php
r50150 r50234 1786 1786 } 1787 1787 1788 /* translators: 1: Parameter. */1789 return new WP_Error( 'rest_no_matching_schema', sprintf( __( '% 1$s does not match any of the expected formats.' ), $param ) );1788 /* translators: %s: Parameter. */ 1789 return new WP_Error( 'rest_no_matching_schema', sprintf( __( '%s does not match any of the expected formats.' ), $param ) ); 1790 1790 } 1791 1791 … … 1890 1890 return new WP_Error( 1891 1891 'rest_one_of_multiple_matches', 1892 /* translators: 1: Parameter. */1893 sprintf( __( '% 1$s matches more than one of the expected formats.' ), $param ),1892 /* translators: %s: Parameter. */ 1893 sprintf( __( '%s matches more than one of the expected formats.' ), $param ), 1894 1894 array( 'positions' => $schema_positions ) 1895 1895 ); … … 2381 2381 2382 2382 if ( ! empty( $args['uniqueItems'] ) && ! rest_validate_array_contains_unique_items( $value ) ) { 2383 /* translators: 1: Parameter. */2384 return new WP_Error( 'rest_duplicate_items', sprintf( __( '% 1$s has duplicate items.' ), $param ) );2383 /* translators: %s: Parameter. */ 2384 return new WP_Error( 'rest_duplicate_items', sprintf( __( '%s has duplicate items.' ), $param ) ); 2385 2385 } 2386 2386 … … 2683 2683 2684 2684 if ( ! empty( $args['uniqueItems'] ) && ! rest_validate_array_contains_unique_items( $value ) ) { 2685 /* translators: 1: Parameter. */2686 return new WP_Error( 'rest_duplicate_items', sprintf( __( '% 1$s has duplicate items.' ), $param ) );2685 /* translators: %s: Parameter. */ 2686 return new WP_Error( 'rest_duplicate_items', sprintf( __( '%s has duplicate items.' ), $param ) ); 2687 2687 } 2688 2688
Note: See TracChangeset
for help on using the changeset viewer.