Plugin Directory

Changeset 3333069


Ignore:
Timestamp:
07/23/2025 04:35:26 PM (8 months ago)
Author:
engagebay
Message:

fix multisite network active plugin dependency for gravity forms

Location:
engagebay-gravity-forms
Files:
12 added
2 edited

Legend:

Unmodified
Added
Removed
  • engagebay-gravity-forms/trunk/engagebay-gravityforms.php

    r3332415 r3333069  
    44  Plugin URI: https://www.engagebay.com/gravity-forms
    55  Description: EngageBay Gravity Forms integration plugin for gravity forms. Sync form entries to my website easily.
    6   Version: 3.1.6
     6  Version: 3.1.7
    77  Requires at least: 4.0
    8   Requires Plugins: gravityforms
    98  Tested up to: 6.8.2
    109  Author: EngageBay
     
    1615$activated_plugins = apply_filters('active_plugins', get_option('active_plugins'));
    1716
    18 if (!in_array('gravityforms/gravityforms.php', apply_filters('active_plugins', get_option('active_plugins')), true)) {
     17if (!function_exists('is_plugin_active')) {
     18    require_once ABSPATH . 'wp-admin/includes/plugin.php';
     19}
     20
     21$is_gravity_forms_active = is_plugin_active('gravityforms/gravityforms.php') || is_plugin_active_for_network('gravityforms/gravityforms.php');
     22
     23if (!$is_gravity_forms_active) {
    1924    if (is_admin()) {
    2025        add_action('admin_notices', function () {
     
    3035    class EngageBayGFAddon extends GFAddOn
    3136    {
    32         protected $_version = '3.2';
     37        protected $_version = '3.1.7';
    3338        protected $_min_gravityforms_version = '1.8.7';
    3439        protected $_slug = 'engagebay';
  • engagebay-gravity-forms/trunk/readme.txt

    r3332404 r3333069  
    44Requires at least: 3.7
    55Tested up to: 6.8.2
    6 Stable tag: 3.1.6
     6Stable tag: 3.1.7
    77
    88This plugin integrates Gravity Forms with EngageBay allowing form submissions to be automatically sent to user’s EngageBay account. Link any field type with EngageBay including custom fields.
    99
    1010EngageBay is an affordable, all-in-one CRM, marketing, sales and support software for growing companies. Learn more from [here](https://www.engagebay.com).
    11 
    1211
    1312== Description ==
     
    9796
    9897== Changelog ==
    99 
    100 - Declared gravityforms as a required plugin using the Requires Plugins header for better dependency visibility
     98- Fixed: Gravity Forms detection now works correctly with both single-site and network-activated installations.
     99- Improved: Compatibility with WordPress multisite environments.
     100- Cleaned up plugin activation checks to avoid false error notices.
Note: See TracChangeset for help on using the changeset viewer.