WP ULike - Version 4.4.2.1

Version Description

  • Fixed: An issue with WordPress 5.5 functions.
Download this release

Release Info

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

Code changes from version 4.4.2 to 4.4.2.1

admin/assets/js/plugins.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! WP ULike - v4.4.2
2
  * https://wpulike.com
3
  * TechnoWich 2020;
4
  */
1
+ /*! WP ULike - v4.4.2.1
2
  * https://wpulike.com
3
  * TechnoWich 2020;
4
  */
assets/js/wp-ulike.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! WP ULike - v4.4.2
2
  * https://wpulike.com
3
  * TechnoWich 2020;
4
  */
1
+ /*! WP ULike - v4.4.2.1
2
  * https://wpulike.com
3
  * TechnoWich 2020;
4
  */
inc/functions/meta.php CHANGED
@@ -221,13 +221,25 @@ if( ! function_exists( 'wp_ulike_update_meta_cache' ) ){
221
  $cache_key = sprintf( 'wp_ulike_%s_meta', $meta_group );
222
  $non_cached_ids = array();
223
  $cache = array();
224
- $cache_values = wp_cache_get_multiple( $object_ids, $cache_key );
225
 
226
- foreach ( $cache_values as $id => $cached_object ) {
227
- if ( false === $cached_object ) {
228
- $non_cached_ids[] = $id;
229
- } else {
230
- $cache[ $id ] = $cached_object;
 
 
 
 
 
 
 
 
 
 
 
 
 
231
  }
232
  }
233
 
221
  $cache_key = sprintf( 'wp_ulike_%s_meta', $meta_group );
222
  $non_cached_ids = array();
223
  $cache = array();
 
224
 
225
+ // wp_cache_get_multiple function is exist only on wp +5.5
226
+ if( function_exists( 'wp_cache_get_multiple' ) ){
227
+ $cache_values = wp_cache_get_multiple( $object_ids, $cache_key );
228
+ foreach ( $cache_values as $id => $cached_object ) {
229
+ if ( false === $cached_object ) {
230
+ $non_cached_ids[] = $id;
231
+ } else {
232
+ $cache[ $id ] = $cached_object;
233
+ }
234
+ }
235
+ } else {
236
+ foreach ( $object_ids as $id ) {
237
+ $cached_object = wp_cache_get( $id, $cache_key );
238
+ if ( false === $cached_object ) {
239
+ $non_cached_ids[] = $id;
240
+ } else {
241
+ $cache[ $id ] = $cached_object;
242
+ }
243
  }
244
  }
245
 
readme.txt CHANGED
@@ -6,7 +6,7 @@ Tags: like, marketing, elementor, user profile, statistics, favorite, rating, bu
6
  Requires PHP: 5.6
7
  Requires at least: 5.0
8
  Tested up to: 5.6
9
- Stable tag: 4.4.2
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -162,6 +162,9 @@ define( 'WP_MEMORY_LIMIT', '256M' );
162
 
163
  == Changelog ==
164
 
 
 
 
165
  = 4.4.2 =
166
  * Added: "SG Optimiser" plugin cache support.
167
  * Added: New option to hide counter box when no votes have been cast.
6
  Requires PHP: 5.6
7
  Requires at least: 5.0
8
  Tested up to: 5.6
9
+ Stable tag: 4.4.2.1
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
162
 
163
  == Changelog ==
164
 
165
+ = 4.4.2.1 =
166
+ * Fixed: An issue with WordPress 5.5 functions.
167
+
168
  = 4.4.2 =
169
  * Added: "SG Optimiser" plugin cache support.
170
  * Added: New option to hide counter box when no votes have been cast.
wp-ulike.php CHANGED
@@ -10,7 +10,7 @@
10
  * Plugin Name: WP ULike
11
  * Plugin URI: https://wpulike.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
12
  * Description: WP ULike plugin allows to integrate a beautiful Ajax Like Button into your wordPress website to allow your visitors to like and unlike pages, posts, comments AND buddypress activities. Its very simple to use and supports many options.
13
- * Version: 4.4.2
14
  * Author: TechnoWich
15
  * Author URI: https://technowich.com/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
16
  * Text Domain: wp-ulike
@@ -46,7 +46,7 @@ if ( defined( 'WP_INSTALLING' ) && WP_INSTALLING ) {
46
 
47
  // Do not change these values
48
  define( 'WP_ULIKE_PLUGIN_URI' , 'https://wpulike.com/' );
49
- define( 'WP_ULIKE_VERSION' , '4.4.2' );
50
  define( 'WP_ULIKE_DB_VERSION' , '2.1' );
51
  define( 'WP_ULIKE_SLUG' , 'wp-ulike' );
52
  define( 'WP_ULIKE_NAME' , __( 'WP ULike', WP_ULIKE_SLUG ));
10
  * Plugin Name: WP ULike
11
  * Plugin URI: https://wpulike.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
12
  * Description: WP ULike plugin allows to integrate a beautiful Ajax Like Button into your wordPress website to allow your visitors to like and unlike pages, posts, comments AND buddypress activities. Its very simple to use and supports many options.
13
+ * Version: 4.4.2.1
14
  * Author: TechnoWich
15
  * Author URI: https://technowich.com/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
16
  * Text Domain: wp-ulike
46
 
47
  // Do not change these values
48
  define( 'WP_ULIKE_PLUGIN_URI' , 'https://wpulike.com/' );
49
+ define( 'WP_ULIKE_VERSION' , '4.4.2.1' );
50
  define( 'WP_ULIKE_DB_VERSION' , '2.1' );
51
  define( 'WP_ULIKE_SLUG' , 'wp-ulike' );
52
  define( 'WP_ULIKE_NAME' , __( 'WP ULike', WP_ULIKE_SLUG ));