Skip to content

Commit d23768b

Browse files
authored
Update main.php
1 parent d7f1de5 commit d23768b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

app/boilerplates/simple/main.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,7 @@
2222
* License: <%= LICENSE_TEXT %>
2323
*/
2424

25-
if ( ! function_exists( 'add_filter' ) ) {
26-
header( 'Status: 403 Forbidden' );
27-
header( 'HTTP/1.1 403 Forbidden' );
28-
exit(); /* protects plugin source from public view */
29-
}
25+
defined( 'ABSPATH' ) or die(); // wordpress must exist
3026

3127
$current_dir = trailingslashit( dirname( __FILE__ ) );
3228

0 commit comments

Comments
 (0)