[wp-trac] [WordPress Trac] #52601: Link validation issue on TinyMCE using Classic Editor
WordPress Trac
noreply at wordpress.org
Mon Sep 22 18:46:29 UTC 2025
#52601: Link validation issue on TinyMCE using Classic Editor
--------------------------+------------------------------
Reporter: audrasjb | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 5.6
Severity: minor | Resolution:
Keywords: 2nd-opinion | Focuses: javascript
--------------------------+------------------------------
Changes (by sabernhardt):
* keywords: => 2nd-opinion
* focuses: => javascript
* severity: normal => minor
Comment:
@azaozz [https://core.trac.wordpress.org/ticket/36638#comment:47
mentioned] that `localhost` links 'should never appear on a "live" web
page', but maybe it could be worth ignoring them in the
[https://github.com/WordPress/wordpress-
develop/blob/6.8.2/src/js/_enqueues/vendor/tinymce/plugins/wplink/plugin.js#L167
checkLink() function].
`if ( /^http/i.test( href ) && ( ! urlRegex1.test( href ) || !
urlRegex2.test( href ) ) && ( ! href.includes( '://localhost' ) ) ) {`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52601#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list