Skip to content

Commit 596ee41

Browse files
committed
Merge branch 'develop' into bump/wp-6.9
2 parents 1ca1106 + aa8b6b6 commit 596ee41

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+227
-8
lines changed

.github/workflows/plugin-check.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@ jobs:
3232
working-directory: ${{ github.event.repository.name }}
3333

3434
- name: Run plugin check
35-
uses: wordpress/plugin-check-action@70f38272b2beee386e973f319591baa2fc7dff16 # v1.1.2
35+
uses: wordpress/plugin-check-action@ec9b3fe9beaa76bcc4510b7ba2cb5855a5f80f3f # v1.1.4
3636
with:
3737
build-dir: ${{ github.event.repository.name }}
3838
exclude-checks: 'plugin_readme,plugin_updater' # Plugin isn't on .org so excluding these for now.
3939
exclude-directories: 'assets,dist,vendor'
40+
exclude-files: 'includes/Classifai/Providers/Watson/Helpers.php,includes/Classifai/Helpers.php' # These files are included via composer and cause errors with PHPCS if we fix the "prevent direct access" check.
4041
ignore-codes: 'PluginCheck.CodeAnalysis.DiscouragedFunctions.load_plugin_textdomainFound' # Plugin isn't on .org so we load the textdomain manually.
4142
ignore-warnings: true

classifai.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
* Domain Path: /languages
1616
*/
1717

18+
if ( ! defined( 'ABSPATH' ) ) {
19+
exit;
20+
}
21+
1822
/**
1923
* Get the minimum version of PHP required by this plugin.
2024
*

config.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
* Global Constants.
44
*/
55

6+
if ( ! defined( 'ABSPATH' ) ) {
7+
exit;
8+
}
9+
610
$plugin_version = '3.7.0';
711

812
// Useful global constants

includes/Classifai/Admin/BulkActions.php

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

1515
use function Classifai\attachment_is_pdf;
1616

17+
if ( ! defined( 'ABSPATH' ) ) {
18+
exit;
19+
}
20+
1721
/**
1822
* Handle bulk actions.
1923
*/

includes/Classifai/Admin/DebugInfo.php

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

99
namespace Classifai\Admin;
1010

11+
if ( ! defined( 'ABSPATH' ) ) {
12+
exit;
13+
}
14+
1115
/**
1216
* Adds information useful for debugging to the Site Health screen introduced to core in 5.2.
1317
*

includes/Classifai/Admin/Notifications.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
use Classifai\Features\Classification;
88
use function Classifai\should_use_legacy_settings_panel;
99

10+
if ( ! defined( 'ABSPATH' ) ) {
11+
exit;
12+
}
13+
1014
class Notifications {
1115

1216
/**
@@ -284,7 +288,7 @@ public function add_dismiss_script() {
284288
$nonce = wp_create_nonce( 'classifai_dismissible_notice' );
285289
$admin_ajax_url = esc_url( admin_url( 'admin-ajax.php' ) );
286290

287-
/* phpcs:disable Squiz.PHP.Heredoc.NotAllowed */
291+
// phpcs:disable Squiz.PHP.Heredoc.NotAllowed, PluginCheck.CodeAnalysis.Heredoc.NotAllowed
288292
$script = <<<EOD
289293
jQuery( function() {
290294
const dismissNotices = document.querySelectorAll( '.classifai-dismissible-notice' );

includes/Classifai/Admin/Onboarding.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
use Classifai\Plugin;
66
use Classifai\Services\ServicesManager;
77

8+
if ( ! defined( 'ABSPATH' ) ) {
9+
exit;
10+
}
11+
812
class Onboarding {
913

1014
/**

includes/Classifai/Admin/Settings.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
use function Classifai\get_post_statuses_for_language_settings;
1616
use function Classifai\is_elasticpress_installed;
1717

18+
if ( ! defined( 'ABSPATH' ) ) {
19+
exit;
20+
}
21+
1822
class Settings {
1923

2024
/**

includes/Classifai/Admin/Update.php

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

1010
use YahnisElsts\PluginUpdateChecker\v5\PucFactory;
1111

12+
if ( ! defined( 'ABSPATH' ) ) {
13+
exit;
14+
}
15+
1216
/**
1317
* Plugin update class.
1418
*/

includes/Classifai/Admin/UserProfile.php

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

88
use function Classifai\get_plugin;
99

10+
if ( ! defined( 'ABSPATH' ) ) {
11+
exit;
12+
}
13+
1014
/**
1115
* The UserProfile class provides opt-out settings for ClassifAI feature on user profile page.
1216
*

0 commit comments

Comments
 (0)