[theme-reviewers] Is there really any point for blocking direct file access in a WP theme?

Emil Uzelac emil at themeid.com
Tue Jan 3 04:32:52 UTC 2012


by @Otto about 10 days ago:

It's not a threat, but it is unnecessarily silly and complex. Here's a
> quicker way to do much the same thing (only without the message):
> if ( !defined('ABSPATH') ) die;


Cheers,
Emil

*----*
*Emil Uzelac* | ThemeID | T: 224-444-0006 | Twitter: @EmilUzelac | E:
emil at themeid.com | http://themeid.com
Make everything as simple as possible, but not simpler. - Albert Einstein



On Mon, Jan 2, 2012 at 10:20 PM, Robert Ambartsumov <robert6292 at gmail.com>wrote:

> i.e by using something like below on top of every php file
>
> defined('ABSPATH')
> or die('no direct access');
>
> except of aesthetics point, is there any point at all?
>
> _______________________________________________
> 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/20120102/77d2379b/attachment.htm>


More information about the theme-reviewers mailing list