[theme-reviewers] home_url clarification

Edward Caissie edward.caissie at gmail.com
Wed Jun 19 19:13:08 UTC 2013


I don't consider that a manipulation of the $path parameter; but, with
something like the following, I would say yes ...

home_url( theme_new_path() );
function theme_new_path() {
  $path = '/';
  return apply_filters( `theme_new_path_filter`, $path );
}

Something like this would be a much better candidate to be escaped although
I really am not seeing this in a use case scenario just some random
(pseudo) code to clarify what I see as manipulating the $path parameter of
the function.

Edward Caissie
aka Cais.


On Wed, Jun 19, 2013 at 2:55 PM, Stephen Cui <scui2005 at gmail.com> wrote:

> 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
>>
>>
>
> _______________________________________________
> 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/7c0462a2/attachment-0001.html>


More information about the theme-reviewers mailing list