Changeset 56093 for trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-block-pattern-categories-controller.php
- Timestamp:
- 06/28/2023 03:51:23 PM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-block-pattern-categories-controller.php
r55692 r56093 126 126 */ 127 127 public function get_item_schema() { 128 if ( $this->schema ) { 129 return $this->add_additional_fields_schema( $this->schema ); 130 } 131 128 132 $schema = array( 129 133 '$schema' => 'http://json-schema.org/draft-04/schema#', … … 152 156 ); 153 157 154 return $this->add_additional_fields_schema( $schema ); 158 $this->schema = $schema; 159 160 return $this->add_additional_fields_schema( $this->schema ); 155 161 } 156 162 }
Note: See TracChangeset
for help on using the changeset viewer.