WooCommerce Wishlist Plugin - Version 1.1.3

Version Description

Release Date - 09 December 2016

  • Fixed issues with pagination
  • Added support for WordPress 4.7
Download this release

Release Info

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

Code changes from version 1.1.2 to 1.1.3

includes/pluginextend.helper.php CHANGED
@@ -97,7 +97,7 @@ class TInvWL_PluginExtend {
97
  * Run hooks dependency
98
  */
99
  public function run() {
100
- if ( 'plugins.php' === basename( filter_input( INPUT_SERVER, 'PHP_SELF' ) ) && ! ( defined( 'WP_CLI' ) && WP_CLI ) ) {
101
  add_action( 'admin_notices', array( $this, 'admin_notices' ) );
102
 
103
  $plugins = $this->get_dependency_plugins();
97
  * Run hooks dependency
98
  */
99
  public function run() {
100
+ if ( 'plugins.php' === basename( $_SERVER['PHP_SELF'] ) && ! ( defined( 'WP_CLI' ) && WP_CLI ) ) { // @codingStandardsIgnoreLine WordPress.VIP.SuperGlobalInputUsage.AccessDetected
101
  add_action( 'admin_notices', array( $this, 'admin_notices' ) );
102
 
103
  $plugins = $this->get_dependency_plugins();
languages/ti-woocommerce-wishlist.pot CHANGED
@@ -3,7 +3,7 @@ msgid ""
3
  msgstr ""
4
  "Project-Id-Version: TI WooCommerce Wishlist\n"
5
  "Report-Msgid-Bugs-To: \n"
6
- "POT-Creation-Date: 2016-11-24 00:26+0700\n"
7
  "POT-Revision-Date: Sun Apr 10 2016 12:21:06 GMT+0200 (Västeuropa, "
8
  "sommartid)\n"
9
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
@@ -856,7 +856,7 @@ msgstr ""
856
  msgid "In stock"
857
  msgstr ""
858
 
859
- #: ../tinv-wishlists-function.php:651
860
  msgid "Select options"
861
  msgstr ""
862
 
3
  msgstr ""
4
  "Project-Id-Version: TI WooCommerce Wishlist\n"
5
  "Report-Msgid-Bugs-To: \n"
6
+ "POT-Creation-Date: 2016-12-09 11:36+0700\n"
7
  "POT-Revision-Date: Sun Apr 10 2016 12:21:06 GMT+0200 (Västeuropa, "
8
  "sommartid)\n"
9
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
856
  msgid "In stock"
857
  msgstr ""
858
 
859
+ #: ../tinv-wishlists-function.php:650
860
  msgid "Select options"
861
  msgstr ""
862
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: templateinvaders
3
  Donate link: https://templateinvaders.com/
4
  Tags: wishlist, woocommerce, products, e-commerce, shop, ecommerce wishlist, woocommerce wishlist, woocommerce , shop wishlist, wishlist for Woocommerce
5
  Requires at least: 4.5
6
- Tested up to: 4.6.1
7
- Stable tag: 1.1.2
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -114,6 +114,13 @@ There are few ways to install TI WooCommerce Wishlist plugin:
114
 
115
  == Changelog ==
116
 
 
 
 
 
 
 
 
117
  = 1.1.2 =
118
  *Release Date - 23 November 2016*
119
 
3
  Donate link: https://templateinvaders.com/
4
  Tags: wishlist, woocommerce, products, e-commerce, shop, ecommerce wishlist, woocommerce wishlist, woocommerce , shop wishlist, wishlist for Woocommerce
5
  Requires at least: 4.5
6
+ Tested up to: 4.7
7
+ Stable tag: 1.1.3
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
114
 
115
  == Changelog ==
116
 
117
+ = 1.1.3 =
118
+ *Release Date - 09 December 2016*
119
+
120
+ * Fixed issues with pagination
121
+ * Added support for WordPress 4.7
122
+
123
+
124
  = 1.1.2 =
125
  *Release Date - 23 November 2016*
126
 
ti-woocommerce-wishlist.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: TI WooCommerce Wishlist
5
  * Plugin URI: https://templateinvaders.com/product/ti-woocommerce-wishlist-wordpress-plugin/
6
  * Description: Wishlist functionality for your WooCommerce store.
7
- * Version: 1.1.2
8
  * Author: Template Invaders
9
  * Author URI: https://templateinvaders.com/
10
  * License: GPL-2.0+
@@ -33,7 +33,7 @@ if ( ! defined( 'TINVWL_PREFIX' ) ) {
33
  }
34
 
35
  if ( ! defined( 'TINVWL_FVERSION' ) ) {
36
- define( 'TINVWL_FVERSION', '1.1.2' );
37
  }
38
 
39
  if ( ! defined( 'TINVWL_LOAD_FREE' ) ) {
4
  * Plugin Name: TI WooCommerce Wishlist
5
  * Plugin URI: https://templateinvaders.com/product/ti-woocommerce-wishlist-wordpress-plugin/
6
  * Description: Wishlist functionality for your WooCommerce store.
7
+ * Version: 1.1.3
8
  * Author: Template Invaders
9
  * Author URI: https://templateinvaders.com/
10
  * License: GPL-2.0+
33
  }
34
 
35
  if ( ! defined( 'TINVWL_FVERSION' ) ) {
36
+ define( 'TINVWL_FVERSION', '1.1.3' );
37
  }
38
 
39
  if ( ! defined( 'TINVWL_LOAD_FREE' ) ) {
tinv-wishlists-function.php CHANGED
@@ -436,7 +436,10 @@ if ( ! function_exists( 'tinv_url_wishlist' ) ) {
436
  $link = tinv_url_wishlist_default();
437
  $wishlist = tinv_wishlist_get( $id, false );
438
  if ( empty( $wishlist ) ) {
439
- return add_query_arg( array( 'paged' => $paged ), $link );
 
 
 
440
  }
441
  $full_link = $link;
442
 
@@ -462,11 +465,7 @@ if ( ! function_exists( 'tinv_url_wishlist' ) ) {
462
  }
463
 
464
  if ( 1 < $paged ) {
465
- if ( get_option( 'permalink_structure' ) ) {
466
- $link .= 'page/' . $paged;
467
- } else {
468
- $link .= '&paged=' . $paged;
469
- }
470
  }
471
  return $link;
472
  }
436
  $link = tinv_url_wishlist_default();
437
  $wishlist = tinv_wishlist_get( $id, false );
438
  if ( empty( $wishlist ) ) {
439
+ if ( 1 < $paged ) {
440
+ $link = add_query_arg( 'paged', $paged, $link );
441
+ }
442
+ return $link;
443
  }
444
  $full_link = $link;
445
 
465
  }
466
 
467
  if ( 1 < $paged ) {
468
+ $link = add_query_arg( 'paged', $paged, $link );
 
 
 
 
469
  }
470
  return $link;
471
  }
views/wizard/step-button.php CHANGED
@@ -49,7 +49,7 @@ if ( ! defined( 'ABSPATH' ) ) {
49
 
50
  <div class="tinvwl-nav clearfix">
51
  <div class="tinvwl-next">
52
- <a class="tinvwl-skip" href="<?php echo esc_url( add_query_arg( 'step', absint( filter_input( INPUT_GET, 'step' ) ) + 1, set_url_scheme( ( is_ssl() ? 'https://' : 'http://' ) . filter_input( INPUT_SERVER, 'HTTP_HOST' ) . filter_input( INPUT_SERVER, 'REQUEST_URI' ) ) ) ); ?>" ><?php esc_html_e( 'Skip this step', 'ti-woocommerce-wishlist' ); ?></a>
53
  <?php echo TInvWL_Form::_button_submit( 'nextstep', __( 'continue', 'ti-woocommerce-wishlist' ), array( 'class' => 'tinvwl-btn red w-icon round' ) ); // WPCS: xss ok. ?>
54
  </div>
55
  </div>
49
 
50
  <div class="tinvwl-nav clearfix">
51
  <div class="tinvwl-next">
52
+ <a class="tinvwl-skip" href="<?php echo esc_url( add_query_arg( 'step', absint( filter_input( INPUT_GET, 'step' ) ) + 1, set_url_scheme( ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ) ) ); // @codingStandardsIgnoreLine WordPress.VIP.SuperGlobalInputUsage.AccessDetected ?>" ><?php esc_html_e( 'Skip this step', 'ti-woocommerce-wishlist' ); ?></a>
53
  <?php echo TInvWL_Form::_button_submit( 'nextstep', __( 'continue', 'ti-woocommerce-wishlist' ), array( 'class' => 'tinvwl-btn red w-icon round' ) ); // WPCS: xss ok. ?>
54
  </div>
55
  </div>
views/wizard/step-page.php CHANGED
@@ -50,7 +50,7 @@ if ( ! defined( 'ABSPATH' ) ) {
50
 
51
  <div class="tinvwl-nav clearfix">
52
  <div class="tinvwl-next">
53
- <a class="tinvwl-skip" href="<?php echo esc_url( add_query_arg( 'step', absint( filter_input( INPUT_GET, 'step' ) ) + 1, set_url_scheme( ( is_ssl() ? 'https://' : 'http://' ) . filter_input( INPUT_SERVER, 'HTTP_HOST' ) . filter_input( INPUT_SERVER, 'REQUEST_URI' ) ) ) ); ?>" ><?php esc_html_e( 'Skip this step', 'ti-woocommerce-wishlist' ); ?></a>
54
  <?php echo TInvWL_Form::_button_submit( 'nextstep', __( 'continue', 'ti-woocommerce-wishlist' ), array( 'class' => 'tinvwl-btn red w-icon round' ) ); // WPCS: xss ok. ?>
55
  </div>
56
  </div>
50
 
51
  <div class="tinvwl-nav clearfix">
52
  <div class="tinvwl-next">
53
+ <a class="tinvwl-skip" href="<?php echo esc_url( add_query_arg( 'step', absint( filter_input( INPUT_GET, 'step' ) ) + 1, set_url_scheme( ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ) ) ); // @codingStandardsIgnoreLine WordPress.VIP.SuperGlobalInputUsage.AccessDetected ?>" ><?php esc_html_e( 'Skip this step', 'ti-woocommerce-wishlist' ); ?></a>
54
  <?php echo TInvWL_Form::_button_submit( 'nextstep', __( 'continue', 'ti-woocommerce-wishlist' ), array( 'class' => 'tinvwl-btn red w-icon round' ) ); // WPCS: xss ok. ?>
55
  </div>
56
  </div>
views/wizard/step-processing.php CHANGED
@@ -32,7 +32,7 @@ if ( ! defined( 'ABSPATH' ) ) {
32
 
33
  <div class="tinvwl-nav clearfix">
34
  <div class="tinvwl-next">
35
- <a class="tinvwl-skip" href="<?php echo esc_url( add_query_arg( 'step', absint( filter_input( INPUT_GET, 'step' ) ) + 1, set_url_scheme( ( is_ssl() ? 'https://' : 'http://' ) . filter_input( INPUT_SERVER, 'HTTP_HOST' ) . filter_input( INPUT_SERVER, 'REQUEST_URI' ) ) ) ); ?>" ><?php esc_html_e( 'Skip this step', 'ti-woocommerce-wishlist' ); ?></a>
36
  <?php echo TInvWL_Form::_button_submit( 'nextstep', __( 'continue', 'ti-woocommerce-wishlist' ), array( 'class' => 'tinvwl-btn red w-icon round' ) ); // WPCS: xss ok. ?>
37
  </div>
38
  </div>
32
 
33
  <div class="tinvwl-nav clearfix">
34
  <div class="tinvwl-next">
35
+ <a class="tinvwl-skip" href="<?php echo esc_url( add_query_arg( 'step', absint( filter_input( INPUT_GET, 'step' ) ) + 1, set_url_scheme( ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ) ) ); // @codingStandardsIgnoreLine WordPress.VIP.SuperGlobalInputUsage.AccessDetected ?>" ><?php esc_html_e( 'Skip this step', 'ti-woocommerce-wishlist' ); ?></a>
36
  <?php echo TInvWL_Form::_button_submit( 'nextstep', __( 'continue', 'ti-woocommerce-wishlist' ), array( 'class' => 'tinvwl-btn red w-icon round' ) ); // WPCS: xss ok. ?>
37
  </div>
38
  </div>
views/wizard/step-social.php CHANGED
@@ -72,7 +72,7 @@ if ( ! defined( 'ABSPATH' ) ) {
72
 
73
  <div class="tinvwl-nav clearfix">
74
  <div class="tinvwl-next">
75
- <a class="tinvwl-skip" href="<?php echo esc_url( add_query_arg( 'step', absint( filter_input( INPUT_GET, 'step' ) ) + 1, set_url_scheme( ( is_ssl() ? 'https://' : 'http://' ) . filter_input( INPUT_SERVER, 'HTTP_HOST' ) . filter_input( INPUT_SERVER, 'REQUEST_URI' ) ) ) ); ?>" ><?php esc_html_e( 'Skip this step', 'ti-woocommerce-wishlist' ); ?></a>
76
  <?php echo TInvWL_Form::_button_submit( 'nextstep', __( 'continue', 'ti-woocommerce-wishlist' ), array( 'class' => 'tinvwl-btn red w-icon round' ) ); // WPCS: xss ok. ?>
77
  </div>
78
  </div>
72
 
73
  <div class="tinvwl-nav clearfix">
74
  <div class="tinvwl-next">
75
+ <a class="tinvwl-skip" href="<?php echo esc_url( add_query_arg( 'step', absint( filter_input( INPUT_GET, 'step' ) ) + 1, set_url_scheme( ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ) ) ); // @codingStandardsIgnoreLine WordPress.VIP.SuperGlobalInputUsage.AccessDetected ?>" ><?php esc_html_e( 'Skip this step', 'ti-woocommerce-wishlist' ); ?></a>
76
  <?php echo TInvWL_Form::_button_submit( 'nextstep', __( 'continue', 'ti-woocommerce-wishlist' ), array( 'class' => 'tinvwl-btn red w-icon round' ) ); // WPCS: xss ok. ?>
77
  </div>
78
  </div>