Changeset 56063 for trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-block-patterns-controller.php
- Timestamp:
- 06/27/2023 11:11:02 AM (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-block-patterns-controller.php
r55173 r56063 156 156 * 157 157 * @since 6.0.0 158 * @since 6.3.0 Added `source` property. 158 159 * 159 160 * @param array $item Raw pattern as registered, before any changes. … … 175 176 'postTypes' => 'post_types', 176 177 'templateTypes' => 'template_types', 178 'source' => 'source', 177 179 ); 178 180 $data = array(); … … 193 195 * 194 196 * @since 6.0.0 197 * @since 6.3.0 Added `source` property. 195 198 * 196 199 * @return array Item schema data. … … 268 271 'context' => array( 'view', 'edit', 'embed' ), 269 272 ), 273 'source' => array( 274 'description' => __( 'Where the pattern comes from e.g. core' ), 275 'type' => 'string', 276 'readonly' => true, 277 'context' => array( 'view', 'edit', 'embed' ), 278 'enum' => array( 279 'core', 280 'plugin', 281 'theme', 282 'pattern-directory/core', 283 'pattern-directory/theme', 284 'pattern-directory/featured', 285 ), 286 ), 270 287 ), 271 288 );
Note: See TracChangeset
for help on using the changeset viewer.