Correct the constants for link destinations #25587
Labels
[Feature] Media
Anything that impacts the experience of managing media
[Type] Code Quality
Issues or PRs that relate to code quality
Describe the bug
While working on #25578 and #25582 we noticed the constants used for link destinations do not match the WordPress options used. The options as used elsewhere in classic editor and through numerous code examples should be:
In Gutenberg, the constants are set to "media" and "attachment", these should be changed. They were updated in #25582 as the gallery is not connected to any other component.
So
media-text
block,image
block, and theimage-url-input-ui
component should all be updated and the proper deprecation/migration of attributes.By doing this update, this will allow the Block Editor to match what is set in WordPress options making it easier to understand what is happening.
The text was updated successfully, but these errors were encountered: