wordpress-theme-boilerplate icon indicating copy to clipboard operation
wordpress-theme-boilerplate copied to clipboard

Remove `Exit if accessed directly` checks from Woo theme template files

Open drewbaker opened this issue 10 years ago • 0 comments

All templates have this at the top of them:

if ( ! defined( 'ABSPATH' ) ) {
    exit; // Exit if accessed directly
}

We should remove them all. It's redundant, and seems to pose no risk if the host is secure.

drewbaker avatar Sep 11 '15 20:09 drewbaker