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:
parent
ff44a40287
commit
9b27bf86af
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue