Yandex Metrica - Version 1.4.2

Version Description

  • minor bug fixes
Download this release

Release Info

Developer m_uysl
Plugin Icon 128x128 Yandex Metrica
Version 1.4.2
Comparing to
See all releases

Code changes from version 1.4.1 to 1.4.2

README.md CHANGED
@@ -3,7 +3,7 @@
3
  Contributors: m_uysl
4
  Tags: yandex,metrica,stats,statistics,tools,analytics,analytics tool,metrika
5
  Requires at least: 3.0
6
- Tested up to: 4.6
7
  Stable tag: 1.4
8
  License: GPLv2 (or later)
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -63,10 +63,12 @@ Extract the zip file and just drop the contents in the `wp-content/plugins/` dir
63
 
64
  ## Changelog ##
65
 
 
 
 
66
  ### 1.4.1 ###
67
  - array-multisort bug fix. Props Николай Астраханцев
68
 
69
-
70
  ### 1.4 ###
71
  - Text Domain changed
72
  - Nonces added to settings page
3
  Contributors: m_uysl
4
  Tags: yandex,metrica,stats,statistics,tools,analytics,analytics tool,metrika
5
  Requires at least: 3.0
6
+ Tested up to: 4.7
7
  Stable tag: 1.4
8
  License: GPLv2 (or later)
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
63
 
64
  ## Changelog ##
65
 
66
+ ### 1.4.2 ###
67
+ - minor bug fixes
68
+
69
  ### 1.4.1 ###
70
  - array-multisort bug fix. Props Николай Астраханцев
71
 
 
72
  ### 1.4 ###
73
  - Text Domain changed
74
  - Nonces added to settings page
readme.txt CHANGED
@@ -3,8 +3,8 @@
3
  Contributors: m_uysl
4
  Tags: yandex,metrica,stats,statistics,tools,analytics,analytics tool,metrika
5
  Requires at least: 3.0
6
- Tested up to: 4.6
7
- Stable tag: 1.4.1
8
  License: GPLv2 (or later)
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -63,6 +63,9 @@ Extract the zip file and just drop the contents in the `wp-content/plugins/` dir
63
 
64
  == Changelog ==
65
 
 
 
 
66
  = 1.4.1 =
67
  - array-multisort bug fix. Props Николай Астраханцев
68
 
3
  Contributors: m_uysl
4
  Tags: yandex,metrica,stats,statistics,tools,analytics,analytics tool,metrika
5
  Requires at least: 3.0
6
+ Tested up to: 4.7
7
+ Stable tag: 1.4.2
8
  License: GPLv2 (or later)
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
63
 
64
  == Changelog ==
65
 
66
+ = 1.4.2 =
67
+ - minor bug fixes
68
+
69
  = 1.4.1 =
70
  - array-multisort bug fix. Props Николай Астраханцев
71
 
templates/dashboard-charts-js.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  <script type="text/javascript">
4
  jQuery(document).ready(function ($) {
5
- <?php if( ! is_array( $statical_data ) ) { ?>
6
  $('#metrica-graph').html("<p><?php _e('Sorry, couldn\'t draw graph for selected period, please try different time period.','yandex-metrica');?></p>");
7
  <?php } else { ?>
8
  $('#metrica-graph').highcharts({
2
 
3
  <script type="text/javascript">
4
  jQuery(document).ready(function ($) {
5
+ <?php if( ! is_array( $statical_data ) || empty( $statical_data ) ) { ?>
6
  $('#metrica-graph').html("<p><?php _e('Sorry, couldn\'t draw graph for selected period, please try different time period.','yandex-metrica');?></p>");
7
  <?php } else { ?>
8
  $('#metrica-graph').highcharts({
yandex-metrica.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Yandex Metrica
4
  Plugin URI: http://uysalmustafa.com/plugins/yandex-metrica
5
  Description: Best metrica plugin for the use Yandex Metrica in your WordPress site.
6
  Author: Mustafa Uysal
7
- Version: 1.4.1
8
  Text Domain: yandex-metrica
9
  Domain Path: /languages/
10
  Author URI: http://uysalmustafa.com
@@ -207,6 +207,7 @@ class WP_Yandex_Metrica extends WP_Stack_Plugin {
207
  $statical_data = self::$metrica_api->get_counter_statistics( $this->options["counter_id"], $this->start_date, $this->end_date, "data" );
208
 
209
  if ( is_array( $statical_data ) ) {
 
210
  foreach ( $statical_data as $key => $row ) {
211
  $days[ $key ] = $row['date'];
212
  }
4
  Plugin URI: http://uysalmustafa.com/plugins/yandex-metrica
5
  Description: Best metrica plugin for the use Yandex Metrica in your WordPress site.
6
  Author: Mustafa Uysal
7
+ Version: 1.4.2
8
  Text Domain: yandex-metrica
9
  Domain Path: /languages/
10
  Author URI: http://uysalmustafa.com
207
  $statical_data = self::$metrica_api->get_counter_statistics( $this->options["counter_id"], $this->start_date, $this->end_date, "data" );
208
 
209
  if ( is_array( $statical_data ) ) {
210
+ $days = array();
211
  foreach ( $statical_data as $key => $row ) {
212
  $days[ $key ] = $row['date'];
213
  }