Changeset 701653
- Timestamp:
- 04/22/2013 03:38:27 PM (13 years ago)
- Location:
- bitcoin-payments-for-woocommerce/trunk
- Files:
-
- 4 added
- 4 edited
-
assets (added)
-
assets/screenshot-1.png (added)
-
assets/screenshot-2.png (added)
-
assets/screenshot-3.png (added)
-
bitcoinway-woocommerce.php (modified) (2 diffs)
-
bwwc-admin.php (modified) (1 diff)
-
bwwc-include-all.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
bitcoin-payments-for-woocommerce/trunk/bitcoinway-woocommerce.php
r701239 r701653 12 12 Plugin URI: http://www.bitcoinway.com/ 13 13 Description: Bitcoin Payments for WooCommerce plugin allows you to accept payments in bitcoins for physical and digital products at your WooCommerce-powered online store. 14 Version: 2.0 314 Version: 2.04 15 15 Author: BitcoinWay 16 16 Author URI: http://www.bitcoinway.com/ … … 44 44 function BWWC_activate() 45 45 { 46 global $g_BWWC__config_defaults;46 global $g_BWWC__config_defaults; 47 47 48 $bwwc_default_options = $g_BWWC__config_defaults;48 $bwwc_default_options = $g_BWWC__config_defaults; 49 49 50 // This will overwrite default options with already existing options but leave new options (in case of upgrading to new version) untouched. 51 $bwwc_settings = BWWC__get_settings (); 52 if (is_array ($bwwc_settings)) 53 { 54 foreach ($bwwc_settings as $key=>$value) 55 $bwwc_default_options[$key] = $value; 56 } 50 // This will overwrite default options with already existing options but leave new options (in case of upgrading to new version) untouched. 51 $bwwc_settings = BWWC__get_settings (); 57 52 58 update_option (BWWC_SETTINGS_NAME, $bwwc_default_options); 53 foreach ($bwwc_settings as $key=>$value) 54 $bwwc_default_options[$key] = $value; 59 55 60 // Re-get new settings. 61 $bwwc_settings = BWWC__get_settings (); 56 update_option (BWWC_SETTINGS_NAME, $bwwc_default_options); 62 57 63 // Create necessary database tables if not already exists...64 BWWC__create_database_tables ($bwwc_settings);58 // Re-get new settings. 59 $bwwc_settings = BWWC__get_settings (); 65 60 66 //---------------------------------- 67 // Setup cron jobs 61 // Create necessary database tables if not already exists... 62 BWWC__create_database_tables ($bwwc_settings); 68 63 69 if ($bwwc_settings['enable_soft_cron_job'] && !wp_next_scheduled('BWWC_cron_action')) 70 { 71 $cron_job_schedule_name = strpos($_SERVER['HTTP_HOST'], 'ttt.com')===FALSE ? $bwwc_settings['soft_cron_job_schedule_name'] : 'seconds_30'; 72 wp_schedule_event(time(), $cron_job_schedule_name, 'BWWC_cron_action'); 73 } 74 //---------------------------------- 64 //---------------------------------- 65 // Setup cron jobs 66 67 if ($bwwc_settings['enable_soft_cron_job'] && !wp_next_scheduled('BWWC_cron_action')) 68 { 69 $cron_job_schedule_name = strpos($_SERVER['HTTP_HOST'], 'ttt.com')===FALSE ? $bwwc_settings['soft_cron_job_schedule_name'] : 'seconds_30'; 70 wp_schedule_event(time(), $cron_job_schedule_name, 'BWWC_cron_action'); 71 } 72 //---------------------------------- 75 73 76 74 } -
bitcoin-payments-for-woocommerce/trunk/bwwc-admin.php
r701236 r701653 135 135 function BWWC__get_settings ($key=false) 136 136 { 137 global $g_BWWC__plugin_directory_url; 138 global $g_BWWC__config_defaults; 139 140 $bwwc_settings = get_option (BWWC_SETTINGS_NAME); 141 142 143 144 if (!$key) 145 return ($bwwc_settings); 146 else 147 return (@$bwwc_settings[$key]); 137 global $g_BWWC__plugin_directory_url; 138 global $g_BWWC__config_defaults; 139 140 $bwwc_settings = get_option (BWWC_SETTINGS_NAME); 141 if (!is_array($bwwc_settings)) 142 $bwwc_settings = array(); 143 144 145 146 if ($key) 147 return (@$bwwc_settings[$key]); 148 else 149 return ($bwwc_settings); 148 150 } 149 151 //=========================================================================== -
bitcoin-payments-for-woocommerce/trunk/bwwc-include-all.php
r701239 r701653 9 9 if (!defined('BWWC_PLUGIN_NAME')) 10 10 { 11 define('BWWC_VERSION', '2.0 3');11 define('BWWC_VERSION', '2.04'); 12 12 13 13 //----------------------------------------------- -
bitcoin-payments-for-woocommerce/trunk/readme.txt
r701239 r701653 50 50 51 51 52 == Supporters == 53 54 * Yifu Guo: http://bitsyn.com/ 55 * Chris Savery: https://github.com/bkkcoins/misc 56 * lowcostego: http://wordpress.org/support/profile/lowcostego 57 * WebDesZ: http://wordpress.org/support/profile/webdesz 58 * ninjastik: http://wordpress.org/support/profile/ninjastik 59 60 52 61 == Changelog == 62 63 = 2.04 = 64 * Improved upgradeability from older versions. 53 65 54 66 = 2.02 =
Note: See TracChangeset
for help on using the changeset viewer.