Skip to content

Commit

Permalink
WPINC checks
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaydsouza committed Mar 21, 2019
1 parent d1077ed commit 1953b70
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions includes/admin/sidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
* @subpackage Admin/Footer
*/

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}


?>
<div class="postbox-container">
<div id="donatediv" class="postbox meta-box-sortables">
Expand Down
5 changes: 5 additions & 0 deletions templates/better-search-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
* @since Twenty Eleven 1.0
*/

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}

$search_query = bsearch_clean_terms( apply_filters( 'the_search_query', get_search_query() ) );
get_header(); ?>

Expand Down
5 changes: 5 additions & 0 deletions templates/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
* @package Better_Search
*/

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}

/* Set the search query if it is missing */
if ( ! isset( $bsearch_settings ) ) {
global $bsearch_settings;
Expand Down

0 comments on commit 1953b70

Please sign in to comment.