Adding direct access prevention to files
This commit is contained in:
@ -1,12 +1,11 @@
|
||||
<?php
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
// Exit if accessed directly
|
||||
exit;
|
||||
}
|
||||
|
||||
// This constant gets set when WordPress' uninstall.php file is invoked.
|
||||
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
|
||||
// This constant gets set when WordPress' uninstall.php file is invoked.
|
||||
exit;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user