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:



4 Comments to “Annoying Feature?”

  1. Lawliet | June 27th, 2006 at 3:02 pm

    test

  2. Lawliet | June 27th, 2006 at 3:10 pm

    lalalala

  3. x.l | June 27th, 2006 at 3:28 pm

    looks like wat…cant see

  4. Lawliet | June 27th, 2006 at 4:14 pm

    It’s some code.. IE got bug cannot see properly…

Leave a Comment

acre