Changeset 57771
- Timestamp:
- 03/05/2024 06:53:44 AM (12 months ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-template-utils.php
r57644 r57771 1464 1464 wp_update_post( 1465 1465 array( 1466 'ID' 1467 'post_content' 1466 'ID' => $post->ID, 1467 'post_content' => $content, 1468 1468 ) 1469 1469 ); -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php
r57565 r57771 471 471 'type' => 'object', 472 472 'properties' => array( 473 'api_version' => array(473 'api_version' => array( 474 474 'description' => __( 'Version of block API.' ), 475 475 'type' => 'integer', … … 478 478 'readonly' => true, 479 479 ), 480 'title' => array(480 'title' => array( 481 481 'description' => __( 'Title of block type.' ), 482 482 'type' => 'string', … … 485 485 'readonly' => true, 486 486 ), 487 'name' => array(487 'name' => array( 488 488 'description' => __( 'Unique name identifying the block type.' ), 489 489 'type' => 'string', … … 493 493 'readonly' => true, 494 494 ), 495 'description' => array(495 'description' => array( 496 496 'description' => __( 'Description of block type.' ), 497 497 'type' => 'string', … … 500 500 'readonly' => true, 501 501 ), 502 'icon' => $icon_definition,503 'attributes' => array(502 'icon' => $icon_definition, 503 'attributes' => array( 504 504 'description' => __( 'Block attributes.' ), 505 505 'type' => array( 'object', 'null' ), … … 512 512 'readonly' => true, 513 513 ), 514 'provides_context' => array(514 'provides_context' => array( 515 515 'description' => __( 'Context provided by blocks of this type.' ), 516 516 'type' => 'object', … … 523 523 'readonly' => true, 524 524 ), 525 'uses_context' => array(525 'uses_context' => array( 526 526 'description' => __( 'Context values inherited by blocks of this type.' ), 527 527 'type' => 'array', … … 533 533 'readonly' => true, 534 534 ), 535 'selectors' => array(535 'selectors' => array( 536 536 'description' => __( 'Custom CSS selectors.' ), 537 537 'type' => 'object', … … 541 541 'readonly' => true, 542 542 ), 543 'supports' => array(543 'supports' => array( 544 544 'description' => __( 'Block supports.' ), 545 545 'type' => 'object', … … 549 549 'readonly' => true, 550 550 ), 551 'category' => $category_definition,552 'is_dynamic' => array(551 'category' => $category_definition, 552 'is_dynamic' => array( 553 553 'description' => __( 'Is the block dynamically rendered.' ), 554 554 'type' => 'boolean', … … 557 557 'readonly' => true, 558 558 ), 559 'editor_script_handles' => array(559 'editor_script_handles' => array( 560 560 'description' => __( 'Editor script handles.' ), 561 561 'type' => array( 'array' ), … … 567 567 'readonly' => true, 568 568 ), 569 'script_handles' => array(569 'script_handles' => array( 570 570 'description' => __( 'Public facing and editor script handles.' ), 571 571 'type' => array( 'array' ), … … 577 577 'readonly' => true, 578 578 ), 579 'view_script_handles' => array(579 'view_script_handles' => array( 580 580 'description' => __( 'Public facing script handles.' ), 581 581 'type' => array( 'array' ), … … 587 587 'readonly' => true, 588 588 ), 589 'view_script_module_ids' 589 'view_script_module_ids' => array( 590 590 'description' => __( 'Public facing script module IDs.' ), 591 591 'type' => array( 'array' ), … … 597 597 'readonly' => true, 598 598 ), 599 'editor_style_handles' => array(599 'editor_style_handles' => array( 600 600 'description' => __( 'Editor style handles.' ), 601 601 'type' => array( 'array' ), … … 607 607 'readonly' => true, 608 608 ), 609 'style_handles' => array(609 'style_handles' => array( 610 610 'description' => __( 'Public facing and editor style handles.' ), 611 611 'type' => array( 'array' ), … … 617 617 'readonly' => true, 618 618 ), 619 'view_style_handles' => array(619 'view_style_handles' => array( 620 620 'description' => __( 'Public facing style handles.' ), 621 621 'type' => array( 'array' ), … … 627 627 'readonly' => true, 628 628 ), 629 'styles' => array(629 'styles' => array( 630 630 'description' => __( 'Block style variations.' ), 631 631 'type' => 'array', … … 656 656 'readonly' => true, 657 657 ), 658 'variations' => array(658 'variations' => array( 659 659 'description' => __( 'Block variations.' ), 660 660 'type' => 'array', … … 708 708 'default' => null, 709 709 ), 710 'textdomain' => array(710 'textdomain' => array( 711 711 'description' => __( 'Public text domain.' ), 712 712 'type' => array( 'string', 'null' ), … … 715 715 'readonly' => true, 716 716 ), 717 'parent' => array(717 'parent' => array( 718 718 'description' => __( 'Parent blocks.' ), 719 719 'type' => array( 'array', 'null' ), … … 726 726 'readonly' => true, 727 727 ), 728 'ancestor' => array(728 'ancestor' => array( 729 729 'description' => __( 'Ancestor blocks.' ), 730 730 'type' => array( 'array', 'null' ), … … 737 737 'readonly' => true, 738 738 ), 739 'allowed_blocks' => array(739 'allowed_blocks' => array( 740 740 'description' => __( 'Allowed child block types.' ), 741 741 'type' => array( 'array', 'null' ), … … 748 748 'readonly' => true, 749 749 ), 750 'keywords' => $keywords_definition,751 'example' => $example_definition,752 'block_hooks' => array(750 'keywords' => $keywords_definition, 751 'example' => $example_definition, 752 'block_hooks' => array( 753 753 'description' => __( 'This block is automatically inserted near any occurrence of the block types used as keys of this map, into a relative position given by the corresponding value.' ), 754 754 'type' => 'object',
Note: See TracChangeset
for help on using the changeset viewer.