Skip to content

Commit

Permalink
Prevent direct access
Browse files Browse the repository at this point in the history
  • Loading branch information
generatepress committed Aug 18, 2016
1 parent b974c8c commit 81a35ca
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.php
Expand Up @@ -10,6 +10,9 @@
*
* @package GeneratePress
*/

// No direct access, please
if ( ! defined( 'ABSPATH' ) ) exit;

get_header(); ?>

Expand Down
3 changes: 3 additions & 0 deletions no-results.php
Expand Up @@ -6,6 +6,9 @@
*
* @package GeneratePress
*/

// No direct access, please
if ( ! defined( 'ABSPATH' ) ) exit;
?>

<section class="no-results not-found">
Expand Down
3 changes: 3 additions & 0 deletions page.php
Expand Up @@ -9,6 +9,9 @@
*
* @package GeneratePress
*/

// No direct access, please
if ( ! defined( 'ABSPATH' ) ) exit;

get_header(); ?>

Expand Down
3 changes: 3 additions & 0 deletions search.php
Expand Up @@ -4,6 +4,9 @@
*
* @package GeneratePress
*/

// No direct access, please
if ( ! defined( 'ABSPATH' ) ) exit;

get_header(); ?>

Expand Down
3 changes: 3 additions & 0 deletions searchform.php
Expand Up @@ -4,6 +4,9 @@
*
* @package GeneratePress
*/

// No direct access, please
if ( ! defined( 'ABSPATH' ) ) exit;
?>
<form method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<label>
Expand Down
4 changes: 4 additions & 0 deletions sidebar-left.php
Expand Up @@ -4,6 +4,10 @@
*
* @package GeneratePress
*/

// No direct access, please
if ( ! defined( 'ABSPATH' ) ) exit;

$generate_settings = wp_parse_args(
get_option( 'generate_settings', array() ),
generate_get_defaults()
Expand Down
4 changes: 4 additions & 0 deletions sidebar.php
Expand Up @@ -4,6 +4,10 @@
*
* @package GeneratePress
*/

// No direct access, please
if ( ! defined( 'ABSPATH' ) ) exit;

$generate_settings = wp_parse_args(
get_option( 'generate_settings', array() ),
generate_get_defaults()
Expand Down
3 changes: 3 additions & 0 deletions single.php
Expand Up @@ -4,6 +4,9 @@
*
* @package GeneratePress
*/

// No direct access, please
if ( ! defined( 'ABSPATH' ) ) exit;

get_header(); ?>

Expand Down

0 comments on commit 81a35ca

Please sign in to comment.