Count per Day - Version 1.2.1

Version Description

Download this release

Release Info

Developer Tom Braider
Plugin Icon 128x128 Count per Day
Version 1.2.1
Comparing to
See all releases

Code changes from version 1.2 to 1.2.1

Files changed (2) hide show
  1. counter.php +3 -3
  2. readme.txt +5 -1
counter.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Count Per Day
4
  Plugin URI: http://www.tomsdimension.de/wp-plugins/count-per-day
5
  Description: Counter, shows reads per page; today, yesterday, last week, last months ... on dashboard.
6
- Version: 1.2
7
  License: GPL
8
  Author: Tom Braider
9
  Author URI: http://www.tomsdimension.de
@@ -50,10 +50,10 @@ function cpdCount()
50
 
51
  $page = 0;
52
  // Post-ID finden
53
- if (have_posts()) : while (have_posts()) : the_post();
54
  $page = get_the_ID();
55
- break;
56
  endwhile; endif;
 
57
 
58
  $countUser = ( get_option('cpd_user') == 0 && is_user_logged_in() == true ) ? 0 : 1;
59
 
3
  Plugin Name: Count Per Day
4
  Plugin URI: http://www.tomsdimension.de/wp-plugins/count-per-day
5
  Description: Counter, shows reads per page; today, yesterday, last week, last months ... on dashboard.
6
+ Version: 1.2.1
7
  License: GPL
8
  Author: Tom Braider
9
  Author URI: http://www.tomsdimension.de
50
 
51
  $page = 0;
52
  // Post-ID finden
53
+ if (have_posts()) : while ( have_posts() && $page == 0 ) : the_post();
54
  $page = get_the_ID();
 
55
  endwhile; endif;
56
+ rewind_posts();
57
 
58
  $countUser = ( get_option('cpd_user') == 0 && is_user_logged_in() == true ) ? 0 : 1;
59
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.unicef.org
4
  Tags: counter, count, posts, visits, reads
5
  Requires at least: 2.0
6
  Tested up to: 2.5.1
7
- Stable tag: 1.2
8
 
9
  Visit Counter, shows reads per page, visitors today, yesterday, last week, last months and other statistics.
10
 
@@ -111,6 +111,10 @@ _cpdGetUserPerPost( $limit = 0 )_
111
 
112
  **Changelog**
113
 
 
 
 
 
114
  _Version 1.2_
115
 
116
  + Bugfix: tables in DB were not be created every time (seen on mysql < 5)
4
  Tags: counter, count, posts, visits, reads
5
  Requires at least: 2.0
6
  Tested up to: 2.5.1
7
+ Stable tag: 1.2.1
8
 
9
  Visit Counter, shows reads per page, visitors today, yesterday, last week, last months and other statistics.
10
 
111
 
112
  **Changelog**
113
 
114
+ _Version 1.2.1_
115
+
116
+ + Bugfix: Error 404 "Page not found" with "auto count"
117
+
118
  _Version 1.2_
119
 
120
  + Bugfix: tables in DB were not be created every time (seen on mysql < 5)