[wp-hackers] absolute URLs in plug-ins and custom types

Ryan McCue lists at rotorised.com
Fri Jul 6 13:57:01 UTC 2012

Mika A Epstein wrote:
> Ryan - All that felt like just an epic ton of work to solve something that I didn't feel was a problem ;)

It's hardly ever a problem for me, but it's a huge pain when it is. I 
usually use relative URLs and never change subdirectories, but you could 
theoretically do that with this too.

> I don't like reinventing the wheel, or complicating my code to make something 'simpler' for a user who has to remember to do [home]\whatever\url

(Psst, that's not a URL ;) )

> Telling them 'Put the whole URL in, http://domain.com/foobar for example' is easier, it's consistent, and it always works on any site they ever go to. Less to untrain the novice (dad) later.

Yep, that's why you could do it transparently. I can certainly see it 
confusing people who are used to having to replace it later, but I think 
from a usability perspective it's much better.

That is, of course, one developer's humble opinion. :) (And as we all 
know, I'm horrible at finding time to make patches, so it might not even 
make proof-of-concept stage.)

Ryan McCue

More information about the wp-hackers mailing list