Plugin Directory

Changeset 3166149


Ignore:
Timestamp:
10/09/2024 11:14:34 PM (18 months ago)
Author:
brightedge
Message:

Fixed the WP-CLI conflict issue with other plugins

Location:
brightedge-autopilot/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • brightedge-autopilot/trunk/be_ixf_php_wp.php

    r3148911 r3166149  
    44 * Plugin URI: https://www.brightedge.com/
    55 * Description: Enables BrightEdge Autopilot on your Wordpress site.
    6  * Version: 1.1.15
     6 * Version: 1.1.16
    77 * Author: BrightEdge
    88 * Author URI: https://www.brightedge.com/
     
    5151/*********** custom code start ******************/
    5252
    53 // Ensure WP_CLI is defined and check if it's active
    54 if (!defined('WP_CLI')) {
    55     define('WP_CLI', false);
     53// Check if WP-CLI is active to prevent conflicts with other plugins
     54if (defined('WP_CLI') && WP_CLI && php_sapi_name() == 'cli') {
     55    // Exit early if WP-CLI is active to skip frontend and admin hooks
     56    return;
    5657}
    57 
    5858/*********** custom code end ******************/
    5959
    6060
    61 // Only add actions if WP-CLI is not active
    62 if (!WP_CLI) {
     61// Ensure actions and loader are only run in non-CLI mode
     62if (!defined('WP_CLI') || !WP_CLI) {
    6363    if (function_exists('add_action')) {
    6464        add_action('init', function () {
  • brightedge-autopilot/trunk/readme.txt

    r3148911 r3166149  
    77Requires PHP: 5.5
    88Tested up to: 6.6.1
    9 Version: 1.1.15
     9Version: 1.1.16
    1010Copyright: BrightEdge Technologies, Inc.
    1111License: www.brightedge.com/infrastructure-product-terms
     
    2525
    2626== Changelog ==
     27
     281.1.16 =
     29* Release date: Oct 3, 2024
     30
     31**Update**
     32
     33* Added a fix for WP CLI Conflicts
    2734
    28351.1.15 =
  • brightedge-autopilot/trunk/src/constants.php

    r3148911 r3166149  
    55class BEIXFConstants{
    66    // wordpress plugin version
    7     const WP_VERSION = '<meta name="be:wp" content="1.1.15">';
     7    const WP_VERSION = '<meta name="be:wp" content="1.1.16">';
    88    // account id
    99    const ACCOUNT_ID = 'account_id';
Note: See TracChangeset for help on using the changeset viewer.