Changeset 2184329
- Timestamp:
- 11/01/2019 10:45:02 AM (6 years ago)
- Location:
- emitto/trunk
- Files:
-
- 2 edited
-
includes/emitto-functions.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
emitto/trunk/includes/emitto-functions.php
r2179274 r2184329 9 9 } 10 10 //Emitto - Core Functionality 11 define ( 'MY_PLUGIN_VERSION', '2.0.0'); 12 13 14 function my_plugin_activation() { 15 $version = get_option( 'my_plugin_version' ); 16 17 18 update_option( 'my_plugin_version', MY_PLUGIN_VERSION ); 19 return MY_PLUGIN_VERSION; 20 } 21 22 function my_plugin_is_current_version(){ 23 $version = get_option( 'my_plugin_version' ); 24 return version_compare($version, MY_PLUGIN_VERSION, '=') ? true : false; 25 } 26 if ( !my_plugin_is_current_version() ) my_plugin_activation(); 11 27 12 28 -
emitto/trunk/readme.txt
r2179274 r2184329 4 4 Plugin URI: https://emitto.io/ 5 5 Author: https://producthive.io/ 6 Version: 1.16 Version: 2.0 7 7 Text Domain: Emitto 8 8 License: GPL v2 or later
Note: See TracChangeset
for help on using the changeset viewer.