WP Statistics - Version 2.2.1

Version Description

  • Solving drap uploader problem in media-new.php.
Download this release

Release Info

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

Code changes from version 2.2.0 to 2.2.1

Files changed (2) hide show
  1. readme.txt +7 -1
  2. wp-statistics.php +9 -6
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://iran98.org/
4
  Tags: statistics, stats, blog, today, yesterday, week, month, yearl, total, post, page, sidebar, summary, feedburner, hits, pagerank, google, alexa, live visit
5
  Requires at least: 3.0
6
  Tested up to: 3.3
7
- Stable tag: 2.2.0
8
 
9
  Summary statistics of blog.
10
 
@@ -115,6 +115,9 @@ a plugin for displaying Summary statistics of blog.
115
  1. Screen shot (screenshot-2.png) in WP-Statistics Widget Page
116
 
117
  == Upgrade Notice ==
 
 
 
118
  = 2.2.0 =
119
  * Added statistics to admin bar wordpress 3.3.
120
  * Added Uninstall for remove data and table from database.
@@ -171,6 +174,9 @@ a plugin for displaying Summary statistics of blog.
171
  * Start plugin
172
 
173
  == Changelog ==
 
 
 
174
  = 2.2.0 =
175
  * Added statistics to admin bar wordpress 3.3.
176
  * Added Uninstall for remove data and table from database.
4
  Tags: statistics, stats, blog, today, yesterday, week, month, yearl, total, post, page, sidebar, summary, feedburner, hits, pagerank, google, alexa, live visit
5
  Requires at least: 3.0
6
  Tested up to: 3.3
7
+ Stable tag: 2.2.1
8
 
9
  Summary statistics of blog.
10
 
115
  1. Screen shot (screenshot-2.png) in WP-Statistics Widget Page
116
 
117
  == Upgrade Notice ==
118
+ = 2.2.1 =
119
+ * Solving drap uploader problem in media-new.php.
120
+
121
  = 2.2.0 =
122
  * Added statistics to admin bar wordpress 3.3.
123
  * Added Uninstall for remove data and table from database.
174
  * Start plugin
175
 
176
  == Changelog ==
177
+ = 2.2.1 =
178
+ * Solving drap uploader problem in media-new.php.
179
+
180
  = 2.2.0 =
181
  * Added statistics to admin bar wordpress 3.3.
182
  * Added Uninstall for remove data and table from database.
wp-statistics.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP-Statistics
4
  Plugin URI: http://iran98.org/category/wordpress/wp-statistics/
5
  Description: Summary statistics of blog.
6
- Version: 2.2.0
7
  Author: Mostafa Soufi
8
  Author URI: http://iran98.org/
9
  License: GPL2
@@ -12,7 +12,7 @@ License: GPL2
12
  load_plugin_textdomain('wp_statistics','wp-content/plugins/wp-statistics/langs');
13
 
14
  add_action('admin_bar_menu', 'wp_statistics_menubar', 20);
15
- add_action('admin_enqueue_scripts', 'wp_statistics_js');
16
  add_action('admin_menu', 'wp_statistics_menu');
17
  add_action("plugins_loaded", "wp_statistics_widget");
18
 
@@ -34,10 +34,12 @@ License: GPL2
34
  $get_useragent = $_SERVER['HTTP_USER_AGENT'];
35
  $get_userip = $_SERVER['REMOTE_ADDR'];
36
 
37
- function wp_statistics_js() {
38
- wp_deregister_script('jquery');
39
- wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js');
40
- wp_enqueue_script('jquery');
 
 
41
  }
42
 
43
  function wp_statistics_menubar() {
@@ -423,6 +425,7 @@ License: GPL2
423
  register_setting('wp_statistics_options', 'pagerank_alexa_url');
424
  }} ?>
425
 
 
426
  <script type="text/javascript">
427
  $(document).ready(function(){
428
  $("span#increase_total_visit").click(function(){
3
  Plugin Name: WP-Statistics
4
  Plugin URI: http://iran98.org/category/wordpress/wp-statistics/
5
  Description: Summary statistics of blog.
6
+ Version: 2.2.1
7
  Author: Mostafa Soufi
8
  Author URI: http://iran98.org/
9
  License: GPL2
12
  load_plugin_textdomain('wp_statistics','wp-content/plugins/wp-statistics/langs');
13
 
14
  add_action('admin_bar_menu', 'wp_statistics_menubar', 20);
15
+ add_action('admin_enqueue_scripts', 'wp_statistics_js', 2000);
16
  add_action('admin_menu', 'wp_statistics_menu');
17
  add_action("plugins_loaded", "wp_statistics_widget");
18
 
34
  $get_useragent = $_SERVER['HTTP_USER_AGENT'];
35
  $get_userip = $_SERVER['REMOTE_ADDR'];
36
 
37
+ function wp_statistics_js($hook) {
38
+ if(in_array($hook, array('widgets.php'))){
39
+ wp_deregister_script('jquery');
40
+ wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js');
41
+ wp_enqueue_script('jquery');
42
+ }
43
  }
44
 
45
  function wp_statistics_menubar() {
425
  register_setting('wp_statistics_options', 'pagerank_alexa_url');
426
  }} ?>
427
 
428
+ <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js" type="text/javascript"></script>
429
  <script type="text/javascript">
430
  $(document).ready(function(){
431
  $("span#increase_total_visit").click(function(){