Changeset 57068
- Timestamp:
- 11/06/2023 02:45:28 PM (13 months ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-block-type.php
r56587 r57068 243 243 * Attributes supported by every block. 244 244 * 245 * @since 6.0.0 245 * @since 6.0.0 Added `lock`. 246 * @since 6.5.0 Added `metadata`. 246 247 * @var array 247 248 */ 248 249 const GLOBAL_ATTRIBUTES = array( 249 'lock' => array( 'type' => 'object' ), 250 'lock' => array( 'type' => 'object' ), 251 'metadata' => array( 'type' => 'object' ), 250 252 ); 251 253 -
trunk/tests/phpunit/tests/admin/includesPost.php
r56943 r57068 936 936 'icon' => 'text', 937 937 'attributes' => array( 938 'lock' => array( 'type' => 'object' ), 938 'lock' => array( 'type' => 'object' ), 939 'metadata' => array( 'type' => 'object' ), 939 940 ), 940 941 'usesContext' => array(), -
trunk/tests/phpunit/tests/blocks/register.php
r57026 r57068 727 727 * @ticket 50328 728 728 * @ticket 57585 729 * @ticket 59797 729 730 */ 730 731 public function test_block_registers_with_metadata_fixture() { … … 745 746 $this->assertSame( 746 747 array( 747 'message' => array(748 'message' => array( 748 749 'type' => 'string', 749 750 ), 750 'lock' => array( 'type' => 'object' ), 751 'lock' => array( 'type' => 'object' ), 752 'metadata' => array( 'type' => 'object' ), 751 753 ), 752 754 $result->attributes -
trunk/tests/phpunit/tests/blocks/wpBlock.php
r56559 r57068 60 60 /** 61 61 * @ticket 49927 62 * @ticket 59797 62 63 */ 63 64 public function test_constructor_assigns_block_type_from_registry() { … … 84 85 ), 85 86 'lock' => array( 'type' => 'object' ), 87 'metadata' => array( 'type' => 'object' ), 86 88 ), 87 89 $block->block_type->attributes -
trunk/tests/phpunit/tests/blocks/wpBlockType.php
r55457 r57068 81 81 /* 82 82 * @ticket 55567 83 * @ticket 59797 83 84 * @covers WP_Block_Type::set_props 84 85 */ … … 88 89 $this->assertSameSetsWithIndex( 89 90 array( 90 'lock' => array( 'type' => 'object' ), 91 'lock' => array( 'type' => 'object' ), 92 'metadata' => array( 'type' => 'object' ), 91 93 ), 92 94 $block_type->attributes … … 96 98 /* 97 99 * @ticket 55567 100 * @ticket 59797 98 101 * @covers WP_Block_Type::set_props 99 102 */ … … 103 106 array( 104 107 'attributes' => array( 105 'lock' => array(108 'lock' => array( 106 109 'type' => 'string', 110 ), 111 'metadata' => array( 112 'type' => 'number', 107 113 ), 108 114 ), … … 113 119 $this->assertSameSetsWithIndex( 114 120 array( 115 'lock' => array( 'type' => 'string' ), 121 'lock' => array( 'type' => 'string' ), 122 'metadata' => array( 'type' => 'number' ), 116 123 ), 117 124 $block_type->attributes -
trunk/tests/phpunit/tests/rest-api/rest-block-type-controller.php
r56649 r57068 199 199 * @ticket 57585 200 200 * @ticket 59346 201 * @ticket 59797 201 202 */ 202 203 public function test_get_item_invalid() { … … 243 244 $this->assertSameSetsWithIndex( 244 245 array( 245 'lock' => array( 'type' => 'object' ), 246 'lock' => array( 'type' => 'object' ), 247 'metadata' => array( 'type' => 'object' ), 246 248 ), 247 249 $data['attributes'] … … 273 275 * @ticket 57585 274 276 * @ticket 59346 277 * @ticket 59797 275 278 */ 276 279 public function test_get_item_defaults() { … … 317 320 $this->assertSameSetsWithIndex( 318 321 array( 319 'lock' => array( 'type' => 'object' ), 322 'lock' => array( 'type' => 'object' ), 323 'metadata' => array( 'type' => 'object' ), 320 324 ), 321 325 $data['attributes']
Note: See TracChangeset
for help on using the changeset viewer.