Skip to content

Commit

Permalink
Adding exit statements to view files and entrypoint (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
aldavigdis authored Jul 19, 2024
1 parent 43b1743 commit 03b3be8
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions 1984-connector-for-dk-and-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@

namespace NineteenEightyFour\NineteenEightyWoo;

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

require plugin_dir_path( __FILE__ ) . 'vendor/autoload.php';

new Hooks\Admin();
Expand Down
4 changes: 4 additions & 0 deletions views/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
use NineteenEightyFour\NineteenEightyWoo\Import\SalesPayments;
use NineteenEightyFour\NineteenEightyWoo\Hooks\KennitalaField;

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

?>
<div
class="wrap nineteen-eighty-woo-wrap"
Expand Down
4 changes: 4 additions & 0 deletions views/product_options_advanced_partial.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
use NineteenEightyFour\NineteenEightyWoo\Helpers\Product as ProductHelper;
use NineteenEightyFour\NineteenEightyWoo\Config;

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

global $post;

$wc_product = new WC_Product( $post );
Expand Down
4 changes: 4 additions & 0 deletions views/product_options_pricing_partial.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
use NineteenEightyFour\NineteenEightyWoo\Helpers\Product as ProductHelper;
use NineteenEightyFour\NineteenEightyWoo\Config;

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

global $post;

$wc_product = new WC_Product( $post );
Expand Down
4 changes: 4 additions & 0 deletions views/product_options_sku_partial.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

use NineteenEightyFour\NineteenEightyWoo\Config;

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

global $post;

$wc_product = new WC_Product( $post );
Expand Down

0 comments on commit 03b3be8

Please sign in to comment.