- Timestamp:
- 06/28/2023 03:51:23 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-blocks-controller.php
r52582 r56093 68 68 */ 69 69 public function get_item_schema() { 70 if ( $this->schema ) { 71 return $this->add_additional_fields_schema( $this->schema ); 72 } 73 70 74 // Do not cache this schema because all properties are derived from parent controller. 71 75 $schema = parent::get_item_schema(); … … 87 91 unset( $schema['properties']['content']['properties']['rendered'] ); 88 92 89 return $schema; 93 $this->schema = $schema; 94 95 return $this->add_additional_fields_schema( $this->schema ); 90 96 } 91 97
Note: See TracChangeset
for help on using the changeset viewer.