[wp-trac] [WordPress Trac] #58209: Add missing 'view_items' label to the 'wp_block' post type
WordPress Trac
noreply at wordpress.org
Thu Apr 27 14:28:38 UTC 2023
#58209: Add missing 'view_items' label to the 'wp_block' post type
-------------------------------+-----------------------------
Reporter: afercia | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version:
Severity: normal | Keywords:
Focuses: |
-------------------------------+-----------------------------
It appears the `wp_block` post type misses the `view_items` (plural)
label.
That's used in the Editor when editing a reusable block, see
https://github.com/WordPress/gutenberg/blob/e8ec1cecf65b8a2e91d727c0fc6947289d1d7706/packages
/edit-post/src/components/header/fullscreen-mode-close/index.js#L101
To reproduce:
- Make sure you have at least one saved reusable block.
- Access the reusable blocks list page:
- either edit a regular post > open the main inserter > select the
reusable block tab > click 'Manage Reusable blocks'
- or directly access the page at `/wp-admin/edit.php?post_type=wp_block`
- Observe the page title is 'Reusable blocks'.
- Edit a reusable block.
- Hover the site icon link at the top left.
- Observe the tooltip text is 'View Posts' (see screenshot)
- Expected: 'View Reusable blocks'
- Given the tooltip text says 'View Posts', I'd expect the link points to
the standard posts list page.
- Click the link: it points to the Reusable blocks page, which is OK but
the tooltip text is misleading.
Worth noting other post types miss the `view_items` (plural) label e.g.
`wp_template`, `wp_template_part`, `wp_navigation`, etc. but I'm not sure
there's the need for it.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58209>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list