Version Description
Removed deprecated function calls
Download this release
Release Info
Developer | StatCounter |
Plugin | StatCounter – Free Real Time Visitor Stats |
Version | 1.6.6 |
Comparing to | |
See all releases |
Code changes from version 1.6.5 to 1.6.6
- StatCounter-Wordpress-Plugin.php +5 -5
- readme.txt +14 -4
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
|
@@ -21,9 +21,9 @@ define("sc_security_default", "" , true);
|
|
21 |
define("sc_position_default", "footer", true);
|
22 |
|
23 |
// Create the default key and status
|
24 |
-
add_option(key_sc_project, sc_project_default
|
25 |
-
add_option(key_sc_security, sc_security_default
|
26 |
-
add_option("sc_invisible", "0"
|
27 |
|
28 |
// Create a option page for settings
|
29 |
add_action('admin_menu' , 'add_sc_option_page' );
|
@@ -66,7 +66,7 @@ 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',
|
70 |
}
|
71 |
|
72 |
function sc_options_page() {
|
1 |
<?php
|
2 |
/*
|
3 |
* Plugin Name: Official StatCounter Plugin
|
4 |
+
* Version: 1.6.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
|
21 |
define("sc_position_default", "footer", true);
|
22 |
|
23 |
// Create the default key and status
|
24 |
+
add_option(key_sc_project, sc_project_default);
|
25 |
+
add_option(key_sc_security, sc_security_default);
|
26 |
+
add_option("sc_invisible", "0");
|
27 |
|
28 |
// Create a option page for settings
|
29 |
add_action('admin_menu' , 'add_sc_option_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() {
|
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: 3.
|
7 |
-
Stable tag: 1.6.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -70,6 +70,15 @@ To activate the StatCounter service for your WordPress site:
|
|
70 |
|
71 |
== Changelog ==
|
72 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
= 1.6.3 =
|
74 |
* Bug fix to prevent user entry of whitespace characters for Project ID and Security Code
|
75 |
|
@@ -100,6 +109,9 @@ To activate the StatCounter service for your WordPress site:
|
|
100 |
|
101 |
== Upgrade Notice ==
|
102 |
|
|
|
|
|
|
|
103 |
= 1.6.5 =
|
104 |
Modified url used for dashboard to not include project id when it has not been set.
|
105 |
|
@@ -113,5 +125,3 @@ Bug fix to prevent user entry of whitespace characters for Project ID and Securi
|
|
113 |
Upgrade to allow for fully functioning PayPal upgrade options.
|
114 |
|
115 |
|
116 |
-
|
117 |
-
|
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: 3.9
|
7 |
+
Stable tag: 1.6.6
|
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.6 =
|
74 |
+
Removed deprecated function calls
|
75 |
+
|
76 |
+
= 1.6.5 =
|
77 |
+
Modified url used for dashboard to not include project id when it has not been set.
|
78 |
+
|
79 |
+
= 1.6.4 =
|
80 |
+
Improved UI to give error message in dashboard when no project id has been set
|
81 |
+
|
82 |
= 1.6.3 =
|
83 |
* Bug fix to prevent user entry of whitespace characters for Project ID and Security Code
|
84 |
|
109 |
|
110 |
== Upgrade Notice ==
|
111 |
|
112 |
+
= 1.6.6 =
|
113 |
+
Removed deprecated function calls
|
114 |
+
|
115 |
= 1.6.5 =
|
116 |
Modified url used for dashboard to not include project id when it has not been set.
|
117 |
|
125 |
Upgrade to allow for fully functioning PayPal upgrade options.
|
126 |
|
127 |
|
|
|
|