Loading wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php +10 −1 Original line number Diff line number Diff line Loading @@ -2192,6 +2192,7 @@ class WP_REST_Posts_Controller extends WP_REST_Controller { 'custom-fields', ), ); foreach ( $post_type_attributes as $attribute ) { if ( isset( $fixed_schemas[ $this->post_type ] ) && ! in_array( $attribute, $fixed_schemas[ $this->post_type ], true ) ) { continue; Loading Loading @@ -2424,7 +2425,15 @@ class WP_REST_Posts_Controller extends WP_REST_Controller { // Emit a _doing_it_wrong warning if user tries to add new properties using this filter. $new_fields = array_diff( array_keys( $schema['properties'] ), $schema_fields ); if ( count( $new_fields ) > 0 ) { _doing_it_wrong( __METHOD__, __( 'Please use register_rest_field to add new schema properties.' ), '5.4.0' ); _doing_it_wrong( __METHOD__, sprintf( /* translators: %s: register_rest_field */ __( 'Please use %s to add new schema properties.' ), '<code>register_rest_field<code>' ), '5.4.0' ); } $this->schema = $schema; Loading wp-includes/version.php +1 −1 Original line number Diff line number Diff line Loading @@ -13,7 +13,7 @@ * * @global string $wp_version */ $wp_version = '5.5-beta3-48609'; $wp_version = '5.5-beta3-48610'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. Loading Loading
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php +10 −1 Original line number Diff line number Diff line Loading @@ -2192,6 +2192,7 @@ class WP_REST_Posts_Controller extends WP_REST_Controller { 'custom-fields', ), ); foreach ( $post_type_attributes as $attribute ) { if ( isset( $fixed_schemas[ $this->post_type ] ) && ! in_array( $attribute, $fixed_schemas[ $this->post_type ], true ) ) { continue; Loading Loading @@ -2424,7 +2425,15 @@ class WP_REST_Posts_Controller extends WP_REST_Controller { // Emit a _doing_it_wrong warning if user tries to add new properties using this filter. $new_fields = array_diff( array_keys( $schema['properties'] ), $schema_fields ); if ( count( $new_fields ) > 0 ) { _doing_it_wrong( __METHOD__, __( 'Please use register_rest_field to add new schema properties.' ), '5.4.0' ); _doing_it_wrong( __METHOD__, sprintf( /* translators: %s: register_rest_field */ __( 'Please use %s to add new schema properties.' ), '<code>register_rest_field<code>' ), '5.4.0' ); } $this->schema = $schema; Loading
wp-includes/version.php +1 −1 Original line number Diff line number Diff line Loading @@ -13,7 +13,7 @@ * * @global string $wp_version */ $wp_version = '5.5-beta3-48609'; $wp_version = '5.5-beta3-48610'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. Loading