Skip to content

Commit

Permalink
Require plugin.php if not available
Browse files Browse the repository at this point in the history
  • Loading branch information
Khadreal committed Dec 17, 2024
1 parent e0036f6 commit 9feba62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"composer/installers": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"dangoodman/composer-for-wordpress": true,
"mnsami/composer-custom-directory-installer": true
"mnsami/composer-custom-directory-installer": true,
"phpstan/extension-installer": true
}
},
"support": {
Expand Down
4 changes: 4 additions & 0 deletions inc/3rd-party/gravity-forms.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<?php
defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' );

if ( ! function_exists( 'is_plugin_active' ) ) {
require_once ABSPATH . 'wp-admin/includes/plugin.php';
}

/**
* Check if gravity form is active and no-conflict mode is enabled,
* and you're in gravity form page.
Expand Down

0 comments on commit 9feba62

Please sign in to comment.