ThirstyAffiliates Affiliate Link Manager - Version 3.3.4

Version Description

  • Bug Fix: Saved report shows wrong graph lines placement
Download this release

Release Info

Developer jkohlbach
Plugin Icon 128x128 ThirstyAffiliates Affiliate Link Manager
Version 3.3.4
Comparing to
See all releases

Code changes from version 3.3.3 to 3.3.4

Helpers/Plugin_Constants.php CHANGED
@@ -27,7 +27,7 @@ class Plugin_Constants {
27
  // Plugin configuration constants
28
  const TOKEN = 'ta';
29
  const INSTALLED_VERSION = 'ta_installed_version';
30
- const VERSION = '3.3.3';
31
  const TEXT_DOMAIN = 'thirstyaffiliates';
32
  const THEME_TEMPLATE_PATH = 'thirstyaffiliates';
33
  const META_DATA_PREFIX = '_ta_';
27
  // Plugin configuration constants
28
  const TOKEN = 'ta';
29
  const INSTALLED_VERSION = 'ta_installed_version';
30
+ const VERSION = '3.3.4';
31
  const TEXT_DOMAIN = 'thirstyaffiliates';
32
  const THEME_TEMPLATE_PATH = 'thirstyaffiliates';
33
  const META_DATA_PREFIX = '_ta_';
Models/Stats_Reporting.php CHANGED
@@ -742,6 +742,7 @@ class Stats_Reporting implements Model_Interface , Initiable_Interface , Activat
742
  * @since 3.0.0
743
  * @since 3.2.2 Change method of getting timezone sting name.
744
  * @since 3.3.3 Set range timezone to UTC before fetching raw data.
 
745
  * @access public
746
  *
747
  * @param array $range Report range details
@@ -757,11 +758,15 @@ class Stats_Reporting implements Model_Interface , Initiable_Interface , Activat
757
  $utc = new \DateTimeZone( 'UTC' );
758
  $flot_data = array();
759
 
 
 
 
760
  if ( apply_filters( 'ta_report_set_start_date_time_to_zero' , true , $range ) )
761
  $start_date->setTime( 0 , 0 );
762
 
763
  $start_date->setTimezone( $utc );
764
- $end_date->setTimezone( $utc );
 
765
  $raw_data = $this->get_link_performance_data( $start_date->format( 'Y-m-d H:i:s' ) , $end_date->format( 'Y-m-d H:i:s' ) , $link_ids );
766
 
767
  // get number of days difference between start and end
742
  * @since 3.0.0
743
  * @since 3.2.2 Change method of getting timezone sting name.
744
  * @since 3.3.3 Set range timezone to UTC before fetching raw data.
745
+ * @since 3.3.4 Set date range timezone back to local browser before setting start time to zero.
746
  * @access public
747
  *
748
  * @param array $range Report range details
758
  $utc = new \DateTimeZone( 'UTC' );
759
  $flot_data = array();
760
 
761
+ $start_date->setTimezone( $timezone );
762
+ $end_date->setTimezone( $timezone );
763
+
764
  if ( apply_filters( 'ta_report_set_start_date_time_to_zero' , true , $range ) )
765
  $start_date->setTime( 0 , 0 );
766
 
767
  $start_date->setTimezone( $utc );
768
+ $end_date->setTimezone( $utc );
769
+
770
  $raw_data = $this->get_link_performance_data( $start_date->format( 'Y-m-d H:i:s' ) , $end_date->format( 'Y-m-d H:i:s' ) , $link_ids );
771
 
772
  // get number of days difference between start and end
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: affiliate, link, affiliate link management, link cloaker, link redirect, s
5
  Requires at least: 3.4
6
  Requires PHP: 5.6
7
  Tested up to: 4.9.6
8
- Stable tag: 3.3.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -159,6 +159,9 @@ See our [Knowledge Base](https://thirstyaffiliates.com/knowledge-base/?utm_sourc
159
 
160
  == Changelog ==
161
 
 
 
 
162
  = 3.3.3 =
163
  * Improvement: Block bots on stats recording process for non-apache servers
164
  * Improvement: Remove report data query on page first load
5
  Requires at least: 3.4
6
  Requires PHP: 5.6
7
  Tested up to: 4.9.6
8
+ Stable tag: 3.3.4
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
159
 
160
  == Changelog ==
161
 
162
+ = 3.3.4 =
163
+ * Bug Fix: Saved report shows wrong graph lines placement
164
+
165
  = 3.3.3 =
166
  * Improvement: Block bots on stats recording process for non-apache servers
167
  * Improvement: Remove report data query on page first load
thirstyaffiliates.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: ThirstyAffiliates
4
  * Plugin URI: http://thirstyaffiliates.com/
5
  * Description: ThirstyAffiliates is a revolution in affiliate link management. Collect, collate and store your affiliate links for use in your posts and pages.
6
- * Version: 3.3.3
7
  * Author: Rymera Web Co
8
  * Author URI: https://rymera.com.au/
9
  * Requires at least: 4.4.2
3
  * Plugin Name: ThirstyAffiliates
4
  * Plugin URI: http://thirstyaffiliates.com/
5
  * Description: ThirstyAffiliates is a revolution in affiliate link management. Collect, collate and store your affiliate links for use in your posts and pages.
6
+ * Version: 3.3.4
7
  * Author: Rymera Web Co
8
  * Author URI: https://rymera.com.au/
9
  * Requires at least: 4.4.2