Annoying Feature?
Uncategorized June 26th, 2006 @ 2327h
There’s this weird thing about wordpress that it “needs” to make sure all the links you add are absolute links (i.e. they start with http://)
Well, for me, I would prefer if they do NOT check this and allow me to enter any kinds of links.
So I fired up the API documentation in search of some kind of “hooks” to allow me to do so but there don’t seem to be any.
So I had to resort to editing the source code itself.
Open up “wp-admin/admin-functions.php”
Look for line 483 or a line that looks like
$_POST['link_url'] = preg_match('/^(https?|ftps?|mailto|news|gopher):/is', $_POST['link_url']) ? $_POST['link_url'] : 'http://' . $_POST['link_url'];
and comment it out and done.
Tags: Wordpress
About
test
lalalala
looks like wat…cant see
It’s some code.. IE got bug cannot see properly…