Version Description
- Bug fix to prevent user entry of whitespace characters for Project ID and Security Code
Download this release
Release Info
Developer | StatCounter |
Plugin | StatCounter – Free Real Time Visitor Stats |
Version | 1.6.3 |
Comparing to | |
See all releases |
Code changes from version 1.6.2 to 1.6.3
- StatCounter-Wordpress-Plugin.php +9 -6
- readme.txt +7 -2
StatCounter-Wordpress-Plugin.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
* Plugin Name: Official StatCounter Plugin
|
4 |
-
* Version: 1.6.
|
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
|
@@ -71,21 +71,24 @@ function sc_options_page() {
|
|
71 |
check_admin_referer();
|
72 |
|
73 |
// Update the Project ID
|
74 |
-
$sc_project = $_POST[key_sc_project];
|
75 |
-
if ($sc_project == '')
|
76 |
$sc_project = sc_project_default;
|
|
|
77 |
update_option(key_sc_project, $sc_project);
|
78 |
|
79 |
// Update the Security ID
|
80 |
-
$sc_security = $_POST[key_sc_security];
|
81 |
-
if ($sc_security =='')
|
82 |
$sc_security = sc_security_default;
|
|
|
83 |
update_option(key_sc_security, $sc_security);
|
84 |
|
85 |
// Update the position
|
86 |
$sc_position = $_POST[key_sc_position];
|
87 |
-
if (($sc_position != 'header') && ($sc_position != 'footer'))
|
88 |
$sc_position = sc_position_default;
|
|
|
89 |
|
90 |
update_option(key_sc_position, $sc_position);
|
91 |
|
1 |
<?php
|
2 |
/*
|
3 |
* Plugin Name: Official StatCounter Plugin
|
4 |
+
* Version: 1.6.3
|
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
|
71 |
check_admin_referer();
|
72 |
|
73 |
// Update the Project ID
|
74 |
+
$sc_project = trim($_POST[key_sc_project]);
|
75 |
+
if ($sc_project == '') {
|
76 |
$sc_project = sc_project_default;
|
77 |
+
}
|
78 |
update_option(key_sc_project, $sc_project);
|
79 |
|
80 |
// Update the Security ID
|
81 |
+
$sc_security = trim($_POST[key_sc_security]);
|
82 |
+
if ($sc_security =='') {
|
83 |
$sc_security = sc_security_default;
|
84 |
+
}
|
85 |
update_option(key_sc_security, $sc_security);
|
86 |
|
87 |
// Update the position
|
88 |
$sc_position = $_POST[key_sc_position];
|
89 |
+
if (($sc_position != 'header') && ($sc_position != 'footer')) {
|
90 |
$sc_position = sc_position_default;
|
91 |
+
}
|
92 |
|
93 |
update_option(key_sc_position, $sc_position);
|
94 |
|
readme.txt
CHANGED
@@ -4,8 +4,7 @@ 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: 3.3.1
|
7 |
-
Stable tag: 1.6.
|
8 |
-
|
9 |
|
10 |
StatCounter.com powered real-time detailed stats about the visitors to your blog.
|
11 |
|
@@ -69,6 +68,9 @@ To activate the StatCounter service for your WordPress site:
|
|
69 |
|
70 |
== Changelog ==
|
71 |
|
|
|
|
|
|
|
72 |
= 1.6.2 =
|
73 |
* Bug fix for Upgrade with PayPal link.
|
74 |
|
@@ -96,5 +98,8 @@ To activate the StatCounter service for your WordPress site:
|
|
96 |
|
97 |
== Upgrade Notice ==
|
98 |
|
|
|
|
|
|
|
99 |
= 1.6.2 =
|
100 |
Upgrade to allow for fully functioning PayPal upgrade options.
|
4 |
Tags: web, statistics, stats, hit, counter, visitor, ip, tracker, analytics
|
5 |
Requires at least: 2.0.2
|
6 |
Tested up to: 3.3.1
|
7 |
+
Stable tag: 1.6.3
|
|
|
8 |
|
9 |
StatCounter.com powered real-time detailed stats about the visitors to your blog.
|
10 |
|
68 |
|
69 |
== Changelog ==
|
70 |
|
71 |
+
= 1.6.3 =
|
72 |
+
* Bug fix to prevent user entry of whitespace characters for Project ID and Security Code
|
73 |
+
|
74 |
= 1.6.2 =
|
75 |
* Bug fix for Upgrade with PayPal link.
|
76 |
|
98 |
|
99 |
== Upgrade Notice ==
|
100 |
|
101 |
+
= 1.6.3 =
|
102 |
+
Bug fix to prevent user entry of whitespace characters for Project ID and Security Code
|
103 |
+
|
104 |
= 1.6.2 =
|
105 |
Upgrade to allow for fully functioning PayPal upgrade options.
|