Make WordPress Core

Changeset 58184

Timestamp:
05/23/2024 01:39:09 PM (3 months ago)
Author:
SergeyBiryukov
Message:

Editor: Add excerpt support to the wp_block post type.

The purpose is to enable using the excerpt as a description for user-created patterns on the Site Editor Pattern screens.

This commit backports the original PR from Gutenberg repository:

Reference: #55244: Patterns: Add descriptions to user-created patterns.

Follow-up to [44146], [44150], [50835], [56030].

Props poena, ntsekouras, krupalpanchal.
Fixes #61250.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post.php

    r58175 r58184  
    329329            'supports'              => array(
    330330                'title',
     331
    331332                'editor',
    332333                'revisions',
  • trunk/tests/qunit/fixtures/wp-api-generated.js

    r58065 r58184  
    38803880                            "required": false
    38813881                        },
     3882
     3883
     3884
     3885
     3886
     3887
     3888
     3889
     3890
     3891
     3892
     3893
     3894
     3895
     3896
     3897
     3898
     3899
     3900
     3901
     3902
     3903
     3904
     3905
     3906
     3907
     3908
     3909
     3910
     3911
     3912
     3913
     3914
     3915
    38823916                        "meta": {
    38833917                            "description": "Meta fields.",
     
    39403974                            "required": false
    39413975                        },
     3976
     3977
     3978
     3979
     3980
    39423981                        "password": {
    39433982                            "description": "The password for the post if it is password protected.",
     
    40504089                            "required": false
    40514090                        },
     4091
     4092
     4093
     4094
     4095
     4096
     4097
     4098
     4099
     4100
     4101
     4102
     4103
     4104
     4105
     4106
     4107
     4108
     4109
     4110
     4111
     4112
     4113
     4114
     4115
     4116
     4117
     4118
     4119
     4120
     4121
     4122
     4123
     4124
    40524125                        "meta": {
    40534126                            "description": "Meta fields.",
     
    43694442                                "protected": {
    43704443                                    "description": "Whether the content is protected with a password.",
     4444
     4445
     4446
     4447
     4448
     4449
     4450
     4451
     4452
     4453
     4454
     4455
     4456
     4457
     4458
     4459
     4460
     4461
     4462
     4463
     4464
     4465
     4466
     4467
     4468
     4469
     4470
     4471
     4472
     4473
     4474
     4475
     4476
     4477
    43714478                                    "type": "boolean",
    43724479                                    "context": [
Note: See TracChangeset for help on using the changeset viewer.