#51212 closed defect (bug) (fixed)
Gutenberg Block Search should use plugin short description
Reported by: | dd32 | Owned by: | desrosj |
---|---|---|---|
Milestone: | 5.6 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Editor | Keywords: | has-patch has-unit-tests commit |
Focuses: | Cc: |
Description
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 (11)
This ticket was mentioned in PR #510 on WordPress/wordpress-develop by dd32.
4 years ago
#1
- Keywords has-patch added
#2
@
4 years 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.
4 years ago
#4
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.
#5
@
4 years ago
I approved the PR but I don't think that's showing up here. Patch is working, and the updated tests are passing 👍🏻
Use the short description field for block searches
Trac ticket: https://core.trac.wordpress.org/ticket/51212