Skip to content

Commit 6f0cbc4

Browse files
include is active check
1 parent 4591723 commit 6f0cbc4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/wp-includes/connectors.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,9 @@ function _wp_connectors_init(): void {
219219
'type' => 'spam_filtering',
220220
'plugin' => array(
221221
'file' => 'akismet/akismet.php',
222-
// If the plugin is active, it will pass its its own is_active callback.
223-
'is_active' => '__return_false',
222+
'is_active' => function () {
223+
return defined( 'AKISMET_VERSION' );
224+
},
224225
),
225226
'authentication' => array(
226227
'method' => 'api_key',

0 commit comments

Comments
 (0)