Changeset 44812
- Timestamp:
- 03/07/2019 11:53:15 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/script-loader.php
r44808 r44812 550 550 ' .use( wp.data.plugins.persistence, { storageKey: storageKey } )', 551 551 ' .use( wp.data.plugins.controls );', 552 ' 552 ' wp.data.plugins.persistence.__unstableMigrate( { storageKey: storageKey } );', 553 553 '} )();', 554 554 ) -
trunk/tests/phpunit/includes/functions.php
r44701 r44812 238 238 function _unhook_block_registration() { 239 239 remove_action( 'init', 'register_block_core_archives' ); 240 remove_action( 'init', 'register_block_core_calendar' ); 240 241 remove_action( 'init', 'register_block_core_categories' ); 241 242 remove_action( 'init', 'register_block_core_latest_posts' ); 243 remove_action( 'init', 'register_block_core_rss' ); 244 remove_action( 'init', 'register_block_core_search' ); 242 245 remove_action( 'init', 'register_block_core_shortcode' ); 246 remove_action( 'init', 'register_block_core_tag_cloud' ); 243 247 } 244 248 tests_add_filter( 'init', '_unhook_block_registration', 1000 ); -
trunk/tests/phpunit/tests/rest-api/rest-schema-setup.php
r44633 r44812 123 123 '/wp/v2/block-renderer/(?P<name>core/latest-comments)', 124 124 '/wp/v2/block-renderer/(?P<name>core/archives)', 125 '/wp/v2/block-renderer/(?P<name>core/calendar)', 125 126 '/wp/v2/block-renderer/(?P<name>core/categories)', 126 127 '/wp/v2/block-renderer/(?P<name>core/latest-posts)', 128 '/wp/v2/block-renderer/(?P<name>core/rss)', 129 '/wp/v2/block-renderer/(?P<name>core/search)', 127 130 '/wp/v2/block-renderer/(?P<name>core/shortcode)', 131 '/wp/v2/block-renderer/(?P<name>core/tag-cloud)', 128 132 '/wp/v2/settings', 129 133 '/wp/v2/themes', -
trunk/tests/qunit/fixtures/wp-api-generated.js
r44446 r44812 4411 4411 ] 4412 4412 }, 4413 "/wp/v2/block-renderer/(?P<name>core/calendar)": { 4414 "namespace": "wp/v2", 4415 "methods": [ 4416 "GET" 4417 ], 4418 "endpoints": [ 4419 { 4420 "methods": [ 4421 "GET" 4422 ], 4423 "args": { 4424 "name": { 4425 "required": false, 4426 "description": "Unique registered name for the block.", 4427 "type": "string" 4428 }, 4429 "context": { 4430 "required": false, 4431 "default": "view", 4432 "enum": [ 4433 "edit" 4434 ], 4435 "description": "Scope under which the request is made; determines fields present in response.", 4436 "type": "string" 4437 }, 4438 "attributes": { 4439 "required": false, 4440 "default": [], 4441 "description": "Attributes for core/calendar block", 4442 "type": "object" 4443 }, 4444 "post_id": { 4445 "required": false, 4446 "description": "ID of the post context.", 4447 "type": "integer" 4448 } 4449 } 4450 } 4451 ] 4452 }, 4413 4453 "/wp/v2/block-renderer/(?P<name>core/categories)": { 4414 4454 "namespace": "wp/v2", … … 4491 4531 ] 4492 4532 }, 4533 "/wp/v2/block-renderer/(?P<name>core/rss)": { 4534 "namespace": "wp/v2", 4535 "methods": [ 4536 "GET" 4537 ], 4538 "endpoints": [ 4539 { 4540 "methods": [ 4541 "GET" 4542 ], 4543 "args": { 4544 "name": { 4545 "required": false, 4546 "description": "Unique registered name for the block.", 4547 "type": "string" 4548 }, 4549 "context": { 4550 "required": false, 4551 "default": "view", 4552 "enum": [ 4553 "edit" 4554 ], 4555 "description": "Scope under which the request is made; determines fields present in response.", 4556 "type": "string" 4557 }, 4558 "attributes": { 4559 "required": false, 4560 "default": [], 4561 "description": "Attributes for core/rss block", 4562 "type": "object" 4563 }, 4564 "post_id": { 4565 "required": false, 4566 "description": "ID of the post context.", 4567 "type": "integer" 4568 } 4569 } 4570 } 4571 ] 4572 }, 4573 "/wp/v2/block-renderer/(?P<name>core/search)": { 4574 "namespace": "wp/v2", 4575 "methods": [ 4576 "GET" 4577 ], 4578 "endpoints": [ 4579 { 4580 "methods": [ 4581 "GET" 4582 ], 4583 "args": { 4584 "name": { 4585 "required": false, 4586 "description": "Unique registered name for the block.", 4587 "type": "string" 4588 }, 4589 "context": { 4590 "required": false, 4591 "default": "view", 4592 "enum": [ 4593 "edit" 4594 ], 4595 "description": "Scope under which the request is made; determines fields present in response.", 4596 "type": "string" 4597 }, 4598 "attributes": { 4599 "required": false, 4600 "default": [], 4601 "description": "Attributes for core/search block", 4602 "type": "object" 4603 }, 4604 "post_id": { 4605 "required": false, 4606 "description": "ID of the post context.", 4607 "type": "integer" 4608 } 4609 } 4610 } 4611 ] 4612 }, 4493 4613 "/wp/v2/block-renderer/(?P<name>core/shortcode)": { 4494 4614 "namespace": "wp/v2", … … 4520 4640 "default": [], 4521 4641 "description": "Attributes for core/shortcode block", 4642 "type": "object" 4643 }, 4644 "post_id": { 4645 "required": false, 4646 "description": "ID of the post context.", 4647 "type": "integer" 4648 } 4649 } 4650 } 4651 ] 4652 }, 4653 "/wp/v2/block-renderer/(?P<name>core/tag-cloud)": { 4654 "namespace": "wp/v2", 4655 "methods": [ 4656 "GET" 4657 ], 4658 "endpoints": [ 4659 { 4660 "methods": [ 4661 "GET" 4662 ], 4663 "args": { 4664 "name": { 4665 "required": false, 4666 "description": "Unique registered name for the block.", 4667 "type": "string" 4668 }, 4669 "context": { 4670 "required": false, 4671 "default": "view", 4672 "enum": [ 4673 "edit" 4674 ], 4675 "description": "Scope under which the request is made; determines fields present in response.", 4676 "type": "string" 4677 }, 4678 "attributes": { 4679 "required": false, 4680 "default": [], 4681 "description": "Attributes for core/tag-cloud block", 4522 4682 "type": "object" 4523 4683 },
Note: See TracChangeset
for help on using the changeset viewer.