[fr] Les URLs dans les commentaires de ce blog ne sont pas transformés en liens, alors qu'ils le devraient. Appel aux idées pour résoudre ce problème.
When people type URLs in my comments, they aren’t converted into links. WordPress should do this, but it’s not doing it. I don’t know where to start troubleshooting.
Suggestions and solutions will be thankfully tried out 🙂
This change that went into 2.0.4 should fix this for you bunny:
http://trac.wordpress.org/changeset/4012
The function that does all the funcky stuff is
make_clickable
inwp-includes/formatting.php
Right, I’ve upgraded, let’s see if it works:
http://climbtothestars.org/archives/2006/09/07/java-and-freemind-on-my-macbook/
Dammit. Any other suggestions, westi?
Hmm.
I guess a plugin you are using might be removing some of the default filters as it does other text processing.
What plugins are you using espcially ones that do text processing?
Testing: http://swissblogs.com
Hit-and-miss, I’ll manage to narrow it down. Here’s another test: http://google.com
Found it! It’s coComment Enhancer’s fault:
http://www.andare.ch/blog/wordpress-plugins/cocomment-enhancer/
Ouch. Not so sure. It’s still deactivated and the link above didn’t transform. Test http://pompage.net
Trying again with the link above. Hope Akismet doesn’t bite me.
http://www.andare.ch/blog/wordpress-plugins/cocomment-enhancer/
This is weird:
http://www.andare.ch/blog/wordpress-plugins/cocomment-enhancer/
http://google.com
http://climbtothestars.org/archives/2006/09/07/links-in-wordpress-comments-not-linking/
Oh! I think I have it. Inline link: http://climbtothestars.org/archives/2006/09/07/links-in-wordpress-comments-not-linking/
New line link:
http://google.com
Right, it now seems it is NOT coComment enhancer’s fault. Sorry.
Re-activated coComment enhancer, and de-activated PHP Markdown Extra. Testing inline: http://climbtothestars.org/archives/2006/09/07/links-in-wordpress-comments-not-linking/
Testing newline:
http://google.com
Right. Going to re-activate PHP Markdown Extra so that my posts don’t look ugly, but now we know what’s going on. Make your links inline like this http://climbtothestars.org/archives/2006/09/07/links-in-wordpress-comments-not-linking/ if you want them to link.
Earlier on, westi made me add add_filter(‘get_comment_text’, ‘make_clickable’, 10); in the PHP Markdown Extra plugin. Let’s just see what happens without that line: http://flickr.com
http://flickr.com
Right. The links in these comments are all stored as URLs in the DB. De-activating PHP Markdown Extra allows some of them to be HTML-ized upon output. Is it a problem with WordPress’s make-clickable (or whatever) function? http://flickr.com
http://flickr.com
For some weird reason, both links in the last comment were made clickable. PHP Markdown Extra de-activated upon comment submission. Try again: http://flickr.com/
http://flickr.com/
The plugin author tells me “not linking” is the desired behaviour of the plugin. In markdown, you need to surround a URL with < and > for it to be made clickable. Well, thanks to westi I’ve managed to make inline URLs clickable — I guess I’ll try to remove the removal of the make_clickable function in the plugin and see what happens then.