WP Statistics - Version 12.1.2

Version Description

  • Fixed: Issues in charts css.
Download this release

Release Info

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

Code changes from version 12.1.1 to 12.1.2

assets/css/admin.css CHANGED
@@ -1,12 +1,3 @@
1
- #adminmenu #toplevel_page_wps_overview_page .wp-menu-image:before {
2
- content: "\f184";
3
- }
4
-
5
- #wp-admin-bar-wp-statistic-menu .ab-icon:before {
6
- font-family: "dashicons" !important;
7
- content: "\f184" !important;
8
- }
9
-
10
  .wps-center {
11
  text-align: center;
12
  }
 
 
 
 
 
 
 
 
 
1
  .wps-center {
2
  text-align: center;
3
  }
assets/css/log.css CHANGED
@@ -345,4 +345,8 @@
345
 
346
  .table-stats {
347
  border: 0px none !important;
 
 
 
 
348
  }
345
 
346
  .table-stats {
347
  border: 0px none !important;
348
+ }
349
+
350
+ .wp-statistics-sub-fullwidth {
351
+ float: none;
352
  }
includes/log/authors.php CHANGED
@@ -92,7 +92,7 @@
92
  $visit_total += $stat;
93
  }
94
  ?>
95
- <div class="postbox-container" style="width: 100%; float: left; margin-right:20px">
96
  <div class="metabox-holder">
97
  <div class="meta-box-sortables">
98
  <div class="postbox">
92
  $visit_total += $stat;
93
  }
94
  ?>
95
+ <div class="postbox-container" id="last-log">
96
  <div class="metabox-holder">
97
  <div class="meta-box-sortables">
98
  <div class="postbox">
includes/log/categories.php CHANGED
@@ -77,7 +77,7 @@
77
  $visit_total += $stat;
78
  }
79
  ?>
80
- <div class="postbox-container" style="width: 100%; float: left; margin-right:20px">
81
  <div class="metabox-holder">
82
  <div class="meta-box-sortables">
83
  <div class="postbox">
77
  $visit_total += $stat;
78
  }
79
  ?>
80
+ <div class="postbox-container" id="last-log">
81
  <div class="metabox-holder">
82
  <div class="meta-box-sortables">
83
  <div class="postbox">
includes/log/exclusions.php CHANGED
@@ -158,7 +158,7 @@ foreach ( $excluded_reasons as $reason ) {
158
  <div class="wrap">
159
  <h2><?php _e( 'Exclusions Statistics', 'wp-statistics' ); ?></h2>
160
  <?php wp_statistics_date_range_selector( WP_STATISTICS_EXCLUSIONS_PAGE, $daysToDisplay ); ?>
161
- <div class="postbox-container" style="width: 100%; float: left; margin-right:20px">
162
  <div class="metabox-holder">
163
  <div class="meta-box-sortables">
164
  <div class="postbox">
158
  <div class="wrap">
159
  <h2><?php _e( 'Exclusions Statistics', 'wp-statistics' ); ?></h2>
160
  <?php wp_statistics_date_range_selector( WP_STATISTICS_EXCLUSIONS_PAGE, $daysToDisplay ); ?>
161
+ <div class="postbox-container" id="last-log">
162
  <div class="metabox-holder">
163
  <div class="meta-box-sortables">
164
  <div class="postbox">
includes/log/hit-statistics.php CHANGED
@@ -3,52 +3,51 @@
3
  postboxes.add_postbox_toggles(pagenow);
4
  });
5
  </script>
6
- <div class="wrap">
7
- <h2><?php _e( 'Hit Statistics', 'wp-statistics' ); ?></h2>
8
-
9
- <?php
10
- $daysToDisplay = 20;
11
- if ( array_key_exists( 'hitdays', $_GET ) ) {
12
- $daysToDisplay = intval( $_GET['hitdays'] );
13
- }
14
 
15
- if ( array_key_exists( 'rangestart', $_GET ) ) {
16
- $rangestart = $_GET['rangestart'];
17
- } else {
18
- $rangestart = '';
19
- }
20
- if ( array_key_exists( 'rangeend', $_GET ) ) {
21
- $rangeend = $_GET['rangeend'];
22
- } else {
23
- $rangeend = '';
24
- }
25
 
26
- list( $daysToDisplay, $rangestart_utime, $rangeend_utime ) = wp_statistics_date_range_calculator( $daysToDisplay, $rangestart, $rangeend );
27
- wp_statistics_date_range_selector( WP_STATISTICS_HITS_PAGE, $daysToDisplay );
28
 
29
- $visit_total = 0;
30
- $visitor_total = 0;
31
- $daysInThePast = (int) ( ( time() - $rangeend_utime ) / 86400 );
32
- $visitors = array();
33
- $visits = array();
34
 
35
- for ( $i = $daysToDisplay; $i >= 0; $i -- ) {
36
- $stat = wp_statistics_visit( '-' . (int) ( $i + $daysInThePast ), true );
37
- $visit_total += $stat;
38
- $visits[] = $stat;
39
- }
40
 
41
- for ( $i = $daysToDisplay; $i >= 0; $i -- ) {
42
- $stat = wp_statistics_visitor( '-' . (int) ( $i + $daysInThePast ), true );
43
- $visitor_total += $stat;
44
- $visitors[] = $stat;
45
- }
46
 
47
- for ( $i = $daysToDisplay; $i >= 0; $i -- ) {
48
- $date[] = "'" . $WP_Statistics->Current_Date( 'M j', '-' . $i ) . "'";
49
- }
50
- ?>
51
- <div class="postbox-container" style="width: 100%; float: left; margin-right:20px">
 
 
52
  <div class="metabox-holder">
53
  <div class="meta-box-sortables">
54
  <div class="postbox">
3
  postboxes.add_postbox_toggles(pagenow);
4
  });
5
  </script>
6
+ <?php
7
+ $daysToDisplay = 20;
8
+ if ( array_key_exists( 'hitdays', $_GET ) ) {
9
+ $daysToDisplay = intval( $_GET['hitdays'] );
10
+ }
 
 
 
11
 
12
+ if ( array_key_exists( 'rangestart', $_GET ) ) {
13
+ $rangestart = $_GET['rangestart'];
14
+ } else {
15
+ $rangestart = '';
16
+ }
17
+ if ( array_key_exists( 'rangeend', $_GET ) ) {
18
+ $rangeend = $_GET['rangeend'];
19
+ } else {
20
+ $rangeend = '';
21
+ }
22
 
23
+ list( $daysToDisplay, $rangestart_utime, $rangeend_utime ) = wp_statistics_date_range_calculator( $daysToDisplay, $rangestart, $rangeend );
24
+ wp_statistics_date_range_selector( WP_STATISTICS_HITS_PAGE, $daysToDisplay );
25
 
26
+ $visit_total = 0;
27
+ $visitor_total = 0;
28
+ $daysInThePast = (int) ( ( time() - $rangeend_utime ) / 86400 );
29
+ $visitors = array();
30
+ $visits = array();
31
 
32
+ for ( $i = $daysToDisplay; $i >= 0; $i -- ) {
33
+ $stat = wp_statistics_visit( '-' . (int) ( $i + $daysInThePast ), true );
34
+ $visit_total += $stat;
35
+ $visits[] = $stat;
36
+ }
37
 
38
+ for ( $i = $daysToDisplay; $i >= 0; $i -- ) {
39
+ $stat = wp_statistics_visitor( '-' . (int) ( $i + $daysInThePast ), true );
40
+ $visitor_total += $stat;
41
+ $visitors[] = $stat;
42
+ }
43
 
44
+ for ( $i = $daysToDisplay; $i >= 0; $i -- ) {
45
+ $date[] = "'" . $WP_Statistics->Current_Date( 'M j', '-' . $i ) . "'";
46
+ }
47
+ ?>
48
+ <div class="wrap">
49
+ <h2><?php _e( 'Hit Statistics', 'wp-statistics' ); ?></h2>
50
+ <div class="postbox-container" id="last-log">
51
  <div class="metabox-holder">
52
  <div class="meta-box-sortables">
53
  <div class="postbox">
includes/log/search-statistics.php CHANGED
@@ -49,7 +49,7 @@ for ( $i = $daysToDisplay; $i >= 0; $i -- ) {
49
  <div class="wrap">
50
  <h2><?php _e( 'Search Engine Referral Statistics', 'wp-statistics' ); ?></h2>
51
  <?php wp_statistics_date_range_selector( WP_STATISTICS_SEARCHES_PAGE, $daysToDisplay ); ?>
52
- <div class="postbox-container" style="width: 100%; float: left; margin-right:20px">
53
  <div class="metabox-holder">
54
  <div class="meta-box-sortables">
55
  <div class="postbox">
49
  <div class="wrap">
50
  <h2><?php _e( 'Search Engine Referral Statistics', 'wp-statistics' ); ?></h2>
51
  <?php wp_statistics_date_range_selector( WP_STATISTICS_SEARCHES_PAGE, $daysToDisplay ); ?>
52
+ <div class="postbox-container" id="last-log">
53
  <div class="metabox-holder">
54
  <div class="meta-box-sortables">
55
  <div class="postbox">
includes/log/tags.php CHANGED
@@ -97,7 +97,7 @@
97
  $visit_total += $stat;
98
  }
99
  ?>
100
- <div class="postbox-container" style="width: 100%; float: left; margin-right:20px">
101
  <div class="metabox-holder">
102
  <div class="meta-box-sortables">
103
  <div class="postbox">
97
  $visit_total += $stat;
98
  }
99
  ?>
100
+ <div class="postbox-container" id="last-log">
101
  <div class="metabox-holder">
102
  <div class="meta-box-sortables">
103
  <div class="postbox">
includes/log/top-countries.php CHANGED
@@ -25,10 +25,8 @@ list( $daysToDisplay, $rangestart_utime, $rangeend_utime ) = wp_statistics_date_
25
  ?>
26
  <div class="wrap">
27
  <h2><?php _e( 'Top Countries', 'wp-statistics' ); ?></h2>
28
-
29
  <?php wp_statistics_date_range_selector( WP_STATISTICS_COUNTRIES_PAGE, $daysToDisplay ); ?>
30
-
31
- <div class="postbox-container" id="last-log" style="width: 100%;">
32
  <div class="metabox-holder">
33
  <div class="meta-box-sortables">
34
  <div class="postbox">
25
  ?>
26
  <div class="wrap">
27
  <h2><?php _e( 'Top Countries', 'wp-statistics' ); ?></h2>
 
28
  <?php wp_statistics_date_range_selector( WP_STATISTICS_COUNTRIES_PAGE, $daysToDisplay ); ?>
29
+ <div class="postbox-container" id="last-log">
 
30
  <div class="metabox-holder">
31
  <div class="meta-box-sortables">
32
  <div class="postbox">
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://wp-statistics.com/donate/
4
  Tags: statistics, stats, visit, visitors, chart, browser, blog, today, yesterday, week, month, year, total, post, page, sidebar, summary, hits, pagerank, google, alexa, live visit
5
  Requires at least: 3.0
6
  Tested up to: 4.8
7
- Stable tag: 12.1.1
8
  License: GPL3
9
 
10
  Complete statistics for your WordPress site.
@@ -286,6 +286,9 @@ You may also downgrade to WP Statistics 10.3 as a temporary measure, but no new
286
  This is a security fix, please update immediately.
287
 
288
  == Changelog ==
 
 
 
289
  = 12.1.1 =
290
  * Updated: Admin css and charts height.
291
  * Fixed: Issues in conflict chart script with other libraries.
4
  Tags: statistics, stats, visit, visitors, chart, browser, blog, today, yesterday, week, month, year, total, post, page, sidebar, summary, hits, pagerank, google, alexa, live visit
5
  Requires at least: 3.0
6
  Tested up to: 4.8
7
+ Stable tag: 12.1.2
8
  License: GPL3
9
 
10
  Complete statistics for your WordPress site.
286
  This is a security fix, please update immediately.
287
 
288
  == Changelog ==
289
+ = 12.1.2 =
290
+ * Fixed: Issues in charts css.
291
+
292
  = 12.1.1 =
293
  * Updated: Admin css and charts height.
294
  * Fixed: Issues in conflict chart script with other libraries.
wp-statistics.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WP Statistics
4
  * Plugin URI: http://wp-statistics.com/
5
  * Description: Complete statistics for your WordPress site.
6
- * Version: 12.1.1
7
  * Author: WP-Statistics Team
8
  * Author URI: http://wp-statistics.com/
9
  * Text Domain: wp-statistics
@@ -12,7 +12,7 @@
12
  */
13
 
14
  // These defines are used later for various reasons.
15
- define( 'WP_STATISTICS_VERSION', '12.1.1' );
16
  define( 'WP_STATISTICS_REQUIRED_PHP_VERSION', '5.4.0' );
17
  define( 'WP_STATISTICS_REQUIRED_GEOIP_PHP_VERSION', WP_STATISTICS_REQUIRED_PHP_VERSION );
18
  define( 'WPS_EXPORT_FILE_NAME', 'wp-statistics' );
@@ -458,7 +458,7 @@ function wp_statistics_menu() {
458
  $manage_cap = wp_statistics_validate_capability( $WP_Statistics->get_option( 'manage_capability', 'manage_options' ) );
459
 
460
  // Add the top level menu.
461
- $WP_Statistics->menu_slugs['top'] = add_menu_page( __( 'Statistics', 'wp-statistics' ), __( 'Statistics', 'wp-statistics' ), $read_cap, WP_STATISTICS_OVERVIEW_PAGE, 'wp_statistics_log' );
462
 
463
  // Add the sub items.
464
  $WP_Statistics->menu_slugs['overview'] = add_submenu_page( WP_STATISTICS_OVERVIEW_PAGE, __( 'Overview', 'wp-statistics' ), __( 'Overview', 'wp-statistics' ), $read_cap, WP_STATISTICS_OVERVIEW_PAGE, 'wp_statistics_log' );
3
  * Plugin Name: WP Statistics
4
  * Plugin URI: http://wp-statistics.com/
5
  * Description: Complete statistics for your WordPress site.
6
+ * Version: 12.1.2
7
  * Author: WP-Statistics Team
8
  * Author URI: http://wp-statistics.com/
9
  * Text Domain: wp-statistics
12
  */
13
 
14
  // These defines are used later for various reasons.
15
+ define( 'WP_STATISTICS_VERSION', '12.1.2' );
16
  define( 'WP_STATISTICS_REQUIRED_PHP_VERSION', '5.4.0' );
17
  define( 'WP_STATISTICS_REQUIRED_GEOIP_PHP_VERSION', WP_STATISTICS_REQUIRED_PHP_VERSION );
18
  define( 'WPS_EXPORT_FILE_NAME', 'wp-statistics' );
458
  $manage_cap = wp_statistics_validate_capability( $WP_Statistics->get_option( 'manage_capability', 'manage_options' ) );
459
 
460
  // Add the top level menu.
461
+ $WP_Statistics->menu_slugs['top'] = add_menu_page( __( 'Statistics', 'wp-statistics' ), __( 'Statistics', 'wp-statistics' ), $read_cap, WP_STATISTICS_OVERVIEW_PAGE, 'wp_statistics_log', 'dashicons-chart-pie' );
462
 
463
  // Add the sub items.
464
  $WP_Statistics->menu_slugs['overview'] = add_submenu_page( WP_STATISTICS_OVERVIEW_PAGE, __( 'Overview', 'wp-statistics' ), __( 'Overview', 'wp-statistics' ), $read_cap, WP_STATISTICS_OVERVIEW_PAGE, 'wp_statistics_log' );