[wp-trac] [WordPress Trac] #63534: Add `link_to` label to post types
WordPress Trac
noreply at wordpress.org
Mon Jul 21 04:29:26 UTC 2025
#63534: Add `link_to` label to post types
-------------------------------------------------+-------------------------
Reporter: benoitchantre | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Posts, Post Types | Version:
Severity: normal | Resolution:
Keywords: good-first-bug has-patch needs- | Focuses: ui
test-info |
-------------------------------------------------+-------------------------
Comment (by wildworks):
The only thing we can test now is to make sure that this new field is
included in the REST API.
After appliying the patch, open the post editor and run the following in
your browser console:
{{{
wp.data.select('core').getPostType('post').labels
}}}
You will see the new field included in the response.
To reflect this new field in the UI, we will need to submit a new PR in
the Gutenberg repository and update the following:
https://github.com/WordPress/gutenberg/blob/7d045178de5879471793a627efeadfc1225073cb/packages
/block-library/src/post-featured-image/edit.js#L258-L264
However, I would like to suggest a different approach than adding a new
field. See:
https://github.com/WordPress/gutenberg/issues/55057#issuecomment-3095164735
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63534#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list