[theme-reviewers] What/Why Is This in a Footer Copyright Statement?

Edward Caissie edward.caissie at gmail.com
Wed Nov 3 22:00:29 UTC 2010


'site_url()' would work even better in my mind ... they can even test with
'is_ssl()' if need be.


Cais.

On Wed, Nov 3, 2010 at 4:13 PM, Chip Bennett <chip at chipbennett.net> wrote:

> I bet you're right! :)
>
> I didn't install it, so I didn't get to see how it looks with my domain
> name. Regardless, there's no reason to use this method, when bloginfo()
> would suffice.
>
> Thanks!
>
> Chip
>
> On Wed, Nov 3, 2010 at 3:07 PM, Jerry Johnson <jmiloj at gmail.com> wrote:
>
>> HTTP_HOST is what the client/user asked for as the target host of that
>> request.
>>
>> So for most sites, it would return the _requested domain name_ from the
>> url.
>>
>> So, a page at http://www.yourdomain.com/about-us would return:
>>
>> Copyright 2010 yourdomain.com
>>
>> (it is stripping out the first 4 chars, assuming the domain starts with
>> www., and that part should be stripped off.)
>>
>> I bet it works _perfectly_ on the site(s) it was created for.
>>
>> Jerry Milo Johnson
>>
>>
>> On Wed, Nov 3, 2010 at 4:00 PM, Chip Bennett <chip at chipbennett.net>wrote:
>>
>>> Found this in another Theme:
>>>
>>> Copyright <?php echo date('Y') . ' ' . substr($_SERVER['HTTP_HOST'], 4, 100); ?>
>>>
>>> I don't know what it's trying to do, other than pull something out of the
>>> HTTP header...
>>>
>>>
>>>
>> _______________________________________________
>> 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/20101103/365cce25/attachment.htm>


More information about the theme-reviewers mailing list