Make WordPress Core

Opened 2 weeks ago

Last modified 2 weeks ago

#51212 new defect (bug)

Gutenberg Block Search should use plugin short description

Reported by: dd32 Owned by:
Milestone: 5.6 Priority: normal
Severity: normal Version:
Component: Editor Keywords: has-patch
Focuses: Cc:


Currently the Block Searching displays blocks with a truncated description field, while the WordPress.org API provides a short_description output specifically for that.

The attached PR simply switches it to using the shorter description field which is more relevant for the limited display space of blocks.

Since this has been merged to core, and the change is in PHP I think this is supposed to be submitted here rather than directly to the Gutenberg repo which also contains this class?

Change History (4)

This ticket was mentioned in PR #510 on WordPress/wordpress-develop by dd32.

2 weeks ago

  • Keywords has-patch added

Use the short description field for block searches

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

#2 @TimothyBlynJacobs
2 weeks ago

Yeah AFAIK the workflow is to make the change here, then it could be backported to Gutenberg since they have a polyfill of the endpoint for 5.4 users.

#3 @desrosj
2 weeks ago

  • Milestone changed from Awaiting Review to 5.6

Moving this to 5.6.

#4 @prbot
2 weeks ago

ryelle commented on PR #510:

It looks like the test test_prepare_item in tests/phpunit/tests/rest-api/rest-block-directory-controller.php needs to be updated, since the expected description should be the short_description now. Otherwise this is working great in manual testing.

Note: See TracTickets for help on using tickets.