Link Control: Add content and media filtering tabs #68439
+69
−7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes: #63683
What?
This update adds tab-based filtering to the link control interface, introducing "Content" and "Media" tabs to better organize link suggestions.
Why?
The current link control interface displays all link suggestions in a single list, making it challenging for users to find specific types of content quickly. By introducing tabs to filter between content types and media, we can improve the user experience by:
How?
Added two new tabs to the link control interface:
Implemented tab-based filtering using the existing WordPress tab control component
Testing Instructions
Open the Block Editor
Insert any block that supports links (e.g., Paragraph)
Click the link button from the block toolbar
Verify that you see two tabs: "Content" and "Media"
Test the Content tab:
Test the Media tab:
Screencast
Screen.Recording.2025-01-02.at.11.45.51.AM.mov