-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed as not planned
Labels
[Block] SocialAffects the Social Block - used to display Social Media accountsAffects the Social Block - used to display Social Media accounts[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
Currently, there is no validation mechanism to ensure that users enter a valid URL for social icons. This lack of validation can lead to issues when incorrect or improperly formatted URLs are added. To prevent potential errors, we need to implement a validation check that ensures only properly structured URLs are accepted in the input field.
Step-by-step reproduction instructions
- Create a new post
- Add 'Social Icons' block
- Add any social icon like 'WordPress', 'YouTube' etc
- Add a social link to the icon by clicking on the social icon
- Notice that anything can be added to the input field even when it's not a proper link
Screenshots, screen recording, code snippet
Screen.Recording.2025-02-11.at.4.45.00.PM.mov
Environment info
- WordPress: 6.7.1
- Gutenberg: 20.2.0
Please confirm that you have searched existing issues in the repo.
- Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
- Yes
Please confirm which theme type you used for testing.
- Block
- Classic
- Hybrid (e.g. classic with theme.json)
- Not sure
Metadata
Metadata
Assignees
Labels
[Block] SocialAffects the Social Block - used to display Social Media accountsAffects the Social Block - used to display Social Media accounts[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended