[theme-reviewers] Header Redirect: Any Good Reason For This?
Austin Matzko
austin at pressedcode.com
Mon Sep 27 17:11:44 UTC 2010
On Mon, Sep 27, 2010 at 11:55 AM, Chip Bennett <chip at chipbennett.net> wrote:
> Checking the diff for an update to a Theme that I had previously approved, I
> found this:
>
> <?php ( header('Location: http://allfreecms.com') );?>
They've set up the theme so that if someone requests the URL of the
functions sub-directory, it re-directs that request to the theme
developer's site.
It's an unusual alternative to WP's core alternate approach in, for
example, the wp-content/index.php file, which just has the following:
<?php
// Silence is golden.
?>
I don't think it's a sin. If you're trying to get the web server to
list directory contents you're probably up to no good anyways.
More information about the theme-reviewers
mailing list