[theme-reviewers] New Tags in 3.0: home_url(), site_url(), admin_url()

Otto otto at ottodestruct.com
Fri Aug 27 19:43:36 UTC 2010


The *_url functions rock and should definitely be recommended over any
use of bloginfo.


On Fri, Aug 27, 2010 at 1:24 PM, Chip Bennett <chip at chipbennett.net> wrote:
> Sounds good.
> Also, I'm having a brain-fart moment (I'll blame it on having just donated
> blood): when would home_url and site_url be different? Does it have to do
> with handling of static front pages, or something?

When the home != site, of course. ;)

Consider the two fields on the (old?) general settings screen. One was
home, the other was site. Don't ask me to remember which was which
though...

-Otto


More information about the theme-reviewers mailing list