[wp-trac] [WordPress Trac] #57913: Attachment pages need to have an "on" toggle
WordPress Trac
noreply at wordpress.org
Tue Apr 23 12:23:59 UTC 2024
#57913: Attachment pages need to have an "on" toggle
---------------------------------------------+-----------------------------
Reporter: joostdevalk | Owner: SergeyBiryukov
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.4
Component: Media | Version:
Severity: normal | Resolution: fixed
Keywords: add-to-field-guide has-dev-note | Focuses:
---------------------------------------------+-----------------------------
Comment (by Mamaduka):
I want to highlight the discussion from the Gutenberg repo:
https://github.com/WordPress/gutenberg/issues/56019.
Should the `/media` endpoint account for this flag and omit the `link`
value from the response when the attachment pages are disabled?
This would allow media blocks to hide the "Link to attachment page" link
control option.
An alternative solution would be to expose the setting via REST API, but
the endpoint is only accessible for users with `manage_options`
capabilities.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57913#comment:76>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list