Skip to content

Instantly share code, notes, and snippets.

@hajro92
Forked from barrykooij/abspath-check.php
Created April 25, 2016 23:56
Show Gist options
  • Save hajro92/214b5a2d15c4df892b402407ba8c6310 to your computer and use it in GitHub Desktop.
Save hajro92/214b5a2d15c4df892b402407ba8c6310 to your computer and use it in GitHub Desktop.

Revisions

  1. @barrykooij barrykooij created this gist Nov 28, 2014.
    2 changes: 2 additions & 0 deletions abspath-check.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    <?php
    if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly