1
0
Fork 0
mirror of https://github.com/inretio/WordPress-Plugin-Boilerplate synced 2024-12-22 20:03:53 +02:00

Adding a security check to prevent files from accessing the boilerplate directly

Fixes #43
This commit is contained in:
Tom McFarlin 2013-05-11 17:38:50 -04:00
parent ff44a40287
commit 9b27bf86af

View file

@ -13,6 +13,16 @@ License URI: http://www.gnu.org/licenses/gpl.txt
Copyright 2013 TODO (email@domain.com) Copyright 2013 TODO (email@domain.com)
*/ */
/**
* If this file is attempted to be accessed directly, we'll exit.
*
* The following check provides a level of security from other files
* that request data directly.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/* /*
* The following constant is used to define a constant for this plugin to make it * The following constant is used to define a constant for this plugin to make it
* easier to provide cache-busting functionality on loading stylesheets * easier to provide cache-busting functionality on loading stylesheets