Skip to content

Commit

Permalink
Dont allow direct file access.
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Aug 22, 2023
1 parent d9bb422 commit 48c927b
Show file tree
Hide file tree
Showing 12 changed files with 48 additions and 0 deletions.
4 changes: 4 additions & 0 deletions views/meta-box-payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
* @link https://github.com/WordPress/WordPress/blob/4.5.2/wp-admin/user-edit.php#L578-L600
*/

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

$payment = \get_pronamic_payment( $post->ID );

// Check valid payment.
Expand Down
4 changes: 4 additions & 0 deletions views/meta-box-subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
* @link https://github.com/WordPress/WordPress/blob/4.5.2/wp-admin/user-edit.php#L578-L600
*/

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

$subscription = \get_pronamic_subscription( $post->ID );

if ( null === $subscription ) {
Expand Down
4 changes: 4 additions & 0 deletions views/page-customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

namespace Pronamic\WordPress\Pay\Gateways\Mollie;

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

use Pronamic\WordPress\Mollie\Client;

/**
Expand Down
4 changes: 4 additions & 0 deletions views/page-customers.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
* @package Pronamic\WordPress\Pay\Gateways\Mollie
*/

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

?>
<div class="wrap">
<h1><?php echo \esc_html( \get_admin_page_title() ); ?></h1>
Expand Down
4 changes: 4 additions & 0 deletions views/page-mandate.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

namespace Pronamic\WordPress\Pay\Gateways\Mollie;

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

use Pronamic\WordPress\Mollie\Client;

/**
Expand Down
4 changes: 4 additions & 0 deletions views/page-mandates.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
* @package Pronamic\WordPress\Pay\Gateways\Mollie
*/

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

?>
<div class="wrap">
<h1><?php echo \esc_html( \get_admin_page_title() ); ?></h1>
Expand Down
4 changes: 4 additions & 0 deletions views/page-mollie.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
* @package Pronamic\WordPress\Pay\Gateways\Mollie
*/

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

?>
<div class="wrap">
<h1><?php echo \esc_html( \get_admin_page_title() ); ?></h1>
Expand Down
4 changes: 4 additions & 0 deletions views/page-payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

namespace Pronamic\WordPress\Pay\Gateways\Mollie;

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

use Pronamic\WordPress\Mollie\Client;
use Pronamic\WordPress\Pay\Admin\AdminPaymentPostType;

Expand Down
4 changes: 4 additions & 0 deletions views/page-payments.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

namespace Pronamic\WordPress\Pay\Gateways\Mollie;

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

?>
<div class="wrap">
<h1><?php echo \esc_html( \get_admin_page_title() ); ?></h1>
Expand Down
4 changes: 4 additions & 0 deletions views/page-profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

namespace Pronamic\WordPress\Pay\Gateways\Mollie;

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

?>
<div class="wrap">
<h1><?php echo \esc_html( \get_admin_page_title() ); ?></h1>
Expand Down
4 changes: 4 additions & 0 deletions views/page-profiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

namespace Pronamic\WordPress\Pay\Gateways\Mollie;

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

?>
<div class="wrap">
<h1><?php echo \esc_html( \get_admin_page_title() ); ?></h1>
Expand Down
4 changes: 4 additions & 0 deletions views/user-profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@

namespace Pronamic\WordPress\Pay\Gateways\Mollie;

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

if ( ! isset( $user ) ) {
return;
}
Expand Down

0 comments on commit 48c927b

Please sign in to comment.