WP Statistics - Version 12.5.6

Version Description

  • Fixed: Counting stats issue in Cache mode.
Download this release

Release Info

Developer mostafa.s1990
Plugin Icon 128x128 WP Statistics
Version 12.5.6
Comparing to
See all releases

Code changes from version 12.5.5 to 12.5.6

assets/css/log.css CHANGED
@@ -378,4 +378,12 @@
378
 
379
  .wp-statistics-table {
380
  overflow-x: auto;
 
 
 
 
 
 
 
 
381
  }
378
 
379
  .wp-statistics-table {
380
  overflow-x: auto;
381
+ }
382
+
383
+ .wps-postbox-veronalabs {
384
+ margin: 18px 0 0 0;
385
+ }
386
+
387
+ .wps-postbox-veronalabs img {
388
+ width: 116px;
389
  }
includes/classes/class-wp-statistics-rest.php CHANGED
@@ -110,7 +110,7 @@ class WP_Statistics_Rest {
110
  if ( isset( $_POST[ self::_POST ] ) ) {
111
  $data = wp_unslash( $_POST[ self::_POST ] );
112
 
113
- if ( is_object( $data ) ) {
114
  $data = json_decode( $data, true );
115
  }
116
 
110
  if ( isset( $_POST[ self::_POST ] ) ) {
111
  $data = wp_unslash( $_POST[ self::_POST ] );
112
 
113
+ if ( ! empty( $data ) && is_string( $data ) && is_array( json_decode( $data, true ) ) && json_last_error() == 0 ) {
114
  $data = json_decode( $data, true );
115
  }
116
 
includes/log/log.php CHANGED
@@ -21,7 +21,7 @@ if ( is_array( $widget_order ) && count( $widget_order ) > 2 ) {
21
  // Add the about box here as metaboxes added on the actual page load cannot be closed.
22
  add_meta_box(
23
  'wps_about_postbox',
24
- sprintf( __( 'About WP Statistics Version %s', 'wp-statistics' ), WP_Statistics::$reg['version'] ),
25
  'wp_statistics_generate_overview_postbox_contents',
26
  $WP_Statistics->menu_slugs['overview'],
27
  'side',
21
  // Add the about box here as metaboxes added on the actual page load cannot be closed.
22
  add_meta_box(
23
  'wps_about_postbox',
24
+ sprintf( __( 'WP Statistics - Version %s', 'wp-statistics' ), WP_Statistics::$reg['version'] ),
25
  'wp_statistics_generate_overview_postbox_contents',
26
  $WP_Statistics->menu_slugs['overview'],
27
  'side',
includes/log/widgets/about.php CHANGED
@@ -1,35 +1,25 @@
1
  <?php
2
  function wp_statistics_generate_about_postbox_content() {
3
-
4
- global $wpdb, $WP_Statistics;
5
  ?>
6
  <div style="text-align: center;">
7
- <a href="http://wp-statistics.com" target="_blank"><img
8
- src="<?php echo plugins_url( 'wp-statistics/assets/images/logo-250.png' ); ?>"></a>
9
  </div>
10
 
11
  <div id="about-links" style="text-align: center;">
12
- <p><a href="http://wp-statistics.com" target="_blank"><?php _e( 'Website', 'wp-statistics' ); ?></a></p>
13
- | <p>
14
- <a href="https://wordpress.org/support/plugin/wp-statistics/reviews/?rate=5#new-post" target="_blank"><?php _e(
15
- 'Rate and Review',
16
- 'wp-statistics'
17
- ); ?></a>
18
- </p>
19
  <?php
20
- if ( current_user_can(
21
- wp_statistics_validate_capability( $WP_Statistics->get_option( 'manage_capability', 'manage_options' ) )
22
- ) ) {
23
  ?>
24
- | <p>
25
- <a href="?page=<?php echo WP_Statistics::$page['settings']; ?>&tab=about"><?php _e(
26
- 'More Information',
27
- 'wp-statistics'
28
- ); ?></a>
29
- </p>
30
  <?php
31
  }
32
  ?>
 
 
 
33
  </div>
34
  <?php
35
  }
1
  <?php
2
  function wp_statistics_generate_about_postbox_content() {
3
+ global $WP_Statistics;
 
4
  ?>
5
  <div style="text-align: center;">
6
+ <a href="https://wp-statistics.com" target="_blank"><img src="<?php echo plugins_url( 'wp-statistics/assets/images/logo-250.png' ); ?>"></a>
 
7
  </div>
8
 
9
  <div id="about-links" style="text-align: center;">
10
+ <p><a href="https://wp-statistics.com" target="_blank"><?php _e( 'Website', 'wp-statistics' ); ?></a></p>
11
+ | <p><a href="https://wordpress.org/support/plugin/wp-statistics/reviews/?rate=5#new-post" target="_blank"><?php _e( 'Rate and Review', 'wp-statistics' ); ?></a></p>
 
 
 
 
 
12
  <?php
13
+ if ( current_user_can( wp_statistics_validate_capability( $WP_Statistics->get_option( 'manage_capability', 'manage_options' ) ) ) ) {
 
 
14
  ?>
15
+ | <p><a href="?page=<?php echo WP_Statistics::$page['settings']; ?>&tab=about"><?php _e( 'More Information', 'wp-statistics' ); ?></a></p>
16
+ | <p><a href="admin.php?page=wps_welcome"><?php _e( 'What’s New', 'wp-statistics' ); ?>?</a></p>
 
 
 
 
17
  <?php
18
  }
19
  ?>
20
+ <div class="wps-postbox-veronalabs">
21
+ <a href="https://veronalabs.com" target="_blank" title="<?php _e('Power by VeronaLabs', 'wp-statistics'); ?>"><img src="https://veronalabs.com/wp-content/themes/veronalabs.com/assets/images/logo.svg"/></a>
22
+ </div>
23
  </div>
24
  <?php
25
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://wp-statistics.com/donate/
4
  Tags: analytics, wordpress analytics, stats, statistics, visit, visitors, hits, chart, browser, today, yesterday, week, month, year, total, post, page, sidebar, google, live visit, search word, agent, google analytics, webmasters, google webmasters, geoip, location
5
  Requires at least: 3.0
6
  Tested up to: 5.0
7
- Stable tag: 12.5.5
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -116,6 +116,9 @@ http://yourwebsite.com/wp-json/wpstatistics/v1
116
  To register, go to the Permalink page and update the permalink with press Save Changes.
117
 
118
  == Changelog ==
 
 
 
119
  = 12.5.5 =
120
  * Improved: The WP-Statistics Metaboxes for Gutenberg!
121
  * Improved: The `params()` method.
4
  Tags: analytics, wordpress analytics, stats, statistics, visit, visitors, hits, chart, browser, today, yesterday, week, month, year, total, post, page, sidebar, google, live visit, search word, agent, google analytics, webmasters, google webmasters, geoip, location
5
  Requires at least: 3.0
6
  Tested up to: 5.0
7
+ Stable tag: 12.5.6
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
116
  To register, go to the Permalink page and update the permalink with press Save Changes.
117
 
118
  == Changelog ==
119
+ = 12.5.6 =
120
+ * Fixed: Counting stats issue in Cache mode.
121
+
122
  = 12.5.5 =
123
  * Improved: The WP-Statistics Metaboxes for Gutenberg!
124
  * Improved: The `params()` method.
wp-statistics.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WP Statistics
4
  * Plugin URI: https://wp-statistics.com/
5
  * Description: Complete WordPress Analytics and Statistics for your site!
6
- * Version: 12.5.5
7
  * Author: Verona Labs
8
  * Author URI: http://veronalabs.com/
9
  *
3
  * Plugin Name: WP Statistics
4
  * Plugin URI: https://wp-statistics.com/
5
  * Description: Complete WordPress Analytics and Statistics for your site!
6
+ * Version: 12.5.6
7
  * Author: Verona Labs
8
  * Author URI: http://veronalabs.com/
9
  *