[theme-reviewers] get_option('home') bloginfo('url') and home_url()

Chip Bennett chip at chipbennett.net
Wed Sep 15 16:36:44 UTC 2010


Ah, I get it. :)

IMO (and others more expert might have good reason to disagree), anytime a *
get_X()* or *get_bloginfo( 'X' )* function exists, *get_option( 'X'
)*should not be used. It would seem that using the variable explicitly
defined
for 'X' is the safer/preferred route.

Thoughts?

Chip

On Wed, Sep 15, 2010 at 11:31 AM, yulian yordanov <yul.yordanov at gmail.com>wrote:

> Oh, I wanted to ask something different. I'm sorry, English is not my
> native language you know :/
> I know home_url is recommended for bloginfo('url') but I'm wondering about
> get_option(home). Seems it produces the same result /home URL/ so can I
> replace get_option(home) with home_url() too?
>
> Yulian <Fingli>
>
> 2010/9/15 Edward Caissie <edward.caissie at gmail.com>
>
> As a recommendation is fine for now ... it might get a 'strongly' added to
>> it, but not yet.
>>
>>
>> Cais.
>>
>> 2010/9/15 Chip Bennett <chip at chipbennett.net>
>>
>> Using *home_url()* is actually already listed as *recommended *in the
>>> Guidelines, but is not *required*.
>>>
>>> That's probably a good balance for the time being, I think.
>>>
>>> Chip
>>>
>>> On Wed, Sep 15, 2010 at 11:15 AM, yulian yordanov <
>>> yul.yordanov at gmail.com> wrote:
>>>
>>>>  Hi,
>>>> Hmm, is there significant difference between get_option('home') and
>>>> bloginfo('url')? Can I recommend using *echo home_url('/')* instead?
>>>>
>>>> --
>>>> Юлиян Йорданов
>>>>
>>>> Yulian Yordanovhttp://post-scriptum.info/
>>>>
>>>>
>>>> _______________________________________________
>>>> theme-reviewers mailing list
>>>> theme-reviewers at lists.wordpress.org
>>>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>>>
>>>>
>>>
>>> _______________________________________________
>>> theme-reviewers mailing list
>>> theme-reviewers at lists.wordpress.org
>>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>>
>>>
>>
>> _______________________________________________
>> theme-reviewers mailing list
>> theme-reviewers at lists.wordpress.org
>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>
>>
>
>
> --
> Юлиян Йорданов
>
> Yulian Yordanov
> post-scriptum.info
>
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20100915/189563f5/attachment.htm>


More information about the theme-reviewers mailing list