WP ULike - Version 4.5.8

Version Description

  • Fixed: Minor bug fixes.
Download this release

Release Info

Developer alimir
Plugin Icon 128x128 WP ULike
Version 4.5.8
Comparing to
See all releases

Code changes from version 4.5.7.1 to 4.5.8

admin/assets/js/plugins.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! WP ULike - v4.5.7
2
  * https://wpulike.com
3
  * TechnoWich 2021;
4
  */
1
+ /*! WP ULike - v4.5.8
2
  * https://wpulike.com
3
  * TechnoWich 2021;
4
  */
assets/js/wp-ulike.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! WP ULike - v4.5.7
2
  * https://wpulike.com
3
  * TechnoWich 2021;
4
  */
1
+ /*! WP ULike - v4.5.8
2
  * https://wpulike.com
3
  * TechnoWich 2021;
4
  */
assets/js/wp-ulike.min.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! WP ULike - v4.5.7
2
  * https://wpulike.com
3
  * TechnoWich 2021;
4
  */
1
+ /*! WP ULike - v4.5.8
2
  * https://wpulike.com
3
  * TechnoWich 2021;
4
  */
includes/functions/utilities.php CHANGED
@@ -193,20 +193,20 @@ if( ! function_exists( 'wp_ulike_generate_user_id' ) ){
193
  * @return String
194
  */
195
  function wp_ulike_generate_user_id( $user_ip ) {
 
196
  $client_identifier = $user_ip;
197
 
198
- if( ! empty( $_SERVER['HTTP_USER_AGENT'] ) ){
199
- $client_identifier .= $_SERVER['HTTP_USER_AGENT'];
200
- }
201
- if( ! empty( $_SERVER['HTTP_ACCEPT_LANGUAGE'] ) ){
202
- $client_identifier .= $_SERVER['HTTP_ACCEPT_LANGUAGE'];
 
 
 
203
  }
204
 
205
- // Make numeric hash
206
- $binhash = md5( $client_identifier, true );
207
- $numhash = unpack( 'N2', $binhash );
208
-
209
- return apply_filters( 'wp_ulike_generate_client_identifier', $numhash[1] . $numhash[2], $user_ip );
210
  }
211
  }
212
 
193
  * @return String
194
  */
195
  function wp_ulike_generate_user_id( $user_ip ) {
196
+ // set client identifier based on user ip
197
  $client_identifier = $user_ip;
198
 
199
+ if( wp_ulike_validate_ip( $user_ip ) ) {
200
+ $client_identifier = ip2long( $user_ip );
201
+ } else {
202
+ $binary_val = '';
203
+ foreach ( unpack( 'C*', inet_pton( $user_ip ) ) as $byte ) {
204
+ $binary_val .= str_pad( decbin( $byte ), 8, "0", STR_PAD_LEFT );
205
+ }
206
+ $client_identifier = base_convert( ltrim( $binary_val, '0' ), 2, 10 );
207
  }
208
 
209
+ return apply_filters( 'wp_ulike_generate_client_identifier', $client_identifier, $user_ip );
 
 
 
 
210
  }
211
  }
212
 
readme.txt CHANGED
@@ -6,7 +6,7 @@ Tags: like, marketing, elementor, user profile, rating, favorite, statistics, bu
6
  Requires PHP: 5.6
7
  Requires at least: 5.0
8
  Tested up to: 5.8
9
- Stable tag: 4.5.7.1
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -140,10 +140,13 @@ Yes, WP ULike is compatible with Apache, Nginx, Microsoft IIS et LiteSpeed web s
140
 
141
  == Changelog ==
142
 
 
 
 
143
  = 4.5.7.1 =
144
  * Fixed: Meta table issues.
145
 
146
- = 4.5.7.1 =
147
  * Added: Animated Clapping Template. [PRO]
148
  * Added: New option to limit the number of votes that can be submitted by a user. (only for no-limit logging method)
149
  * Added: An option to change the permalink structure of user profiles. [PRO]
6
  Requires PHP: 5.6
7
  Requires at least: 5.0
8
  Tested up to: 5.8
9
+ Stable tag: 4.5.8
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
140
 
141
  == Changelog ==
142
 
143
+ = 4.5.8 =
144
+ * Fixed: Minor bug fixes.
145
+
146
  = 4.5.7.1 =
147
  * Fixed: Meta table issues.
148
 
149
+ = 4.5.7 =
150
  * Added: Animated Clapping Template. [PRO]
151
  * Added: New option to limit the number of votes that can be submitted by a user. (only for no-limit logging method)
152
  * Added: An option to change the permalink structure of user profiles. [PRO]
wp-ulike.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WP ULike
4
  * Plugin URI: https://wpulike.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
5
  * Description: Receiving feedback is crucial as a content creator, but unfortunately, the pieces of content you can collect it on are limited by default. However, with the help of the WP ULike plugin, it is possible to cast voting to any type of content you may have on your website. With outstanding and eye-catching widgets, you can have Like and Dislike Button on all of your content would it be a post, comment, BuddyPress activity, bbPress topics, WooCommerce products, you name it. Now you can feel your users Love for each part of your work.
6
- * Version: 4.5.7.1
7
  * Author: TechnoWich
8
  * Author URI: https://technowich.com/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
9
  * Text Domain: wp-ulike
@@ -27,7 +27,7 @@ if ( ! defined( 'ABSPATH' ) ) {
27
 
28
  // Do not change these values
29
  define( 'WP_ULIKE_PLUGIN_URI' , 'https://wpulike.com/' );
30
- define( 'WP_ULIKE_VERSION' , '4.5.7.1' );
31
  define( 'WP_ULIKE_DB_VERSION' , '2.3' );
32
  define( 'WP_ULIKE_SLUG' , 'wp-ulike' );
33
  define( 'WP_ULIKE_NAME' , __( 'WP ULike', WP_ULIKE_SLUG ) );
3
  * Plugin Name: WP ULike
4
  * Plugin URI: https://wpulike.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
5
  * Description: Receiving feedback is crucial as a content creator, but unfortunately, the pieces of content you can collect it on are limited by default. However, with the help of the WP ULike plugin, it is possible to cast voting to any type of content you may have on your website. With outstanding and eye-catching widgets, you can have Like and Dislike Button on all of your content would it be a post, comment, BuddyPress activity, bbPress topics, WooCommerce products, you name it. Now you can feel your users Love for each part of your work.
6
+ * Version: 4.5.8
7
  * Author: TechnoWich
8
  * Author URI: https://technowich.com/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
9
  * Text Domain: wp-ulike
27
 
28
  // Do not change these values
29
  define( 'WP_ULIKE_PLUGIN_URI' , 'https://wpulike.com/' );
30
+ define( 'WP_ULIKE_VERSION' , '4.5.8' );
31
  define( 'WP_ULIKE_DB_VERSION' , '2.3' );
32
  define( 'WP_ULIKE_SLUG' , 'wp-ulike' );
33
  define( 'WP_ULIKE_NAME' , __( 'WP ULike', WP_ULIKE_SLUG ) );