Changeset 2227663
- Timestamp:
- 01/15/2020 09:58:15 AM (6 years ago)
- Location:
- addefend-easy-integration
- Files:
-
- 6 edited
- 1 copied
-
tags/1.7 (copied) (copied from addefend-easy-integration/trunk)
-
tags/1.7/Components/script_integration.php (modified) (2 diffs)
-
tags/1.7/addefend-easy-integration.php (modified) (1 diff)
-
tags/1.7/readme.txt (modified) (2 diffs)
-
trunk/Components/script_integration.php (modified) (2 diffs)
-
trunk/addefend-easy-integration.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
addefend-easy-integration/tags/1.7/Components/script_integration.php
r2104005 r2227663 21 21 add_filter( 'cron_schedules', 'addefend_add_script_update_frequency'); 22 22 function addefend_add_script_update_frequency($schedules ) { 23 $schedules['everyfiveminutes'] = array( 24 'interval' => 300, 25 'display' => __('Every Five Minutes') 26 ); 27 // this is for testing 28 $schedules['every10seconds'] = array( 29 'interval' => 10, 30 'display' => __('Every ten Seconds') 31 ); 23 if(!isset($schedules['everyfiveminutes'])) { 24 $schedules['everyfiveminutes'] = array( 25 'interval' => 300, 26 'display' => __('Every Five Minutes') 27 ); 28 } 29 if(!isset($schedules['every10seconds'])) { 30 // this is for testing 31 $schedules['every10seconds'] = array( 32 'interval' => 10, 33 'display' => __('Every ten Seconds') 34 ); 35 } 32 36 return $schedules; 33 37 } … … 86 90 addefend_log('ADDEFEND -- TRACE : Script injected in the footer'); 87 91 } 88 if ( !wp_next_scheduled( 'out_of_date_script' ) ) { 89 wp_schedule_event( time(), 'hourly', 'out_of_date_script'); 92 $nextScriptUpdateDate = wp_next_scheduled( 'out_of_date_script' ); 93 if ( $nextScriptUpdateDate ) { 94 addefend_log('ADDEFEND -- TRACE : the next script update is scheduled for ' . date('l jS \of F Y h:i:s A', $nextScriptUpdateDate)); 95 } else { 96 addefend_log('ADDEFEND -- ERROR : Script Update schedule does not exist, trying to re-create it...'); 97 $existingSchedules = wp_get_schedules(); 98 if (wp_schedule_event( time(), 'everyfiveminutes', 'out_of_date_script')) { 99 addefend_log('ADDEFEND -- TRACE : successfully rescheduled the Script Update for every five minutes'); 100 } else if (wp_schedule_event( time(), 'hourly', 'out_of_date_script')) { 101 addefend_log('ADDEFEND -- TRACE : successfully rescheduled the Script Update for every one hour'); 102 } else { 103 addefend_log('ADDEFEND -- ERROR : failed to reschedule the Script Update - time() = ' . time() . ' | existingSchedules = ' . $existingSchedules); 104 } 90 105 } 91 106 } -
addefend-easy-integration/tags/1.7/addefend-easy-integration.php
r2104005 r2227663 4 4 Plugin URI: https://wordpress.org/plugins/addefend-easy-integration/ 5 5 Description: The AdDefend Easy Intregration plug-in supports publishers in integrating the AdDefend anti-adblock solution. 6 Version: 1. 66 Version: 1.7 7 7 Author: AdDefend GmbH 8 8 Author URI: http://www.addefend.com/ -
addefend-easy-integration/tags/1.7/readme.txt
r2104005 r2227663 3 3 Tags: unblock, unblockable, ads, addefend, ad recovery, recover ads, anti-adblocker, online advertising, digital advertising, ad reinsertion, counter block, block adblock, ad block blocker, adblock advertising 4 4 Requires at least: 4.2 5 Tested up to: 5. 2.16 Stable tag: 1. 65 Tested up to: 5.3.2 6 Stable tag: 1.7 7 7 License: GPLv3 8 8 License URI: https://www.gnu.org/licenses/gpl.html … … 52 52 == Changelog == 53 53 54 = 1.7 = 55 * improve the automatic Cron job recovery 56 54 57 = 1.4 = 55 58 * content-proxy integration was improved -
addefend-easy-integration/trunk/Components/script_integration.php
r2104005 r2227663 21 21 add_filter( 'cron_schedules', 'addefend_add_script_update_frequency'); 22 22 function addefend_add_script_update_frequency($schedules ) { 23 $schedules['everyfiveminutes'] = array( 24 'interval' => 300, 25 'display' => __('Every Five Minutes') 26 ); 27 // this is for testing 28 $schedules['every10seconds'] = array( 29 'interval' => 10, 30 'display' => __('Every ten Seconds') 31 ); 23 if(!isset($schedules['everyfiveminutes'])) { 24 $schedules['everyfiveminutes'] = array( 25 'interval' => 300, 26 'display' => __('Every Five Minutes') 27 ); 28 } 29 if(!isset($schedules['every10seconds'])) { 30 // this is for testing 31 $schedules['every10seconds'] = array( 32 'interval' => 10, 33 'display' => __('Every ten Seconds') 34 ); 35 } 32 36 return $schedules; 33 37 } … … 86 90 addefend_log('ADDEFEND -- TRACE : Script injected in the footer'); 87 91 } 88 if ( !wp_next_scheduled( 'out_of_date_script' ) ) { 89 wp_schedule_event( time(), 'hourly', 'out_of_date_script'); 92 $nextScriptUpdateDate = wp_next_scheduled( 'out_of_date_script' ); 93 if ( $nextScriptUpdateDate ) { 94 addefend_log('ADDEFEND -- TRACE : the next script update is scheduled for ' . date('l jS \of F Y h:i:s A', $nextScriptUpdateDate)); 95 } else { 96 addefend_log('ADDEFEND -- ERROR : Script Update schedule does not exist, trying to re-create it...'); 97 $existingSchedules = wp_get_schedules(); 98 if (wp_schedule_event( time(), 'everyfiveminutes', 'out_of_date_script')) { 99 addefend_log('ADDEFEND -- TRACE : successfully rescheduled the Script Update for every five minutes'); 100 } else if (wp_schedule_event( time(), 'hourly', 'out_of_date_script')) { 101 addefend_log('ADDEFEND -- TRACE : successfully rescheduled the Script Update for every one hour'); 102 } else { 103 addefend_log('ADDEFEND -- ERROR : failed to reschedule the Script Update - time() = ' . time() . ' | existingSchedules = ' . $existingSchedules); 104 } 90 105 } 91 106 } -
addefend-easy-integration/trunk/addefend-easy-integration.php
r2104005 r2227663 4 4 Plugin URI: https://wordpress.org/plugins/addefend-easy-integration/ 5 5 Description: The AdDefend Easy Intregration plug-in supports publishers in integrating the AdDefend anti-adblock solution. 6 Version: 1. 66 Version: 1.7 7 7 Author: AdDefend GmbH 8 8 Author URI: http://www.addefend.com/ -
addefend-easy-integration/trunk/readme.txt
r2104005 r2227663 3 3 Tags: unblock, unblockable, ads, addefend, ad recovery, recover ads, anti-adblocker, online advertising, digital advertising, ad reinsertion, counter block, block adblock, ad block blocker, adblock advertising 4 4 Requires at least: 4.2 5 Tested up to: 5. 2.16 Stable tag: 1. 65 Tested up to: 5.3.2 6 Stable tag: 1.7 7 7 License: GPLv3 8 8 License URI: https://www.gnu.org/licenses/gpl.html … … 52 52 == Changelog == 53 53 54 = 1.7 = 55 * improve the automatic Cron job recovery 56 54 57 = 1.4 = 55 58 * content-proxy integration was improved
Note: See TracChangeset
for help on using the changeset viewer.