Adding direct access prevention to files
This commit is contained in:
@ -5,6 +5,10 @@ namespace PluginNamespace;
|
||||
use eftec\bladeone\BladeOne;
|
||||
use Exception;
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class App {
|
||||
|
||||
/** @var \PluginNamespace\App */
|
||||
|
@ -5,7 +5,7 @@ namespace PluginNamespace;
|
||||
use WP_CLI;
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
exit;
|
||||
}
|
||||
|
||||
class NmspCli {
|
||||
|
@ -2,6 +2,10 @@
|
||||
|
||||
namespace PluginNamespace\Front;
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class CustomPage {
|
||||
|
||||
/**
|
||||
|
@ -2,6 +2,10 @@
|
||||
|
||||
namespace PluginNamespace\Front;
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
class Rewrites {
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user