AdRotate Banner Manager - Version 5.8.12

Version Description

Enjoy this update with the latest tweaks and improvements for AdRotate for WordPress!

Download this release

Release Info

Developer adegans
Plugin Icon 128x128 AdRotate Banner Manager
Version 5.8.12
Comparing to
See all releases

Code changes from version 5.8.11 to 5.8.12

Files changed (3) hide show
  1. adrotate-statistics.php +5 -12
  2. adrotate.php +2 -2
  3. readme.txt +12 -16
adrotate-statistics.php CHANGED
@@ -348,6 +348,7 @@ function adrotate_prepare_advertiser_report($user, $ads) {
348
  function adrotate_date_start($what) {
349
  $now = current_time('timestamp');
350
  $string = gmdate('Y-m-d H:i:s', time());
 
351
  preg_match('#([0-9]{1,4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})#', $string, $matches);
352
 
353
  switch($what) {
@@ -356,25 +357,17 @@ function adrotate_date_start($what) {
356
  $result = gmdate('U', $string_time + (get_option('gmt_offset') * 3600));
357
  break;
358
  case 'day' :
359
- $timezone = get_option('timezone_string');
 
360
  if($timezone) {
361
- $server_timezone = date('e');
362
- date_default_timezone_set($timezone);
363
  $result = strtotime('00:00:00') + (get_option('gmt_offset') * 3600);
364
- date_default_timezone_set($server_timezone);
365
- } else {
366
- $result = gmdate('U', gmmktime(0, 0, 0, gmdate('n'), gmdate('j')));
367
  }
368
  break;
369
  case 'week' :
370
- $timezone = get_option('timezone_string');
 
371
  if($timezone) {
372
- $server_timezone = date('e');
373
- date_default_timezone_set($timezone);
374
  $result = strtotime('Last Monday', $now) + (get_option('gmt_offset') * 3600);
375
- date_default_timezone_set($server_timezone);
376
- } else {
377
- $result = gmdate('U', gmmktime(0, 0, 0));
378
  }
379
  break;
380
  }
348
  function adrotate_date_start($what) {
349
  $now = current_time('timestamp');
350
  $string = gmdate('Y-m-d H:i:s', time());
351
+ $timezone = get_option('timezone_string');
352
  preg_match('#([0-9]{1,4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})#', $string, $matches);
353
 
354
  switch($what) {
357
  $result = gmdate('U', $string_time + (get_option('gmt_offset') * 3600));
358
  break;
359
  case 'day' :
360
+ $result = gmdate('U', gmmktime(0, 0, 0, gmdate('n'), gmdate('j')));
361
+
362
  if($timezone) {
 
 
363
  $result = strtotime('00:00:00') + (get_option('gmt_offset') * 3600);
 
 
 
364
  }
365
  break;
366
  case 'week' :
367
+ $result = gmdate('U', gmmktime(0, 0, 0));
368
+
369
  if($timezone) {
 
 
370
  $result = strtotime('Last Monday', $now) + (get_option('gmt_offset') * 3600);
 
 
 
371
  }
372
  break;
373
  }
adrotate.php CHANGED
@@ -6,7 +6,7 @@ Author: Arnan de Gans
6
  Author URI: https://www.arnan.me/?pk_campaign=adrotatefree&pk_keyword=plugin_info
7
  Description: Monetize your website with adverts while keeping things simple. Start making money today!
8
  Text Domain: adrotate
9
- Version: 5.8.11
10
  License: GPLv3
11
  */
12
 
@@ -21,7 +21,7 @@ License: GPLv3
21
  ------------------------------------------------------------------------------------ */
22
 
23
  /*--- AdRotate values ---------------------------------------*/
24
- define("ADROTATE_DISPLAY", '5.8.11');
25
  define("ADROTATE_VERSION", 399);
26
  define("ADROTATE_DB_VERSION", 66);
27
  $plugin_folder = plugin_dir_path(__FILE__);
6
  Author URI: https://www.arnan.me/?pk_campaign=adrotatefree&pk_keyword=plugin_info
7
  Description: Monetize your website with adverts while keeping things simple. Start making money today!
8
  Text Domain: adrotate
9
+ Version: 5.8.12
10
  License: GPLv3
11
  */
12
 
21
  ------------------------------------------------------------------------------------ */
22
 
23
  /*--- AdRotate values ---------------------------------------*/
24
+ define("ADROTATE_DISPLAY", '5.8.12');
25
  define("ADROTATE_VERSION", 399);
26
  define("ADROTATE_DB_VERSION", 66);
27
  $plugin_folder = plugin_dir_path(__FILE__);
readme.txt CHANGED
@@ -4,8 +4,8 @@ Donate link: https://ajdg.solutions/go/donate/adrotatefree
4
  Tags: adverts, ads, banners, advert manager, ad manager, banner manager, monetise, revenue, place banners, google, adsense, dfp, doubleclick, amazon, affiliate, referral
5
  Requires at least: 5.0
6
  Requires PHP: 5.6
7
- Tested up to: 5.5.1
8
- Stable tag: 5.8.11
9
  License: GPLv3
10
 
11
  AdRotate is the only advert manager you'll ever need. Manage all your Google AdSense, Media.net, Amazon banners and more. Manage your ads.txt, widgets and many more powerful features to run successful campaigns.
@@ -64,20 +64,16 @@ For more detailed instructions check out the [installation steps](https://ajdg.s
64
 
65
  For the full changelog check out the [development page](https://ajdg.solutions/support/adrotate-development/?pk_campaign=adrotatefree&pk_keyword=readme).
66
 
67
- = AdRotate 5.8.10 =
68
- * [tweak] More consistent use of date() and date_i18n()
69
- * [change] Now requires WordPress 5.0 or newer
70
-
71
- = AdRotate Professional 5.8.6 =
72
- * [fix] Added missing error notices for certain combinations of settings
73
- * [fix] Replaced adrotate_now() with current_time(‘timestamp’)
74
- * [fix] Better handling of slow/no response from update server
75
- * [fix] Backward compatibility with older WordPress versions
76
- * [tweak] More consistent use of date() and date_i18n()
77
- * [tweak] Reworded advert error notifications
78
- * [change] Update checks now show last checked date
79
- * [change] %image% tag no longer supported
80
- * [change] Now requires WordPress 5.0 or newer
81
 
82
  Be a Pro and get [AdRotate Professional](https://ajdg.solutions/product-category/adrotate-pro/?pk_campaign=adrotatefree&pk_keyword=readme)!
83
 
4
  Tags: adverts, ads, banners, advert manager, ad manager, banner manager, monetise, revenue, place banners, google, adsense, dfp, doubleclick, amazon, affiliate, referral
5
  Requires at least: 5.0
6
  Requires PHP: 5.6
7
+ Tested up to: 5.5.3
8
+ Stable tag: 5.8.12
9
  License: GPLv3
10
 
11
  AdRotate is the only advert manager you'll ever need. Manage all your Google AdSense, Media.net, Amazon banners and more. Manage your ads.txt, widgets and many more powerful features to run successful campaigns.
64
 
65
  For the full changelog check out the [development page](https://ajdg.solutions/support/adrotate-development/?pk_campaign=adrotatefree&pk_keyword=readme).
66
 
67
+ = AdRotate 5.8.12 =
68
+ * [tweak] Rely more on WordPress time settings
69
+
70
+ = AdRotate Professional 5.8.7 =
71
+ * [tweak] Improved file placement for unzipped adverts
72
+ * [tweak] Rely more on WordPress time settings
73
+ * [tweak] Process Update/Geo API responses when banned
74
+ * [new] Automatically remove unexpected files from unzipped adverts
75
+ * [fix] Wrongly check for ipstack lookup quota
76
+ * [fix] Don’t rely on WordPress to recognize errors from API responses
 
 
 
 
77
 
78
  Be a Pro and get [AdRotate Professional](https://ajdg.solutions/product-category/adrotate-pro/?pk_campaign=adrotatefree&pk_keyword=readme)!
79