YITH WooCommerce Wishlist - Version 1.1.3

Version Description

  • Added: Options Tabs Filter
  • Fixed: Various Bugs
Download this release

Release Info

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

Code changes from version 1.1.2 to 1.1.3

README.txt CHANGED
@@ -3,8 +3,8 @@
3
  Contributors: yithemes
4
  Tags: wishlist, woocommerce, products, themes, yit, e-commerce, shop
5
  Requires at least: 3.5.1
6
- Tested up to: 3.8.1
7
- Stable tag: 1.1.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -75,6 +75,11 @@ Yes, you can change the colors of background, text and border or apply a custom
75
 
76
  == Changelog ==
77
 
 
 
 
 
 
78
  = 1.1.2 =
79
 
80
  * Fixed: Warnings when Show Stock Status is disabled
3
  Contributors: yithemes
4
  Tags: wishlist, woocommerce, products, themes, yit, e-commerce, shop
5
  Requires at least: 3.5.1
6
+ Tested up to: 3.9.1
7
+ Stable tag: 1.1.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
75
 
76
  == Changelog ==
77
 
78
+ = 1.1.3 =
79
+
80
+ * Added: Options Tabs Filter
81
+ * Fixed: Various Bugs
82
+
83
  = 1.1.2 =
84
 
85
  * Fixed: Warnings when Show Stock Status is disabled
add-to-cart.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * @author Your Inspiration Themes
6
  * @package YITH WooCommerce Wishlist
7
- * @version 1.1.2
8
  */
9
 
10
  // Handles all ajax requests pertaining to this plugin
@@ -16,9 +16,11 @@ global $woocommerce, $yith_wcwl;
16
  //determine error link redirect url
17
  $error_link_url = $yith_wcwl->get_wishlist_url();
18
 
 
19
  //determine to success link redirect url
20
  //handle redirect option chosen by admin
21
  if ( isset( $_GET['redirect_to_cart'] ) && $_GET['redirect_to_cart'] == 'true' ) {
 
22
  if ( function_exists( 'icl_object_id' ) ) {
23
  $redirect_url = get_permalink( icl_object_id( function_exists( 'wc_get_page_id' ) ? wc_get_page_id( 'cart' ) : woocommerce_get_page_id( 'cart' ) ), 'page', true );
24
  }
@@ -34,7 +36,7 @@ else {
34
  $details = $yith_wcwl->get_product_details( $_GET['wishlist_item_id'] );
35
 
36
  //add to the cart
37
- if( $woocommerce->cart->add_to_cart( $details[0]['prod_id'], 1 ) ) {
38
  //$_SESSION['messages'] = sprintf( '<a href="%s" class="button">%s</a> %s', get_permalink( woocommerce_get_page_id( 'cart' ) ), __( 'View Cart &rarr;', 'yit' ), __( 'Product successfully added to the cart.', 'yit' ) );
39
 
40
  if ( function_exists('wc_add_to_cart_message') ) {
4
  *
5
  * @author Your Inspiration Themes
6
  * @package YITH WooCommerce Wishlist
7
+ * @version 1.1.3
8
  */
9
 
10
  // Handles all ajax requests pertaining to this plugin
16
  //determine error link redirect url
17
  $error_link_url = $yith_wcwl->get_wishlist_url();
18
 
19
+
20
  //determine to success link redirect url
21
  //handle redirect option chosen by admin
22
  if ( isset( $_GET['redirect_to_cart'] ) && $_GET['redirect_to_cart'] == 'true' ) {
23
+
24
  if ( function_exists( 'icl_object_id' ) ) {
25
  $redirect_url = get_permalink( icl_object_id( function_exists( 'wc_get_page_id' ) ? wc_get_page_id( 'cart' ) : woocommerce_get_page_id( 'cart' ) ), 'page', true );
26
  }
36
  $details = $yith_wcwl->get_product_details( $_GET['wishlist_item_id'] );
37
 
38
  //add to the cart
39
+ if( WC()->cart->add_to_cart( $details[0]['prod_id'], 1 ) ) {
40
  //$_SESSION['messages'] = sprintf( '<a href="%s" class="button">%s</a> %s', get_permalink( woocommerce_get_page_id( 'cart' ) ), __( 'View Cart &rarr;', 'yit' ), __( 'Product successfully added to the cart.', 'yit' ) );
41
 
42
  if ( function_exists('wc_add_to_cart_message') ) {
assets/css/admin.css CHANGED
@@ -3,7 +3,7 @@
3
  *
4
  * @author Your Inspiration Themes
5
  * @package YITH WooCommerce Wishlist
6
- * @version 1.1.2
7
  */
8
 
9
  #yith_wcwl_styles .color_box {
3
  *
4
  * @author Your Inspiration Themes
5
  * @package YITH WooCommerce Wishlist
6
+ * @version 1.1.3
7
  */
8
 
9
  #yith_wcwl_styles .color_box {
assets/css/style.css CHANGED
@@ -3,7 +3,7 @@
3
  *
4
  * @author Your Inspiration Themes
5
  * @package YITH WooCommerce Wishlist
6
- * @version 1.1.2
7
  */
8
 
9
 
3
  *
4
  * @author Your Inspiration Themes
5
  * @package YITH WooCommerce Wishlist
6
+ * @version 1.1.3
7
  */
8
 
9
 
class.yith-wcwl-init.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * @author Your Inspiration Themes
6
  * @package YITH WooCommerce Wishlist
7
- * @version 1.1.2
8
  */
9
 
10
  if ( ! defined( 'YITH_WCWL' ) ) {
@@ -24,7 +24,7 @@ if ( ! class_exists( 'YITH_WCWL_Init' ) ) {
24
  * @var string
25
  * @since 1.0.0
26
  */
27
- public $version = '1.1.2';
28
 
29
  /**
30
  * Plugin database version
@@ -442,6 +442,7 @@ if ( ! class_exists( 'YITH_WCWL_Init' ) ) {
442
  </li>
443
  </ul>-->
444
  <br class="clear" />
 
445
  <?php foreach ( $this->options as $id => $tab ) : ?>
446
  <!-- tab #<?php echo $id ?> -->
447
  <div class="section" id="yith_wcwl_<?php echo $id ?>">
@@ -583,7 +584,7 @@ if ( ! class_exists( 'YITH_WCWL_Init' ) ) {
583
  *
584
  * @access public
585
  * @return mxied array
586
- * @since 1.1.2
587
  */
588
  public function get_wcwl_page_option(){
589
 
@@ -1092,7 +1093,7 @@ if ( ! class_exists( 'YITH_WCWL_Init' ) ) {
1092
  $options['general_settings'] = array_merge( $general_settings_start, array( $this->get_wcwl_page_option() ), $general_settings_end );
1093
  }
1094
 
1095
- return apply_filters( 'yith_wcwl_tab_options', $options );
1096
  }
1097
  }
1098
  }
4
  *
5
  * @author Your Inspiration Themes
6
  * @package YITH WooCommerce Wishlist
7
+ * @version 1.1.3
8
  */
9
 
10
  if ( ! defined( 'YITH_WCWL' ) ) {
24
  * @var string
25
  * @since 1.0.0
26
  */
27
+ public $version = '1.1.3';
28
 
29
  /**
30
  * Plugin database version
442
  </li>
443
  </ul>-->
444
  <br class="clear" />
445
+ <?php $this->options = apply_filters( 'yith_wcwl_tab_options', $this->options ); ?>
446
  <?php foreach ( $this->options as $id => $tab ) : ?>
447
  <!-- tab #<?php echo $id ?> -->
448
  <div class="section" id="yith_wcwl_<?php echo $id ?>">
584
  *
585
  * @access public
586
  * @return mxied array
587
+ * @since 1.1.3
588
  */
589
  public function get_wcwl_page_option(){
590
 
1093
  $options['general_settings'] = array_merge( $general_settings_start, array( $this->get_wcwl_page_option() ), $general_settings_end );
1094
  }
1095
 
1096
+ return $options;
1097
  }
1098
  }
1099
  }
class.yith-wcwl-install.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * @author Your Inspiration Themes
6
  * @package YITH WooCommerce Wishlist
7
- * @version 1.1.2
8
  */
9
 
10
  if ( !defined( 'YITH_WCWL' ) ) { exit; } // Exit if accessed directly
4
  *
5
  * @author Your Inspiration Themes
6
  * @package YITH WooCommerce Wishlist
7
+ * @version 1.1.3
8
  */
9
 
10
  if ( !defined( 'YITH_WCWL' ) ) { exit; } // Exit if accessed directly
class.yith-wcwl-shortcode.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * @author Your Inspiration Themes
6
  * @package YITH WooCommerce Wishlist
7
- * @version 1.1.2
8
  */
9
 
10
  if ( !defined( 'YITH_WCWL' ) ) { exit; } // Exit if accessed directly
4
  *
5
  * @author Your Inspiration Themes
6
  * @package YITH WooCommerce Wishlist
7
+ * @version 1.1.3
8
  */
9
 
10
  if ( !defined( 'YITH_WCWL' ) ) { exit; } // Exit if accessed directly
class.yith-wcwl-ui.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * @author Your Inspiration Themes
6
  * @package YITH WooCommerce Wishlist
7
- * @version 1.1.2
8
  */
9
 
10
  if ( !defined( 'YITH_WCWL' ) ) { exit; } // Exit if accessed directly
@@ -136,13 +136,13 @@ public static function popup_message() {
136
  $html .= apply_filters( 'yith_wcwl_socials_share_title', '<h4>' . __( 'Share on:', 'yit' ) . '</h4>' );
137
  $html .= '<ul>';
138
 
139
- if( get_option( 'yith_wcwl_share_fb' ) )
140
  { $html .= '<li style="list-style-type: none; display: inline-block;"><a target="_blank" class="facebook" href="https://www.facebook.com/sharer.php?s=100&amp;p[title]=' . $title . '&amp;p[url]=' . $url . '&amp;p[summary]=' . $summary . '&amp;p[images][0]=' . $imageurl . '" title="' . __( 'Facebook', 'yit' ) . '"></a></li>'; }
141
 
142
- if( get_option( 'yith_wcwl_share_twitter' ) )
143
  { $html .= '<li style="list-style-type: none; display: inline-block;"><a target="_blank" class="twitter" href="https://twitter.com/share?url=' . $url . '&amp;text=' . $twitter_summary . '" title="' . __( 'Twitter', 'yit' ) . '"></a></li>'; }
144
 
145
- if( get_option( 'yith_wcwl_share_pinterest' ) )
146
  { $html .= '<li style="list-style-type: none; display: inline-block;"><a target="_blank" class="pinterest" href="http://pinterest.com/pin/create/button/?url=' . $url . '&amp;description=' . $summary . '&media=' . $imageurl . '" onclick="window.open(this.href); return false;"></a></li>'; }
147
 
148
  if( get_option( 'yith_wcwl_share_googleplus' ) == 'yes' )
4
  *
5
  * @author Your Inspiration Themes
6
  * @package YITH WooCommerce Wishlist
7
+ * @version 1.1.3
8
  */
9
 
10
  if ( !defined( 'YITH_WCWL' ) ) { exit; } // Exit if accessed directly
136
  $html .= apply_filters( 'yith_wcwl_socials_share_title', '<h4>' . __( 'Share on:', 'yit' ) . '</h4>' );
137
  $html .= '<ul>';
138
 
139
+ if( get_option( 'yith_wcwl_share_fb' ) == 'yes' )
140
  { $html .= '<li style="list-style-type: none; display: inline-block;"><a target="_blank" class="facebook" href="https://www.facebook.com/sharer.php?s=100&amp;p[title]=' . $title . '&amp;p[url]=' . $url . '&amp;p[summary]=' . $summary . '&amp;p[images][0]=' . $imageurl . '" title="' . __( 'Facebook', 'yit' ) . '"></a></li>'; }
141
 
142
+ if( get_option( 'yith_wcwl_share_twitter' ) == 'yes' )
143
  { $html .= '<li style="list-style-type: none; display: inline-block;"><a target="_blank" class="twitter" href="https://twitter.com/share?url=' . $url . '&amp;text=' . $twitter_summary . '" title="' . __( 'Twitter', 'yit' ) . '"></a></li>'; }
144
 
145
+ if( get_option( 'yith_wcwl_share_pinterest' ) == 'yes' )
146
  { $html .= '<li style="list-style-type: none; display: inline-block;"><a target="_blank" class="pinterest" href="http://pinterest.com/pin/create/button/?url=' . $url . '&amp;description=' . $summary . '&media=' . $imageurl . '" onclick="window.open(this.href); return false;"></a></li>'; }
147
 
148
  if( get_option( 'yith_wcwl_share_googleplus' ) == 'yes' )
class.yith-wcwl.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * @author Your Inspiration Themes
6
  * @package YITH WooCommerce Wishlist
7
- * @version 1.1.2
8
  */
9
 
10
  if ( !defined( 'YITH_WCWL' ) ) { exit; } // Exit if accessed directly
4
  *
5
  * @author Your Inspiration Themes
6
  * @package YITH WooCommerce Wishlist
7
+ * @version 1.1.3
8
  */
9
 
10
  if ( !defined( 'YITH_WCWL' ) ) { exit; } // Exit if accessed directly
functions.yith-wcwl.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * @author Your Inspiration Themes
6
  * @package YITH WooCommerce Wishlist
7
- * @version 1.1.2
8
  */
9
 
10
  if ( !defined( 'YITH_WCWL' ) ) { exit; } // Exit if accessed directly
4
  *
5
  * @author Your Inspiration Themes
6
  * @package YITH WooCommerce Wishlist
7
+ * @version 1.1.3
8
  */
9
 
10
  if ( !defined( 'YITH_WCWL' ) ) { exit; } // Exit if accessed directly
init.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: YITH WooCommerce Wishlist
4
  * Plugin URI: http://yithemes.com/
5
  * Description: YITH WooCommerce Wishlist allows you to add Wishlist functionality to your e-commerce.
6
- * Version: 1.1.2
7
  * Author: Your Inspiration Themes
8
  * Author URI: http://yithemes.com/
9
  * Text Domain: yit
@@ -11,7 +11,7 @@
11
  *
12
  * @author Your Inspiration Themes
13
  * @package YITH WooCommerce Wishlist
14
- * @version 1.1.2
15
  */
16
  /* Copyright 2013 Your Inspiration Themes (email : plugins@yithemes.com)
17
 
3
  * Plugin Name: YITH WooCommerce Wishlist
4
  * Plugin URI: http://yithemes.com/
5
  * Description: YITH WooCommerce Wishlist allows you to add Wishlist functionality to your e-commerce.
6
+ * Version: 1.1.3
7
  * Author: Your Inspiration Themes
8
  * Author URI: http://yithemes.com/
9
  * Text Domain: yit
11
  *
12
  * @author Your Inspiration Themes
13
  * @package YITH WooCommerce Wishlist
14
+ * @version 1.1.3
15
  */
16
  /* Copyright 2013 Your Inspiration Themes (email : plugins@yithemes.com)
17
 
templates/share.php CHANGED
@@ -4,12 +4,12 @@
4
  *
5
  * @author Your Inspiration Themes
6
  * @package YITH WooCommerce Wishlist
7
- * @version 1.1.2
8
  */
9
 
10
  global $yith_wcwl;
11
 
12
- if( get_option( 'yith_wcwl_share_fb' ) == 'yes' || get_option( 'yith_wcwl_share_twitter' ) == 'yes' || get_option( 'yith_wcwl_share_pinterest' ) == 'yes' ) {
13
  $share_url = $yith_wcwl->get_wishlist_url();
14
  $share_url .= get_option( 'permalink-structure' ) != '' ? '&amp;user_id=' : '?user_id=';
15
  $share_url .= get_current_user_id();
4
  *
5
  * @author Your Inspiration Themes
6
  * @package YITH WooCommerce Wishlist
7
+ * @version 1.1.3
8
  */
9
 
10
  global $yith_wcwl;
11
 
12
+ if( get_option( 'yith_wcwl_share_fb' ) == 'yes' || get_option( 'yith_wcwl_share_twitter' ) == 'yes' || get_option( 'yith_wcwl_share_pinterest' ) == 'yes' || get_option( 'yith_wcwl_share_googleplus' ) == 'yes' ) {
13
  $share_url = $yith_wcwl->get_wishlist_url();
14
  $share_url .= get_option( 'permalink-structure' ) != '' ? '&amp;user_id=' : '?user_id=';
15
  $share_url .= get_current_user_id();
templates/wishlist.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * @author Your Inspiration Themes
6
  * @package YITH WooCommerce Wishlist
7
- * @version 1.1.2
8
  */
9
 
10
  global $wpdb, $yith_wcwl, $woocommerce;
4
  *
5
  * @author Your Inspiration Themes
6
  * @package YITH WooCommerce Wishlist
7
+ * @version 1.1.3
8
  */
9
 
10
  global $wpdb, $yith_wcwl, $woocommerce;
uninstall.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * @author Your Inspiration Themes
6
  * @package YITH WooCommerce Wishlist
7
- * @version 1.1.2
8
  */
9
 
10
  // If uninstall not called from WordPress exit
4
  *
5
  * @author Your Inspiration Themes
6
  * @package YITH WooCommerce Wishlist
7
+ * @version 1.1.3
8
  */
9
 
10
  // If uninstall not called from WordPress exit
yith-wcwl-ajax.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * @author Your Inspiration Themes
6
  * @package YIHT WooCommerce Wishlist
7
- * @version 1.1.2
8
  */
9
 
10
  /**
4
  *
5
  * @author Your Inspiration Themes
6
  * @package YIHT WooCommerce Wishlist
7
+ * @version 1.1.3
8
  */
9
 
10
  /**