Skip to content

Commit 87fc77a

Browse files
authored
Plugin Check issues addressed (#553)
* Plugin Check issues addressed
1 parent a4f566c commit 87fc77a

17 files changed

+67
-1
lines changed

MultisiteLanguageSwitcher.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
* @package msls
3232
*/
3333

34+
if ( ! defined( 'ABSPATH' ) ) {
35+
exit;
36+
}
37+
3438
if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
3539
require __DIR__ . '/vendor/autoload.php';
3640
}

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)