Created
June 4, 2012 09:39
-
-
Save antoniofrignani/2867480 to your computer and use it in GitHub Desktop.
[WP] - Prevent direct file access to functions.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Prevent direct file access to functions.php | |
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'functions.php' == basename($_SERVER['SCRIPT_FILENAME'])) | |
{ | |
die ('No access!'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment