[wp-hackers] Clickable links filter on FTP hostnames

chris mccoy chris at lod.com
Fri Dec 14 20:33:09 UTC 2012

You could remove the filter, then add your own custom without the ftp

Ive never seen people link to ftp via blogs ftp://etc

-----Original Message-----
From: wp-hackers-bounces at lists.automattic.com
[mailto:wp-hackers-bounces at lists.automattic.com] On Behalf Of David Anderson
Sent: December 14, 2012 1:14 PM
To: wp-hackers at lists.automattic.com
Subject: [wp-hackers] Clickable links filter on FTP hostnames

There's a default filter in WordPress (which eventually is found in the
function _make_web_ftp_clickable_cb in wp-includes/formatting.php), which
takes anything matching "<space>ftp.(the rest)" and turns it into a
hyperlink beginning with http://

This seems very wrong. It was wrong for me. It turned a line in which I was
listing an FTP server:

Host: ftp.example.com

into this which gives an HTTP link and hence is wrong and/or gibberish:

Host: <a href="http://ftp.example.com" 

I can't think of why you'd want, by default, to add http:// to detected
hostnames beginning with "ftp." . But before I file a bug in Trac, does
anyone know why that bit of code is in there (and on by default)? Am I
missing something?


WordShell - WordPress fast from the CLI -www.wordshell.net

wp-hackers mailing list
wp-hackers at lists.automattic.com

More information about the wp-hackers mailing list