Changeset 48610
- Timestamp:
- 07/25/2020 04:26:44 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r48104 r48610 2193 2193 ), 2194 2194 ); 2195 2195 2196 foreach ( $post_type_attributes as $attribute ) { 2196 2197 if ( isset( $fixed_schemas[ $this->post_type ] ) && ! in_array( $attribute, $fixed_schemas[ $this->post_type ], true ) ) { … … 2425 2426 $new_fields = array_diff( array_keys( $schema['properties'] ), $schema_fields ); 2426 2427 if ( count( $new_fields ) > 0 ) { 2427 _doing_it_wrong( __METHOD__, __( 'Please use register_rest_field to add new schema properties.' ), '5.4.0' ); 2428 _doing_it_wrong( 2429 __METHOD__, 2430 sprintf( 2431 /* translators: %s: register_rest_field */ 2432 __( 'Please use %s to add new schema properties.' ), 2433 '<code>register_rest_field<code>' 2434 ), 2435 '5.4.0' 2436 ); 2428 2437 } 2429 2438
Note: See TracChangeset
for help on using the changeset viewer.