kk Star Ratings - Version 1.7.2

Version Description

  • Fix: This is a fix for the previous version (1.7.1). The plugin was not tagged with the latest files. Now it is fixed.

=

Download this release

Release Info

Developer bhittani
Plugin Icon 128x128 kk Star Ratings
Version 1.7.2
Comparing to
See all releases

Code changes from version 1.7.1 to 1.7.2

Files changed (2) hide show
  1. kk-ratings.php +2 -16
  2. readme.txt +4 -1
kk-ratings.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: kk Star Ratings
5
  Plugin URI: http://wakeusup.com/2011/05/kk-star-ratings/
6
  Description: A clean, animated and sweat ratings feature for your blog <strong>With kk Star Ratings, you can allow your blog posts to be rated by your blog visitors</strong>. <strong>It also includes a widget</strong> which you can add to your sidebar to show the top rated post. There are some useful options you can set to customize this plugin. You can do all that after installing and activating the plugin and then visiting the <a href="options-general.php?page=kk-ratings_options">Plugin Settings</a>.
7
- Version: 1.7.1
8
  Author: Kamal Khan
9
  Author URI: http://bhittani.com
10
  License: GPLv2 or later
@@ -45,18 +45,6 @@ if(!class_exists('kk_Ratings') && !isset($kkratings) && !function_exists('kk_sta
45
  // set manual mode to false
46
  $this->manual_mode = false;
47
  }
48
- /** function/method [1.7.1]
49
- * Usage: start the session if not started.
50
- * Arg(0): null
51
- * Return: void
52
- */
53
- public function session()
54
- {
55
- if (!session_id())
56
- {
57
- session_start();
58
- }
59
- }
60
  /** function/method
61
  * Usage: return file path relative to current plugin directory
62
  * Arg(1): string
@@ -80,10 +68,9 @@ if(!class_exists('kk_Ratings') && !isset($kkratings) && !function_exists('kk_sta
80
  $params['nonce'] = $nonce; //for security
81
  $params['path'] = $this->file_path('').'/';
82
  $params['pos'] = $this->options['position'];
83
- $_SESSION['kksr_root'] = urlencode(ABSPATH); // v 1.7.1
84
 
85
  wp_enqueue_script('jquery');
86
- wp_enqueue_script($this->plugin_id.'_js', $this->file_path($this->js_file), array('jquery') );
87
  wp_localize_script($this->plugin_id.'_js', str_replace('-', '_', $this->plugin_id).'_settings', $params);
88
  }
89
  }
@@ -351,7 +338,6 @@ if(!class_exists('kk_Ratings') && !isset($kkratings) && !function_exists('kk_sta
351
 
352
  // Instantiate the plugin
353
  $kkratings = new kk_Ratings('kk-ratings');
354
- if(!is_admin()) { add_action('init', array($kkratings, 'session')); }
355
  register_activation_hook(__FILE__, array($kkratings, 'activate'));
356
  add_action('wp_head', array($kkratings, 'css'));
357
  add_action('wp_print_scripts', array($kkratings, 'js'));
4
  Plugin Name: kk Star Ratings
5
  Plugin URI: http://wakeusup.com/2011/05/kk-star-ratings/
6
  Description: A clean, animated and sweat ratings feature for your blog <strong>With kk Star Ratings, you can allow your blog posts to be rated by your blog visitors</strong>. <strong>It also includes a widget</strong> which you can add to your sidebar to show the top rated post. There are some useful options you can set to customize this plugin. You can do all that after installing and activating the plugin and then visiting the <a href="options-general.php?page=kk-ratings_options">Plugin Settings</a>.
7
+ Version: 1.7.2
8
  Author: Kamal Khan
9
  Author URI: http://bhittani.com
10
  License: GPLv2 or later
45
  // set manual mode to false
46
  $this->manual_mode = false;
47
  }
 
 
 
 
 
 
 
 
 
 
 
 
48
  /** function/method
49
  * Usage: return file path relative to current plugin directory
50
  * Arg(1): string
68
  $params['nonce'] = $nonce; //for security
69
  $params['path'] = $this->file_path('').'/';
70
  $params['pos'] = $this->options['position'];
 
71
 
72
  wp_enqueue_script('jquery');
73
+ wp_enqueue_script($this->plugin_id.'_js', $this->file_path($this->js_file), array('jquery'), '1.7.2' );
74
  wp_localize_script($this->plugin_id.'_js', str_replace('-', '_', $this->plugin_id).'_settings', $params);
75
  }
76
  }
338
 
339
  // Instantiate the plugin
340
  $kkratings = new kk_Ratings('kk-ratings');
 
341
  register_activation_hook(__FILE__, array($kkratings, 'activate'));
342
  add_action('wp_head', array($kkratings, 'css'));
343
  add_action('wp_print_scripts', array($kkratings, 'js'));
readme.txt CHANGED
@@ -11,7 +11,7 @@ Requires at least: 3.0
11
 
12
  Tested up to: 3.3.2
13
 
14
- Stable tag: 1.7.1
15
 
16
 
17
  kk Star Ratings allows blog visitors to involve and interact more effectively with your website by rating posts.
@@ -122,4 +122,7 @@ This may have occured to some users with previous versions of the plugin. It has
122
  = 1.7.1 =
123
  * Security Fix: Fixed a security issue in the ajax request for the file inclusion risk. This is a recommended update for all users.
124
 
 
 
 
125
  == Upgrade Notice ==
11
 
12
  Tested up to: 3.3.2
13
 
14
+ Stable tag: 1.7.2
15
 
16
 
17
  kk Star Ratings allows blog visitors to involve and interact more effectively with your website by rating posts.
122
  = 1.7.1 =
123
  * Security Fix: Fixed a security issue in the ajax request for the file inclusion risk. This is a recommended update for all users.
124
 
125
+ = 1.7.2 =
126
+ * Fix: This is a fix for the previous version (1.7.1). The plugin was not tagged with the latest files. Now it is fixed.
127
+
128
  == Upgrade Notice ==