[theme-reviewers] home_url clarification

Stephen Cui scui2005 at gmail.com
Wed Jun 19 18:55:47 UTC 2013


How about home_url( '/' ) ?


On Wed, Jun 19, 2013 at 1:52 PM, Edward Caissie <edward.caissie at gmail.com>wrote:

> If the theme is manipulating the $path parameter of the function, or
> attaching something to the `home_url` hook then I would say yes, otherwise
> `home_url()` on its own should be fine as by default $path is empty.
>
> Edward Caissie
> aka Cais.
>
>
> On Wed, Jun 19, 2013 at 2:39 PM, Stephen Cui <scui2005 at gmail.com> wrote:
>
>> According to in example in
>> http://codex.wordpress.org/Theme_Review#Site_Information, echo
>> home_url() is acceptable (or not?)
>>
>> But many reviewer ask the author to use echo esc_url( home_url() ).
>>
>> Question: Is esc_url required in home_url() case?
>>
>> Regards
>>
>> Stephen
>>
>>
>> _______________________________________________
>> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20130619/d581789f/attachment.html>


More information about the theme-reviewers mailing list