Okay, so at least I was on the right track!<div><br></div><div>So, is this simply a "remove this function" issue, or is it elevated to a "explain yourself" matter?</div><div><br></div><div>Chip<br><br><div class="gmail_quote">
On Mon, Sep 27, 2010 at 12:00 PM, Doug Stewart <span dir="ltr"><<a href="mailto:zamoose@gmail.com">zamoose@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On Mon, Sep 27, 2010 at 12:55 PM, Chip Bennett <<a href="mailto:chip@chipbennett.net">chip@chipbennett.net</a>> wrote:<br>
> Checking the diff for an update to a Theme that I had previously approved, I<br>
> found this:<br>
><br>
> <?php ( header('Location: <a href="http://allfreecms.com" target="_blank">http://allfreecms.com</a>') );?><br>
><br>
> Any good reason for this to exist? My limited PHP knowledge tells me that<br>
> it's some sort of header redirect. Does it have any business being called in<br>
> a WordPress Theme? (Note: I can't actually find anywhere that the Theme is<br>
> actually including the functions/index.php file in which the above code is<br>
> found..)<br>
> Chip<br>
><br>
<br>
</div></div>It is indeed a redirect. If it's called as the first element in a<br>
page, it will redirect. If it's called further down, you're likely to<br>
get the "Headers already sent..." PHP error.<br>
<br>
In any event, there's precious little reason that I can think of to<br>
include it in a theme.<br>
<font color="#888888"><br>
<br>
--<br>
-Doug<br>
@zamoose<br>
<a href="http://literalbarrage.org/blog/" target="_blank">http://literalbarrage.org/blog/</a><br>
_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
</font></blockquote></div><br></div>