Changeset 3417319
- Timestamp:
- 12/11/2025 11:48:25 AM (4 months ago)
- Location:
- az-video-and-audio-player-addon-for-elementor
- Files:
-
- 6 edited
- 1 copied
-
tags/3.0.1 (copied) (copied from az-video-and-audio-player-addon-for-elementor/trunk)
-
tags/3.0.1/includes/class-dual-activation-preventer.php (modified) (2 diffs)
-
tags/3.0.1/plugin-main.php (modified) (2 diffs)
-
tags/3.0.1/readme.txt (modified) (1 diff)
-
trunk/includes/class-dual-activation-preventer.php (modified) (2 diffs)
-
trunk/plugin-main.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
az-video-and-audio-player-addon-for-elementor/tags/3.0.1/includes/class-dual-activation-preventer.php
r3417290 r3417319 15 15 /** 16 16 * Ensure only one version (free or pro) is active at a time 17 * Automatically deactivates the other version if both are activated17 * Pro version always takes priority - Free is auto-deactivated when Pro is active 18 18 */ 19 19 public static function ensure_single_activation() { … … 23 23 } 24 24 25 // Detect if THIS plugin is PRO version (folder has -pro suffix)26 $ is_pro_version = strpos(plugin_basename(LEANPL_FILE), '-pro/') !== false;25 $free_plugin = 'az-video-and-audio-player-addon-for-elementor/plugin-main.php'; 26 $pro_plugin = 'lean-player-pro/plugin-main.php'; 27 27 28 if ($is_pro_version) { 29 self::deactivate_free_version(); 30 } else { 31 self::deactivate_pro_version(); 32 } 33 } 34 35 /** 36 * Deactivate free version if active 37 */ 38 private static function deactivate_free_version() { 39 $free_plugin = 'az-video-and-audio-player-addon-for-elementor/plugin-main.php'; 40 41 if (is_plugin_active($free_plugin)) { 28 // If both are active, deactivate Free (Pro wins) 29 if (is_plugin_active($pro_plugin) && is_plugin_active($free_plugin)) { 42 30 deactivate_plugins($free_plugin); 31 43 32 add_action('admin_notices', function() { 44 33 echo '<div class="notice notice-success is-dismissible">'; 45 echo '<p><strong>Lean Player Pro is active.</strong> The free version was automatically turned off. Disable Pro if you need to use the free version again.</p>'; 46 echo '</div>'; 47 }); 48 } 49 } 50 51 /** 52 * Deactivate pro version if active 53 */ 54 private static function deactivate_pro_version() { 55 $pro_plugin = 'lean-player-pro/plugin-main.php'; 56 57 if (is_plugin_active($pro_plugin)) { 58 deactivate_plugins($pro_plugin); 59 add_action('admin_notices', function() { 60 echo '<div class="notice notice-info is-dismissible">'; 61 echo '<p><strong>Lean Player Free is active.</strong> The Pro version was automatically turned off. Disable Free if you need to use the Pro version again.</p>'; 34 echo '<p><strong>Lean Player Pro is active.</strong> The free version was automatically turned off.</p>'; 62 35 echo '</div>'; 63 36 }); -
az-video-and-audio-player-addon-for-elementor/tags/3.0.1/plugin-main.php
r3417290 r3417319 4 4 Plugin URI: https://leanplugins.com/ 5 5 Description: Video & Audio player for Elementor, Gutenberg & Classic Editor 6 Version: 3.0. 06 Version: 3.0.1 7 7 Author: LeanPlugins 8 8 Author URI: https://leanplugins.com/ … … 19 19 // Both version may have this constant, so check first 20 20 if (!defined('LEANPL_VERSION')) { 21 define('LEANPL_VERSION', '3.0. 0');21 define('LEANPL_VERSION', '3.0.1'); 22 22 define('LEANPL_URI', plugins_url('', __FILE__)); 23 23 define('LEANPL_DIR', dirname(__FILE__)); -
az-video-and-audio-player-addon-for-elementor/tags/3.0.1/readme.txt
r3417290 r3417319 98 98 99 99 == Changelog == 100 = Version: 3.0.1 = 101 - Fixed: Dual plugin activation issue 102 100 103 = Version: 3.0.0 = 101 104 * Major: Rebranded plugin under LeanPlugins brand -
az-video-and-audio-player-addon-for-elementor/trunk/includes/class-dual-activation-preventer.php
r3417290 r3417319 15 15 /** 16 16 * Ensure only one version (free or pro) is active at a time 17 * Automatically deactivates the other version if both are activated17 * Pro version always takes priority - Free is auto-deactivated when Pro is active 18 18 */ 19 19 public static function ensure_single_activation() { … … 23 23 } 24 24 25 // Detect if THIS plugin is PRO version (folder has -pro suffix)26 $ is_pro_version = strpos(plugin_basename(LEANPL_FILE), '-pro/') !== false;25 $free_plugin = 'az-video-and-audio-player-addon-for-elementor/plugin-main.php'; 26 $pro_plugin = 'lean-player-pro/plugin-main.php'; 27 27 28 if ($is_pro_version) { 29 self::deactivate_free_version(); 30 } else { 31 self::deactivate_pro_version(); 32 } 33 } 34 35 /** 36 * Deactivate free version if active 37 */ 38 private static function deactivate_free_version() { 39 $free_plugin = 'az-video-and-audio-player-addon-for-elementor/plugin-main.php'; 40 41 if (is_plugin_active($free_plugin)) { 28 // If both are active, deactivate Free (Pro wins) 29 if (is_plugin_active($pro_plugin) && is_plugin_active($free_plugin)) { 42 30 deactivate_plugins($free_plugin); 31 43 32 add_action('admin_notices', function() { 44 33 echo '<div class="notice notice-success is-dismissible">'; 45 echo '<p><strong>Lean Player Pro is active.</strong> The free version was automatically turned off. Disable Pro if you need to use the free version again.</p>'; 46 echo '</div>'; 47 }); 48 } 49 } 50 51 /** 52 * Deactivate pro version if active 53 */ 54 private static function deactivate_pro_version() { 55 $pro_plugin = 'lean-player-pro/plugin-main.php'; 56 57 if (is_plugin_active($pro_plugin)) { 58 deactivate_plugins($pro_plugin); 59 add_action('admin_notices', function() { 60 echo '<div class="notice notice-info is-dismissible">'; 61 echo '<p><strong>Lean Player Free is active.</strong> The Pro version was automatically turned off. Disable Free if you need to use the Pro version again.</p>'; 34 echo '<p><strong>Lean Player Pro is active.</strong> The free version was automatically turned off.</p>'; 62 35 echo '</div>'; 63 36 }); -
az-video-and-audio-player-addon-for-elementor/trunk/plugin-main.php
r3417290 r3417319 4 4 Plugin URI: https://leanplugins.com/ 5 5 Description: Video & Audio player for Elementor, Gutenberg & Classic Editor 6 Version: 3.0. 06 Version: 3.0.1 7 7 Author: LeanPlugins 8 8 Author URI: https://leanplugins.com/ … … 19 19 // Both version may have this constant, so check first 20 20 if (!defined('LEANPL_VERSION')) { 21 define('LEANPL_VERSION', '3.0. 0');21 define('LEANPL_VERSION', '3.0.1'); 22 22 define('LEANPL_URI', plugins_url('', __FILE__)); 23 23 define('LEANPL_DIR', dirname(__FILE__)); -
az-video-and-audio-player-addon-for-elementor/trunk/readme.txt
r3417290 r3417319 98 98 99 99 == Changelog == 100 = Version: 3.0.1 = 101 - Fixed: Dual plugin activation issue 102 100 103 = Version: 3.0.0 = 101 104 * Major: Rebranded plugin under LeanPlugins brand
Note: See TracChangeset
for help on using the changeset viewer.