YITH WooCommerce Wishlist - Version 3.0.9

Version Description

  • Released on 09 March 2020 =

  • Tweak: use wp_kses_post instead of esc_html for browse wishlist text

  • Update: plugin framework

Download this release

Release Info

Developer yithemes
Plugin Icon 128x128 YITH WooCommerce Wishlist
Version 3.0.9
Comparing to
See all releases

Code changes from version 3.0.8 to 3.0.9

README.md CHANGED
@@ -150,11 +150,11 @@ Yes, of course you can. To avoid Wishlist page to show product prices, you can h
150
 
151
  ## Changelog
152
 
153
- ### 3.0.8 - Released on 04 March 2020
 
 
 
154
 
155
- * Tweak: use wp_kses_post sanitization instead of esc_html for button labels to allow developers to add HTML to them
156
- * Tweak: minor improvements for OceanWP theme style
157
- * Fix: notice on empty wishlist page (thanks to ashimhastech)
158
 
159
  ## Support
160
 
150
 
151
  ## Changelog
152
 
153
+ ### 3.0.9 - Released on 09 March 2020
154
+
155
+ * Tweak: use wp_kses_post instead of esc_html for browse wishlist text
156
+ * Update: plugin framework
157
 
 
 
 
158
 
159
  ## Support
160
 
README.txt CHANGED
@@ -4,7 +4,7 @@ Contributors: yithemes
4
  Tags: wishlist, woocommerce, products, yit, e-commerce, shop, ecommerce wishlist, yith, woocommerce wishlist, shop wishlist
5
  Requires at least: 4.0
6
  Tested up to: 5.4
7
- Stable tag: 3.0.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -56,6 +56,7 @@ The free version of our plugin works like a charm, but the premium one is an eve
56
  * Allow users to manage wishlists, rename and delete them, add or remove items
57
  * Allow users to search and see registered wishlists
58
  * Allow users to set visibility options for each wishlist, by making them either public (visible to everyone), private (visible to the owner only) or shared (visible only to people it has been shared with)
 
59
  * Show multiple ‘Add to Cart’ buttons in the wishlist table
60
  * Show product price variations (Amazon style)
61
  * Allow users to move an element from one wishlist to another, right from the wishlist table
@@ -112,6 +113,11 @@ Yes, of course you can. To avoid Wishlist page to show product prices, you can h
112
 
113
  == Changelog ==
114
 
 
 
 
 
 
115
  = 3.0.8 - Released on 04 March 2020 =
116
 
117
  * Tweak: use wp_kses_post sanitization instead of esc_html for button labels to allow developers to add HTML to them
4
  Tags: wishlist, woocommerce, products, yit, e-commerce, shop, ecommerce wishlist, yith, woocommerce wishlist, shop wishlist
5
  Requires at least: 4.0
6
  Tested up to: 5.4
7
+ Stable tag: 3.0.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
56
  * Allow users to manage wishlists, rename and delete them, add or remove items
57
  * Allow users to search and see registered wishlists
58
  * Allow users to set visibility options for each wishlist, by making them either public (visible to everyone), private (visible to the owner only) or shared (visible only to people it has been shared with)
59
+ * Allow users to manage the item quantity in the wishlist
60
  * Show multiple ‘Add to Cart’ buttons in the wishlist table
61
  * Show product price variations (Amazon style)
62
  * Allow users to move an element from one wishlist to another, right from the wishlist table
113
 
114
  == Changelog ==
115
 
116
+ = 3.0.9 - Released on 09 March 2020 =
117
+
118
+ * Tweak: use wp_kses_post instead of esc_html for browse wishlist text
119
+ * Update: plugin framework
120
+
121
  = 3.0.8 - Released on 04 March 2020 =
122
 
123
  * Tweak: use wp_kses_post sanitization instead of esc_html for button labels to allow developers to add HTML to them
includes/class.yith-wcwl-frontend.php CHANGED
@@ -33,7 +33,7 @@ if ( ! class_exists( 'YITH_WCWL_Frontend' ) ) {
33
  * @var string
34
  * @since 1.0.0
35
  */
36
- public $version = '3.0.8';
37
 
38
  /**
39
  * Plugin database version
33
  * @var string
34
  * @since 1.0.0
35
  */
36
+ public $version = '3.0.9';
37
 
38
  /**
39
  * Plugin database version
init.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: YITH WooCommerce Wishlist
4
  * Plugin URI: https://yithemes.com/themes/plugins/yith-woocommerce-wishlist/
5
  * Description: <code><strong>YITH WooCommerce Wishlist</strong></code> gives your users the possibility to create, fill, manage and share their wishlists allowing you to analyze their interests and needs to improve your marketing strategies. <a href="https://yithemes.com/" target="_blank">Get more plugins for your e-commerce on <strong>YITH</strong></a>
6
- * Version: 3.0.8
7
  * Author: YITH
8
  * Author URI: https://yithemes.com/
9
  * Text Domain: yith-woocommerce-wishlist
3
  * Plugin Name: YITH WooCommerce Wishlist
4
  * Plugin URI: https://yithemes.com/themes/plugins/yith-woocommerce-wishlist/
5
  * Description: <code><strong>YITH WooCommerce Wishlist</strong></code> gives your users the possibility to create, fill, manage and share their wishlists allowing you to analyze their interests and needs to improve your marketing strategies. <a href="https://yithemes.com/" target="_blank">Get more plugins for your e-commerce on <strong>YITH</strong></a>
6
+ * Version: 3.0.9
7
  * Author: YITH
8
  * Author URI: https://yithemes.com/
9
  * Text Domain: yith-woocommerce-wishlist
plugin-fw/assets/js/multisite-updater.js CHANGED
@@ -10,7 +10,7 @@
10
 
11
  var plugins_menu_item = $( '#menu-plugins' ),
12
  update = plugins_menu_item.find( '.update-plugins' ),
13
- count = update.find( ".update-count" ).text(),
14
  registered = plugins.registered,
15
  activated = plugins.activated;
16
 
10
 
11
  var plugins_menu_item = $( '#menu-plugins' ),
12
  update = plugins_menu_item.find( '.update-plugins' ),
13
+ count = update.find( ".plugin-count" ).text(),
14
  registered = plugins.registered,
15
  activated = plugins.activated;
16
 
plugin-fw/assets/js/multisite-updater.min.js CHANGED
@@ -1,8 +1 @@
1
- var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,g,b){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var h=a[e];if(g.call(b,h,e,a))return{i:e,v:h}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,g,b){a!=Array.prototype&&a!=Object.prototype&&(a[g]=b.value)};
2
- $jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(a,g,b,d){if(g){b=$jscomp.global;a=a.split(".");for(d=0;d<a.length-1;d++){var e=a[d];e in b||(b[e]={});b=b[e]}a=a[a.length-1];d=b[a];g=g(d);g!=d&&null!=g&&$jscomp.defineProperty(b,a,{configurable:!0,writable:!0,value:g})}};
3
- $jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,b){return $jscomp.findInternal(this,a,b).v}},"es6","es3");
4
- (function(a){function g(a,b,d){this.php_js=this.php_js||{};this.php_js.ENV=this.php_js.ENV||{};var c=0,g=0,f=0,e={dev:-6,alpha:-5,a:-5,beta:-4,b:-4,RC:-3,rc:-3,"#":-2,p:1,pl:1};c=function(a){a=(""+a).replace(/[_\-+]/g,".");a=a.replace(/([^.\d]+)/g,".$1.").replace(/\.{2,}/g,".");return a.length?a.split("."):[-8]};numVersion=function(a){return a?isNaN(a)?e[a]||-7:parseInt(a,10):0};a=c(a);b=c(b);g=Math.max(a.length,b.length);for(c=0;c<g;c++)if(a[c]!=b[c])if(a[c]=numVersion(a[c]),b[c]=numVersion(b[c]),
5
- a[c]<b[c]){f=-1;break}else if(a[c]>b[c]){f=1;break}if(!d)return f;switch(d){case ">":case "gt":return 0<f;case ">=":case "ge":return 0<=f;case "<=":case "le":return 0>=f;case "==":case "=":case "eq":return 0===f;case "<>":case "!=":case "ne":return 0!==f;case "":case "<":case "lt":return 0>f;default:return null}}var b=a("#menu-plugins"),d=b.find(".update-plugins").find(".update-count").text(),e=plugins.registered,h=plugins.activated;if(0==d||""==d)d=0,b.find(".wp-menu-name").append('<span class="update-plugins"><span class="plugin-count"></span></span>');
6
- (function(b,d,e,c){for(var h in b){var f=b[h],k;for(k in f)if("slug"!=k&&!g(f[k].Version,f[k].Latest,"=")){e=parseInt(e)+1;a(".plugin-count").empty().html(e);var m=""+f[k].Name,n='*[data-slug="'+m.replace(/ /g,"-").trim().toLowerCase()+'"]';a(n).addClass("update");var l='<tr class="plugin-update-tr"><td colspan="3" class="plugin-update colspanchange"><div class="update-message notice inline notice-warning notice-alt">'+c.strings.new_version.replace("%plugin_name%",m)+'<a class="thickbox open-plugin-details-modal" href="'+
7
- c.details_url[h]+'">'+c.strings.latest.replace("%latest%",f[k].Latest)+"</a>";l="undefined"==typeof d[h]?l+" <em>"+c.strings.unavailable+"</em>"+c.strings.activate.replace("%activate_link%",c.licence_activation_url).replace("%plugin_name%",m):l+'. <a href="'+c.update_url[h]+'">'+c.strings.update_now+"</a>";g(f[k].Version,f[k].Latest,">")&&(l+=c.strings.version_issue.replace("%plugin_name%",m));l+="</div></td></tr>";a(l).insertAfter(n)}}})(e,h,d,plugins);a("body").on("click",".yit-changelog-button",
8
- function(){a("#TB_window").remove()})})(jQuery);
1
+ !function(e){var a=e("#menu-plugins"),n=a.find(".update-plugins").find(".plugin-count").text(),t=plugins.registered,s=plugins.activated;if(0==n||""==n){n=0,a.find(".wp-menu-name").append('<span class="update-plugins"><span class="plugin-count"></span></span>')}function i(e,a,n){this.php_js=this.php_js||{},this.php_js.ENV=this.php_js.ENV||{};var t,s=0,i=0,r={dev:-6,alpha:-5,a:-5,beta:-4,b:-4,RC:-3,rc:-3,"#":-2,p:1,pl:1},l=function(e){return(e=(e=(""+e).replace(/[_\-+]/g,".")).replace(/([^.\d]+)/g,".$1.").replace(/\.{2,}/g,".")).length?e.split("."):[-8]};for(numVersion=function(e){return e?isNaN(e)?r[e]||-7:parseInt(e,10):0},e=l(e),a=l(a),t=Math.max(e.length,a.length),s=0;s<t;s++)if(e[s]!=a[s]){if(e[s]=numVersion(e[s]),a[s]=numVersion(a[s]),e[s]<a[s]){i=-1;break}if(e[s]>a[s]){i=1;break}}if(!n)return i;switch(n){case">":case"gt":return i>0;case">=":case"ge":return i>=0;case"<=":case"le":return i<=0;case"==":case"=":case"eq":return 0===i;case"<>":case"!=":case"ne":return 0!==i;case"":case"<":case"lt":return i<0;default:return null}}!function(a,n,t,s){for(var r in a){var l=a[r];for(var p in l)if("slug"!=p&&!i(l[p].Version,l[p].Latest,"=")){t=parseInt(t)+1,e(".plugin-count").empty().html(t);var u=new RegExp(" ","g"),c=l[p],g=""+c.Name,o=g.replace(u,"-").trim(),d='*[data-slug="'+o.toLowerCase()+'"]';e(d).addClass("update");var f='<tr class="plugin-update-tr"><td colspan="3" class="plugin-update colspanchange"><div class="update-message notice inline notice-warning notice-alt">'+s.strings.new_version.replace("%plugin_name%",g)+'<a class="thickbox open-plugin-details-modal" href="'+s.details_url[r]+'">'+s.strings.latest.replace("%latest%",l[p].Latest)+"</a>";f=void 0===n[r]?f+" <em>"+s.strings.unavailable+"</em>"+s.strings.activate.replace("%activate_link%",s.licence_activation_url).replace("%plugin_name%",g):f+'. <a href="'+s.update_url[r]+'">'+s.strings.update_now+"</a>",i(l[p].Version,l[p].Latest,">")&&(f+=s.strings.version_issue.replace("%plugin_name%",g)),e(f+="</div></td></tr>").insertAfter(d)}}}(t,s,n,plugins),e("body").on("click",".yit-changelog-button",function(){e("#TB_window").remove()})}(jQuery);
 
 
 
 
 
 
 
plugin-fw/lib/yith-system-status.php CHANGED
@@ -128,7 +128,7 @@ if ( ! class_exists( 'YITH_System_Status' ) ) {
128
  */
129
  public function add_submenu_page() {
130
 
131
- $system_info = get_option( 'yith_system_info' );
132
  $error_notice = ( $system_info['errors'] === true ? ' <span class="yith-system-info-menu update-plugins">!</span>' : '' );
133
  $settings = array(
134
  'parent_page' => 'yith_plugin_panel',
128
  */
129
  public function add_submenu_page() {
130
 
131
+ $system_info = get_option( 'yith_system_info', array() );
132
  $error_notice = ( $system_info['errors'] === true ? ' <span class="yith-system-info-menu update-plugins">!</span>' : '' );
133
  $settings = array(
134
  'parent_page' => 'yith_plugin_panel',
templates/add-to-wishlist-added.php CHANGED
@@ -40,8 +40,8 @@ global $product;
40
  <?php echo $icon; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
41
  <?php echo wp_kses_post( $product_added_text ); ?>
42
  </span>
43
- <a href="<?php echo esc_url( $wishlist_url )?>" rel="nofollow" data-title="<?php echo esc_attr( $browse_wishlist_text ) ?>">
44
- <?php echo ( ! $is_single && 'before_image' == $loop_position ) ? $icon : false; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
45
- <?php echo esc_html( apply_filters( 'yith-wcwl-browse-wishlist-label', $browse_wishlist_text, $product_id, $icon ) ); ?>
46
  </a>
47
  </div>
40
  <?php echo $icon; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
41
  <?php echo wp_kses_post( $product_added_text ); ?>
42
  </span>
43
+ <a href="<?php echo esc_url( $wishlist_url ); ?>" rel="nofollow" data-title="<?php echo esc_attr( $browse_wishlist_text ); ?>">
44
+ <?php echo ( ! $is_single && 'before_image' === $loop_position ) ? $icon : false; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
45
+ <?php echo wp_kses_post( apply_filters( 'yith-wcwl-browse-wishlist-label', $browse_wishlist_text, $product_id, $icon ) ); ?>
46
  </a>
47
  </div>
templates/add-to-wishlist-browse.php CHANGED
@@ -41,7 +41,7 @@ global $product;
41
  <?php echo wp_kses_post( $already_in_wishslist_text ); ?>
42
  </span>
43
  <a href="<?php echo esc_url( $wishlist_url ); ?>" rel="nofollow" data-title="<?php echo esc_attr( $browse_wishlist_text ); ?>">
44
- <?php echo ( ! $is_single && 'before_image' == $loop_position ) ? $icon : false; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
45
- <?php echo esc_html( apply_filters( 'yith-wcwl-browse-wishlist-label', $browse_wishlist_text, $product_id, $icon ) ); ?>
46
  </a>
47
  </div>
41
  <?php echo wp_kses_post( $already_in_wishslist_text ); ?>
42
  </span>
43
  <a href="<?php echo esc_url( $wishlist_url ); ?>" rel="nofollow" data-title="<?php echo esc_attr( $browse_wishlist_text ); ?>">
44
+ <?php echo ( ! $is_single && 'before_image' === $loop_position ) ? $icon : false; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
45
+ <?php echo wp_kses_post( apply_filters( 'yith-wcwl-browse-wishlist-label', $browse_wishlist_text, $product_id, $icon ) ); ?>
46
  </a>
47
  </div>