- Timestamp:
- 09/03/2019 12:39:13 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r45811 r45932 1220 1220 } 1221 1221 1222 /* translators: 1: parameter, 2: list of valid values*/1222 /* translators: 1: Parameter, 2: List of valid values. */ 1223 1223 return new WP_Error( 'rest_invalid_param', sprintf( __( '%1$s is not one of %2$s.' ), 'template', implode( ', ', array_keys( $allowed_templates ) ) ) ); 1224 1224 } … … 2217 2217 $base = ! empty( $taxonomy->rest_base ) ? $taxonomy->rest_base : $taxonomy->name; 2218 2218 $schema['properties'][ $base ] = array( 2219 /* translators: %s: taxonomy name*/2219 /* translators: %s: Taxonomy name. */ 2220 2220 'description' => sprintf( __( 'The terms assigned to the object in the %s taxonomy.' ), $taxonomy->name ), 2221 2221 'type' => 'array', … … 2320 2320 $tax_base = ! empty( $tax->rest_base ) ? $tax->rest_base : $tax->name; 2321 2321 2322 /* translators: %s: taxonomy name*/2322 /* translators: %s: Taxonomy name. */ 2323 2323 $assign_title = sprintf( __( 'The current user can assign terms in the %s taxonomy.' ), $tax->name ); 2324 /* translators: %s: taxonomy name*/2324 /* translators: %s: Taxonomy name. */ 2325 2325 $create_title = sprintf( __( 'The current user can create terms in the %s taxonomy.' ), $tax->name ); 2326 2326 … … 2512 2512 2513 2513 $query_params[ $base ] = array( 2514 /* translators: %s: taxonomy name*/2514 /* translators: %s: Taxonomy name. */ 2515 2515 'description' => sprintf( __( 'Limit result set to all items that have the specified term assigned in the %s taxonomy.' ), $base ), 2516 2516 'type' => 'array', … … 2522 2522 2523 2523 $query_params[ $base . '_exclude' ] = array( 2524 /* translators: %s: taxonomy name*/2524 /* translators: %s: Taxonomy name. */ 2525 2525 'description' => sprintf( __( 'Limit result set to all items except those that have the specified term assigned in the %s taxonomy.' ), $base ), 2526 2526 'type' => 'array',
Note: See TracChangeset
for help on using the changeset viewer.