[wp-trac] [WordPress Trac] #37758: The Link Checker tool does not detect some links
WordPress Trac
noreply at wordpress.org
Fri Feb 11 15:08:41 UTC 2022
#37758: The Link Checker tool does not detect some links
--------------------------------------+------------------------------
Reporter: Djibs13 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 4.6
Severity: normal | Resolution:
Keywords: good-first-bug has-patch | Focuses: administration
--------------------------------------+------------------------------
Comment (by aleksganev):
Hey guys, this is my first patch, so I hope I did everything correctly.
I used @azaozz's suggestion and made the validation mark as invalid
everything except ''http(s)'', ''mailto'' and ''ftp'' links. I reused the
''email'' check which was already in the file \, added a new test that
checks for "ftp:" in the beginning of the link and modified the ''link''
check, so that it allows only valid http and https urls. If all 3 of the
tests fail, the string will be marked as invalid.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37758#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list