Skip to content

Commit 1299290

Browse files
authored
ABSPATH check added (#572)
* ABSPATH check added * .wp-env.json to ignore for dist
1 parent 6a99b4b commit 1299290

16 files changed

Lines changed: 61 additions & 0 deletions

.distignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
.phpcs.xml.dist
66
.phpstan.neon.dist
77
.scrutinizer.yml
8+
.wp-env.json
89
/.git
910
/.github
1011
/.idea

includes/ContentImport/ContentImporter.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
namespace lloc\Msls\ContentImport;
44

5+
if ( ! defined( 'ABSPATH' ) ) {
6+
exit;
7+
}
8+
59
use lloc\Msls\ContentImport\Importers\Importer;
610
use lloc\Msls\ContentImport\Importers\Map;
711
use lloc\Msls\ContentImport\Importers\WithRequestPostAttributes;

includes/ContentImport/Service.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
namespace lloc\Msls\ContentImport;
44

5+
if ( ! defined( 'ABSPATH' ) ) {
6+
exit;
7+
}
8+
59
use lloc\Msls\ContentImport\LogWriters\AdminNoticeLogger;
610
use lloc\Msls\MslsRegistryInstance;
711

includes/MslsAdmin.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
namespace lloc\Msls;
44

5+
if ( ! defined( 'ABSPATH' ) ) {
6+
exit;
7+
}
8+
59
use lloc\Msls\Component\Input\Checkbox;
610
use lloc\Msls\Component\Input\Group;
711
use lloc\Msls\Component\Input\Label;

includes/MslsAdminBar.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
namespace lloc\Msls;
44

5+
if ( ! defined( 'ABSPATH' ) ) {
6+
exit;
7+
}
8+
59
class MslsAdminBar {
610

711
/**

includes/MslsBlogCollection.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
namespace lloc\Msls;
44

5+
if ( ! defined( 'ABSPATH' ) ) {
6+
exit;
7+
}
8+
59
/**
610
* Collection of blog-objects
711
*

includes/MslsContentFilter.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
namespace lloc\Msls;
44

5+
if ( ! defined( 'ABSPATH' ) ) {
6+
exit;
7+
}
8+
59
class MslsContentFilter {
610

711
/**

includes/MslsCustomColumn.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
namespace lloc\Msls;
44

5+
if ( ! defined( 'ABSPATH' ) ) {
6+
exit;
7+
}
8+
59
use lloc\Msls\Component\Component;
610

711
/**

includes/MslsCustomColumnTaxonomy.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
namespace lloc\Msls;
44

5+
if ( ! defined( 'ABSPATH' ) ) {
6+
exit;
7+
}
8+
59
/**
610
* Handling of existing/not existing translations in the backend
711
* listings of various taxonomies

includes/MslsCustomFilter.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
namespace lloc\Msls;
44

5+
if ( ! defined( 'ABSPATH' ) ) {
6+
exit;
7+
}
8+
59
use lloc\Msls\Component\Input\Select;
610
use lloc\Msls\Query\TranslatedPostIdQuery;
711

0 commit comments

Comments
 (0)