Changeset 55673 for trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php
- Timestamp:
- 04/21/2023 10:41:58 AM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php
r54670 r55673 238 238 * @since 5.5.0 239 239 * @since 5.9.0 Renamed `$block_type` to `$item` to match parent class for PHP 8 named parameter support. 240 * @since 6.3.0 Added `selectors` field. 240 241 * 241 242 * @param WP_Block_Type $item Block type data. … … 279 280 'provides_context', 280 281 'uses_context', 282 'selectors', 281 283 'supports', 282 284 'styles', … … 380 382 * 381 383 * @since 5.5.0 384 * @since 6.3.0 Added `selectors` field. 382 385 * 383 386 * @return array Item schema data. … … 516 519 'type' => 'string', 517 520 ), 521 'context' => array( 'embed', 'view', 'edit' ), 522 'readonly' => true, 523 ), 524 'selectors' => array( 525 'description' => __( 'Custom CSS selectors.' ), 526 'type' => 'object', 527 'default' => array(), 528 'properties' => array(), 518 529 'context' => array( 'embed', 'view', 'edit' ), 519 530 'readonly' => true,
Note: See TracChangeset
for help on using the changeset viewer.