Make WordPress Core

Opened 12 months ago

Closed 12 months ago

Last modified 12 months ago

#61250 closed enhancement (fixed)

Backport: Add excerpt support to the wp_block post type

Reported by: poena's profile poena Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 6.6 Priority: normal
Severity: normal Version:
Component: Editor Keywords: has-patch
Focuses: Cc:

Description

This trac ticket is for adding a PHP backport of https://github.com/WordPress/gutenberg/pull/60549,
which adds support for excerpts to the wp_block post type.

The purpose is to enable using the excerpt as a description for patterns:
https://github.com/WordPress/gutenberg/issues/55244

Change History (7)

This ticket was mentioned in PR #6579 on WordPress/wordpress-develop by @poena.


12 months ago
#1

  • Keywords has-patch added

Trac ticket: https://core.trac.wordpress.org/ticket/61250

Add excerpt to the list of supports when registering the wp_block post type.

@ntsekouras commented on PR #6579:


12 months ago
#2

Thanks @carolinan! It seems the failures are valid since the excerpt is returned in the API response.

@poena commented on PR #6579:


12 months ago
#3

Thanks @carolinan! It seems the failures are valid since the excerpt is returned in the API response.

I don't know what that means, who can help fix it?

@ntsekouras commented on PR #6579:


12 months ago
#4

I don't know what that means, who can help fix it?

I'm not excerpt here, but I tried this:

  1. In your branch start the dev environment npm run env:start
  2. Run the php tests npm run test:php
  3. Just by running the tests, my tests/qunit/fixtures/wp-api-generated.js file got updated with the excerpt info in wp/v2/blocks endpoint.

Can you try the above and then push the changes from the generated file? I believe this should be enough, but if this doesn't work, let's ping some more folks 😄

#5 @SergeyBiryukov
12 months ago

  • Owner set to SergeyBiryukov
  • Status changed from assigned to accepted

#6 @SergeyBiryukov
12 months ago

  • Resolution set to fixed
  • Status changed from accepted to closed

In 58184:

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.

@SergeyBiryukov commented on PR #6579:


12 months ago
#7

Thanks for the PR! Merged in r58184.

Note: See TracTickets for help on using tickets.