StatCounter – Free Real Time Visitor Stats - Version 1.6.9

Version Description

Fixed small bug with form

Download this release

Release Info

Developer StatCounter
Plugin Icon StatCounter – Free Real Time Visitor Stats
Version 1.6.9
Comparing to
See all releases

Code changes from version 1.6.8 to 1.6.9

Files changed (2) hide show
  1. StatCounter-Wordpress-Plugin.php +4 -4
  2. readme.txt +8 -2
StatCounter-Wordpress-Plugin.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  * Plugin Name: Official StatCounter Plugin
4
- * Version: 1.6.8
5
  * Plugin URI: http://statcounter.com/
6
  * Description: Adds the StatCounter tracking code to your blog. <br>To get setup: 1) Activate this plugin 2) Enter your StatCounter Project ID and Security Code in the <a href="options-general.php?page=StatCounter-Wordpress-Plugin.php"><strong>options page</strong></a>.
7
  * Author: Aodhan Cullen
@@ -66,13 +66,12 @@ function statcounter_reports_page() {
66
  // Hook in the options page function
67
  function add_sc_option_page() {
68
  global $wpdb;
69
- add_options_page('StatCounter Options', 'StatCounter', "edit_plugins", basename(__FILE__), 'sc_options_page');
70
  }
71
 
72
  function sc_options_page() {
73
  // If we are a postback, store the options
74
- if ( isset( $_POST['info_update'] ) ) {
75
- check_admin_referer();
76
 
77
  // Update the Project ID
78
  $sc_project = trim($_POST[key_sc_project]);
@@ -112,6 +111,7 @@ function sc_options_page() {
112
  ?>
113
 
114
  <form method="post" action="options-general.php?page=StatCounter-Wordpress-Plugin.php">
 
115
  <div class="wrap">
116
  <?php if (get_option( key_sc_project ) == "0") { ?>
117
  <div style="margin:10px auto; border:3px #f00 solid; background-color:#fdd; color:#000; padding:10px; text-align:center;">
1
  <?php
2
  /*
3
  * Plugin Name: Official StatCounter Plugin
4
+ * Version: 1.6.9
5
  * Plugin URI: http://statcounter.com/
6
  * Description: Adds the StatCounter tracking code to your blog. <br>To get setup: 1) Activate this plugin 2) Enter your StatCounter Project ID and Security Code in the <a href="options-general.php?page=StatCounter-Wordpress-Plugin.php"><strong>options page</strong></a>.
7
  * Author: Aodhan Cullen
66
  // Hook in the options page function
67
  function add_sc_option_page() {
68
  global $wpdb;
69
+ add_options_page('StatCounter Options', 'StatCounter', "manage_options", basename(__FILE__), 'sc_options_page');
70
  }
71
 
72
  function sc_options_page() {
73
  // If we are a postback, store the options
74
+ if ( isset( $_POST['info_update'] ) && check_admin_referer( 'update_sc_project_nonce', 'sc_project_nonce' ) ) {
 
75
 
76
  // Update the Project ID
77
  $sc_project = trim($_POST[key_sc_project]);
111
  ?>
112
 
113
  <form method="post" action="options-general.php?page=StatCounter-Wordpress-Plugin.php">
114
+ <?php wp_nonce_field( 'update_sc_project_nonce', 'sc_project_nonce' ); ?>
115
  <div class="wrap">
116
  <?php if (get_option( key_sc_project ) == "0") { ?>
117
  <div style="margin:10px auto; border:3px #f00 solid; background-color:#fdd; color:#000; padding:10px; text-align:center;">
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Aodhan Cullen
3
  Donate link: http://statcounter.com/
4
  Tags: web, statistics, stats, hit, counter, visitor, ip, tracker, analytics
5
  Requires at least: 2.0.2
6
- Tested up to: 4.0
7
- Stable tag: 1.6.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -70,6 +70,9 @@ To activate the StatCounter service for your WordPress site:
70
 
71
  == Changelog ==
72
 
 
 
 
73
  = 1.6.8 =
74
  Addd StatCounter https compatible code
75
 
@@ -115,6 +118,9 @@ Improved UI to give error message in dashboard when no project id has been set
115
 
116
  == Upgrade Notice ==
117
 
 
 
 
118
  = 1.6.8 =
119
  Addd StatCounter https compatible code
120
 
3
  Donate link: http://statcounter.com/
4
  Tags: web, statistics, stats, hit, counter, visitor, ip, tracker, analytics
5
  Requires at least: 2.0.2
6
+ Tested up to: 4.1
7
+ Stable tag: 1.6.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
70
 
71
  == Changelog ==
72
 
73
+ = 1.6.9 =
74
+ Fixed small bug with form
75
+
76
  = 1.6.8 =
77
  Addd StatCounter https compatible code
78
 
118
 
119
  == Upgrade Notice ==
120
 
121
+ = 1.6.9 =
122
+ Fixed small bug with form
123
+
124
  = 1.6.8 =
125
  Addd StatCounter https compatible code
126