Changeset 3148911
- Timestamp:
- 09/09/2024 11:18:58 PM (19 months ago)
- Location:
- brightedge-autopilot/trunk
- Files:
-
- 5 edited
-
be_ixf_php_wp.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
src/Loader.php (modified) (2 diffs)
-
src/be_ixf_client.php (modified) (1 diff)
-
src/constants.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
brightedge-autopilot/trunk/be_ixf_php_wp.php
r3143990 r3148911 4 4 * Plugin URI: https://www.brightedge.com/ 5 5 * Description: Enables BrightEdge Autopilot on your Wordpress site. 6 * Version: 1.1.1 46 * Version: 1.1.15 7 7 * Author: BrightEdge 8 8 * Author URI: https://www.brightedge.com/ … … 49 49 ); 50 50 51 if (function_exists('add_action')) { 52 add_action('init', function () { 53 $base_path = plugin_dir_path(__FILE__); 54 new BEIXFLoader($base_path); 55 }); 51 /*********** custom code start ******************/ 56 52 57 // If using widgets: sets up sidebar and widgets 58 add_action('widgets_init', __NAMESPACE__ . '\BEIXFLoader::registerWidget'); 53 // Ensure WP_CLI is defined and check if it's active 54 if (!defined('WP_CLI')) { 55 define('WP_CLI', false); 59 56 } 57 58 /*********** custom code end ******************/ 59 60 61 // Only add actions if WP-CLI is not active 62 if (!WP_CLI) { 63 if (function_exists('add_action')) { 64 add_action('init', function () { 65 $base_path = plugin_dir_path(__FILE__); 66 new BEIXFLoader($base_path); 67 }); 68 69 // If using widgets: sets up sidebar and widgets 70 add_action('widgets_init', __NAMESPACE__ . '\BEIXFLoader::registerWidget'); 71 } 72 } -
brightedge-autopilot/trunk/readme.txt
r3143990 r3148911 7 7 Requires PHP: 5.5 8 8 Tested up to: 6.6.1 9 Version: 1.1.1 49 Version: 1.1.15 10 10 Copyright: BrightEdge Technologies, Inc. 11 11 License: www.brightedge.com/infrastructure-product-terms … … 25 25 26 26 == Changelog == 27 28 1.1.15 = 29 * Release date: Sept 5, 2024 30 31 **Update** 32 33 * Added a fix for WP CLI 34 27 35 1.1.14 = 28 36 * Release date: Aug 28, 2024 -
brightedge-autopilot/trunk/src/Loader.php
r2285207 r3148911 15 15 defined('ABSPATH' ) or die( 'No direct access allowed!'); 16 16 $this->base_path = $plugin_path; 17 18 /*********** Custom code start ***************/ 19 // Skip frontend-specific setup if WP-CLI is active 20 if (defined('WP_CLI') && WP_CLI) { 21 return; // Exit the constructor if WP-CLI is active 22 } 23 /*********** Custom code end ***************/ 17 24 18 25 add_action( … … 94 101 95 102 protected function load(){ 103 // Skip the load method if WP-CLI is active 104 if (defined('WP_CLI') && WP_CLI) { 105 return; 106 } 107 96 108 $instance = new BEIXFController(); 97 109 // Hook ensures rendering after conditional tags are available -
brightedge-autopilot/trunk/src/be_ixf_client.php
r2943291 r3148911 139 139 public static $PRODUCT_NAME = "be_ixf"; 140 140 public static $CLIENT_NAME = "php_sdk"; 141 public static $CLIENT_VERSION = "1.5.1 1";141 public static $CLIENT_VERSION = "1.5.12"; 142 142 143 143 private static $API_VERSION = "1.0.0"; -
brightedge-autopilot/trunk/src/constants.php
r3143990 r3148911 5 5 class BEIXFConstants{ 6 6 // wordpress plugin version 7 const WP_VERSION = '<meta name="be:wp" content="1.1.1 4">';7 const WP_VERSION = '<meta name="be:wp" content="1.1.15">'; 8 8 // account id 9 9 const ACCOUNT_ID = 'account_id';
Note: See TracChangeset
for help on using the changeset viewer.