Skip to content

Commit 0dd5e34

Browse files
committed
Add direct access restriction to default-popup-maker.php to enhance security.
1 parent cdee595 commit 0dd5e34

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

default-popup-maker.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99

1010
namespace BEAPI\Plugin_Defaults\Popup_Maker;
1111

12+
if ( ! defined( 'ABSPATH' ) ) {
13+
die( 'Cannot access pages directly.' );
14+
}
15+
1216
add_filter( 'pum_alert_list', __NAMESPACE__ . '\\strip_filesystem_cache_alert', 999 );
1317

1418
/**

0 commit comments

Comments
 (0)