WooCommerce Wishlist Plugin - Version 1.9.7

Version Description

Release Date - 7 December 2018

  • WordPress 5.0 compatibility
Download this release

Release Info

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

Code changes from version 1.9.6 to 1.9.7

admin/tinvwl.class.php CHANGED
@@ -80,6 +80,9 @@ class TInvWL_Admin_TInvWL extends TInvWL_Admin_Base {
80
  add_action( 'switch_theme', array( $this, 'admin_notice_outdated_templates' ) );
81
  add_action( 'tinvwl_updated', array( $this, 'admin_notice_outdated_templates' ) );
82
 
 
 
 
83
  add_action( 'tinvwl_admin_promo_footer', array( $this, 'promo_footer' ) );
84
  add_action( 'tinvwl_remove_without_author_wishlist', array( $this, 'remove_old_wishlists' ) );
85
  $this->scheduled_remove_wishlist();
@@ -365,4 +368,19 @@ class TInvWL_Admin_TInvWL extends TInvWL_Admin_Base {
365
  }
366
  }
367
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
368
  }
80
  add_action( 'switch_theme', array( $this, 'admin_notice_outdated_templates' ) );
81
  add_action( 'tinvwl_updated', array( $this, 'admin_notice_outdated_templates' ) );
82
 
83
+ // Add a post display state for special WC pages.
84
+ add_filter( 'display_post_states', array( $this, 'add_display_post_states' ), 10, 2 );
85
+
86
  add_action( 'tinvwl_admin_promo_footer', array( $this, 'promo_footer' ) );
87
  add_action( 'tinvwl_remove_without_author_wishlist', array( $this, 'remove_old_wishlists' ) );
88
  $this->scheduled_remove_wishlist();
368
  }
369
  }
370
 
371
+ /**
372
+ * Add a post display state for special WC pages in the page list table.
373
+ *
374
+ * @param array $post_states An array of post display states.
375
+ * @param WP_Post $post The current post object.
376
+ *
377
+ * @return array
378
+ */
379
+ public function add_display_post_states( $post_states, $post ) {
380
+ if ( tinv_get_option( 'page', 'wishlist' ) === $post->ID ) {
381
+ $post_states['tinvwl_page_for_wishlist'] = __( 'Wishlist Page', 'ti-woocommerce-wishlist' );
382
+ }
383
+
384
+ return $post_states;
385
+ }
386
  }
assets/css/admin-form.min.css CHANGED
@@ -1,4 +1,4 @@
1
- /*! WooCommerce Wishlist Plugin - version 1.9.6
2
  * https://wordpress.org/plugins/ti-woocommerce-wishlist/
3
  * Copyright (c) 2018;
4
  * Licensed GPLv2+ */
1
+ /*! WooCommerce Wishlist Plugin - version 1.9.7
2
  * https://wordpress.org/plugins/ti-woocommerce-wishlist/
3
  * Copyright (c) 2018;
4
  * Licensed GPLv2+ */
assets/css/admin-setup.min.css CHANGED
@@ -1,4 +1,4 @@
1
- /*! WooCommerce Wishlist Plugin - version 1.9.6
2
  * https://wordpress.org/plugins/ti-woocommerce-wishlist/
3
  * Copyright (c) 2018;
4
  * Licensed GPLv2+ */
1
+ /*! WooCommerce Wishlist Plugin - version 1.9.7
2
  * https://wordpress.org/plugins/ti-woocommerce-wishlist/
3
  * Copyright (c) 2018;
4
  * Licensed GPLv2+ */
assets/css/admin.min.css CHANGED
@@ -1,4 +1,4 @@
1
- /*! WooCommerce Wishlist Plugin - version 1.9.6
2
  * https://wordpress.org/plugins/ti-woocommerce-wishlist/
3
  * Copyright (c) 2018;
4
  * Licensed GPLv2+ */
1
+ /*! WooCommerce Wishlist Plugin - version 1.9.7
2
  * https://wordpress.org/plugins/ti-woocommerce-wishlist/
3
  * Copyright (c) 2018;
4
  * Licensed GPLv2+ */
assets/css/public.min.css CHANGED
@@ -1,4 +1,4 @@
1
- /*! WooCommerce Wishlist Plugin - version 1.9.6
2
  * https://wordpress.org/plugins/ti-woocommerce-wishlist/
3
  * Copyright (c) 2018;
4
  * Licensed GPLv2+ */
1
+ /*! WooCommerce Wishlist Plugin - version 1.9.7
2
  * https://wordpress.org/plugins/ti-woocommerce-wishlist/
3
  * Copyright (c) 2018;
4
  * Licensed GPLv2+ */
assets/css/theme.min.css CHANGED
@@ -1,4 +1,4 @@
1
- /*! WooCommerce Wishlist Plugin - version 1.9.6
2
  * https://wordpress.org/plugins/ti-woocommerce-wishlist/
3
  * Copyright (c) 2018;
4
  * Licensed GPLv2+ */
1
+ /*! WooCommerce Wishlist Plugin - version 1.9.7
2
  * https://wordpress.org/plugins/ti-woocommerce-wishlist/
3
  * Copyright (c) 2018;
4
  * Licensed GPLv2+ */
assets/js/admin.min.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! WooCommerce Wishlist Plugin - version 1.9.6
2
  * https://wordpress.org/plugins/ti-woocommerce-wishlist/
3
  * Copyright (c) 2018;
4
  * Licensed GPLv2+ */
1
+ /*! WooCommerce Wishlist Plugin - version 1.9.7
2
  * https://wordpress.org/plugins/ti-woocommerce-wishlist/
3
  * Copyright (c) 2018;
4
  * Licensed GPLv2+ */
assets/js/public.js CHANGED
@@ -531,5 +531,4 @@ function update_cart_hash() {
531
  sessionStorage.setItem(cart_hash_key, sessionStorage.getItem(cart_hash_key) + (new Date()).getTime());
532
  jQuery(document.body).off('wc_fragments_loaded.wishlist wc_fragments_refreshed.wishlist');
533
  });
534
-
535
  }
531
  sessionStorage.setItem(cart_hash_key, sessionStorage.getItem(cart_hash_key) + (new Date()).getTime());
532
  jQuery(document.body).off('wc_fragments_loaded.wishlist wc_fragments_refreshed.wishlist');
533
  });
 
534
  }
assets/js/public.min.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! WooCommerce Wishlist Plugin - version 1.9.6
2
  * https://wordpress.org/plugins/ti-woocommerce-wishlist/
3
  * Copyright (c) 2018;
4
  * Licensed GPLv2+ */
1
+ /*! WooCommerce Wishlist Plugin - version 1.9.7
2
  * https://wordpress.org/plugins/ti-woocommerce-wishlist/
3
  * Copyright (c) 2018;
4
  * Licensed GPLv2+ */
includes/wizard.class.php CHANGED
@@ -116,9 +116,11 @@ class TInvWL_Wizard {
116
  }
117
  }
118
 
 
119
  $this->load_header();
120
  $this->load_content();
121
  $this->load_footer();
 
122
  }
123
 
124
  /**
116
  }
117
  }
118
 
119
+ ob_start();
120
  $this->load_header();
121
  $this->load_content();
122
  $this->load_footer();
123
+ exit;
124
  }
125
 
126
  /**
includes/wizardsetup.helper.php CHANGED
@@ -37,8 +37,8 @@ class TInvWL_WizardSetup {
37
  * @param string $version Plugin version.
38
  */
39
  function __construct( $plugin_name, $version ) {
40
- $this->_name = $plugin_name;
41
- $this->_version = $version;
42
  add_action( 'init', array( $this, 'load' ) );
43
  add_action( 'admin_init', array( $this, 'redirect' ) );
44
  }
@@ -74,8 +74,8 @@ class TInvWL_WizardSetup {
74
  }
75
  delete_transient( '_tinvwl_activation_redirect' );
76
 
77
- $page = filter_input( INPUT_GET, 'page' );
78
- $activate = filter_input( INPUT_GET, 'activate-multi' );
79
  if ( in_array( $page, array( 'tinvwl-wizard' ) ) || is_network_admin() || ! is_null( $activate ) || apply_filters( 'tinvwl_prevent_automatic_wizard_redirect', false ) ) { // @codingStandardsIgnoreLine WordPress.PHP.StrictInArray.MissingTrueStrict
80
  return;
81
  }
37
  * @param string $version Plugin version.
38
  */
39
  function __construct( $plugin_name, $version ) {
40
+ $this->_name = $plugin_name;
41
+ $this->_version = $version;
42
  add_action( 'init', array( $this, 'load' ) );
43
  add_action( 'admin_init', array( $this, 'redirect' ) );
44
  }
74
  }
75
  delete_transient( '_tinvwl_activation_redirect' );
76
 
77
+ $page = filter_input( INPUT_GET, 'page' );
78
+ $activate = filter_input( INPUT_GET, 'activate-multi' );
79
  if ( in_array( $page, array( 'tinvwl-wizard' ) ) || is_network_admin() || ! is_null( $activate ) || apply_filters( 'tinvwl_prevent_automatic_wizard_redirect', false ) ) { // @codingStandardsIgnoreLine WordPress.PHP.StrictInArray.MissingTrueStrict
80
  return;
81
  }
languages/ti-woocommerce-wishlist.pot CHANGED
@@ -5,7 +5,7 @@ msgstr ""
5
  "Project-Id-Version: WooCommerce Wishlist Plugin {{ VERSION }}\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/ti-woocommerce-wishlist\n"
8
- "POT-Creation-Date: 2018-11-30 14:12:37+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
@@ -72,7 +72,7 @@ msgstr ""
72
  msgid "Default Wishlist Name"
73
  msgstr ""
74
 
75
- #: admin/settings/general.class.php:86
76
  msgid "Wishlist Page"
77
  msgstr ""
78
 
@@ -215,17 +215,17 @@ msgid ""
215
  msgstr ""
216
 
217
  #: admin/settings/general.class.php:269 admin/settings/general.class.php:392
218
- #: includes/wizard.class.php:406
219
  msgid "After \"Add to Cart\" button"
220
  msgstr ""
221
 
222
  #: admin/settings/general.class.php:270 admin/settings/general.class.php:393
223
- #: includes/wizard.class.php:407
224
  msgid "Before \"Add to Cart\" button"
225
  msgstr ""
226
 
227
  #: admin/settings/general.class.php:271 admin/settings/general.class.php:395
228
- #: includes/wizard.class.php:408
229
  msgid "Custom position with code"
230
  msgstr ""
231
 
@@ -744,7 +744,7 @@ msgstr ""
744
  msgid "Normal Buttons Text Hover Color"
745
  msgstr ""
746
 
747
- #: admin/settings/upgrade.class.php:34 admin/tinvwl.class.php:253
748
  #: views/wizard/finish.php:31
749
  msgid "Upgrade to Premium"
750
  msgstr ""
@@ -753,65 +753,65 @@ msgstr ""
753
  msgid "Premium Features"
754
  msgstr ""
755
 
756
- #: admin/tinvwl.class.php:93
757
  msgid ""
758
  "<strong>Welcome to WooCommerce Wishlist Plugin<strong> – You‘re almost "
759
  "ready to start :)"
760
  msgstr ""
761
 
762
- #: admin/tinvwl.class.php:95 admin/tinvwl.class.php:115
763
  msgid "Run the Setup Wizard"
764
  msgstr ""
765
 
766
- #: admin/tinvwl.class.php:97
767
  msgid "Skip Setup"
768
  msgstr ""
769
 
770
- #: admin/tinvwl.class.php:105 includes/notice.helper.php:115
771
  msgid "Dismiss"
772
  msgstr ""
773
 
774
- #: admin/tinvwl.class.php:106
775
  msgid "WooCommerce Wishlist Plugin is misconfigured!"
776
  msgstr ""
777
 
778
- #: admin/tinvwl.class.php:107
779
  msgid "Since the Setup Wizard was skipped, the Wishlist may function improperly."
780
  msgstr ""
781
 
782
- #: admin/tinvwl.class.php:108
783
  msgid ""
784
  "Create a New Page or open to edit a page where the Wishlist should be "
785
  "displayed."
786
  msgstr ""
787
 
788
- #: admin/tinvwl.class.php:109
789
  msgid "Add <code>[ti_wishlistsview]</code> shortcode into a page content."
790
  msgstr ""
791
 
792
- #: admin/tinvwl.class.php:110
793
  msgid "In a plugin General Settings section apply this page as a \"Wishlist\" page."
794
  msgstr ""
795
 
796
- #: admin/tinvwl.class.php:112
797
  msgid "Please apply the Wishlist page"
798
  msgstr ""
799
 
800
- #: admin/tinvwl.class.php:113
801
  msgid " or "
802
  msgstr ""
803
 
804
- #: admin/tinvwl.class.php:185
805
  msgid "Are you sure you want to reset the settings?"
806
  msgstr ""
807
 
808
- #: admin/tinvwl.class.php:292
809
  msgid ""
810
  "<code>%1$s</code> version <strong style=\"color:red\">%2$s</strong> is out "
811
  "of date. The core version is <strong style=\"color:red\">%3$s</strong>"
812
  msgstr ""
813
 
814
- #: admin/tinvwl.class.php:318
815
  msgid ""
816
  "<strong>Your theme (%1$s) contains outdated copies of some WooCommerce "
817
  "Wishlist Plugin template files.</strong><br> These files may need updating "
@@ -914,48 +914,48 @@ msgstr ""
914
  msgid "read documentation"
915
  msgstr ""
916
 
917
- #: includes/wizard.class.php:262
918
  msgid "Introduction"
919
  msgstr ""
920
 
921
- #: includes/wizard.class.php:278 views/wizard/step-page.php:16
922
  msgid "Page Setup"
923
  msgstr ""
924
 
925
- #: includes/wizard.class.php:286 includes/wizard.class.php:317
926
  #: public/tinvwl.class.php:544
927
  msgid "Wishlist"
928
  msgstr ""
929
 
930
- #: includes/wizard.class.php:290
931
  msgid "Create Automatically"
932
  msgstr ""
933
 
934
- #: includes/wizard.class.php:291
935
  msgid "Create new Page"
936
  msgstr ""
937
 
938
- #: includes/wizard.class.php:395
939
  msgid "Button"
940
  msgstr ""
941
 
942
- #: includes/wizard.class.php:439
943
  msgid "Processing"
944
  msgstr ""
945
 
946
- #: includes/wizard.class.php:449
947
  msgid "Automatically"
948
  msgstr ""
949
 
950
- #: includes/wizard.class.php:450
951
  msgid "Manual"
952
  msgstr ""
953
 
954
- #: includes/wizard.class.php:474 views/wizard/step-social.php:18
955
  msgid "Share"
956
  msgstr ""
957
 
958
- #: includes/wizard.class.php:515
959
  msgid "Ready!"
960
  msgstr ""
961
 
5
  "Project-Id-Version: WooCommerce Wishlist Plugin {{ VERSION }}\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/ti-woocommerce-wishlist\n"
8
+ "POT-Creation-Date: 2018-12-07 14:06:22+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
72
  msgid "Default Wishlist Name"
73
  msgstr ""
74
 
75
+ #: admin/settings/general.class.php:86 admin/tinvwl.class.php:381
76
  msgid "Wishlist Page"
77
  msgstr ""
78
 
215
  msgstr ""
216
 
217
  #: admin/settings/general.class.php:269 admin/settings/general.class.php:392
218
+ #: includes/wizard.class.php:408
219
  msgid "After \"Add to Cart\" button"
220
  msgstr ""
221
 
222
  #: admin/settings/general.class.php:270 admin/settings/general.class.php:393
223
+ #: includes/wizard.class.php:409
224
  msgid "Before \"Add to Cart\" button"
225
  msgstr ""
226
 
227
  #: admin/settings/general.class.php:271 admin/settings/general.class.php:395
228
+ #: includes/wizard.class.php:410
229
  msgid "Custom position with code"
230
  msgstr ""
231
 
744
  msgid "Normal Buttons Text Hover Color"
745
  msgstr ""
746
 
747
+ #: admin/settings/upgrade.class.php:34 admin/tinvwl.class.php:256
748
  #: views/wizard/finish.php:31
749
  msgid "Upgrade to Premium"
750
  msgstr ""
753
  msgid "Premium Features"
754
  msgstr ""
755
 
756
+ #: admin/tinvwl.class.php:96
757
  msgid ""
758
  "<strong>Welcome to WooCommerce Wishlist Plugin<strong> – You‘re almost "
759
  "ready to start :)"
760
  msgstr ""
761
 
762
+ #: admin/tinvwl.class.php:98 admin/tinvwl.class.php:118
763
  msgid "Run the Setup Wizard"
764
  msgstr ""
765
 
766
+ #: admin/tinvwl.class.php:100
767
  msgid "Skip Setup"
768
  msgstr ""
769
 
770
+ #: admin/tinvwl.class.php:108 includes/notice.helper.php:115
771
  msgid "Dismiss"
772
  msgstr ""
773
 
774
+ #: admin/tinvwl.class.php:109
775
  msgid "WooCommerce Wishlist Plugin is misconfigured!"
776
  msgstr ""
777
 
778
+ #: admin/tinvwl.class.php:110
779
  msgid "Since the Setup Wizard was skipped, the Wishlist may function improperly."
780
  msgstr ""
781
 
782
+ #: admin/tinvwl.class.php:111
783
  msgid ""
784
  "Create a New Page or open to edit a page where the Wishlist should be "
785
  "displayed."
786
  msgstr ""
787
 
788
+ #: admin/tinvwl.class.php:112
789
  msgid "Add <code>[ti_wishlistsview]</code> shortcode into a page content."
790
  msgstr ""
791
 
792
+ #: admin/tinvwl.class.php:113
793
  msgid "In a plugin General Settings section apply this page as a \"Wishlist\" page."
794
  msgstr ""
795
 
796
+ #: admin/tinvwl.class.php:115
797
  msgid "Please apply the Wishlist page"
798
  msgstr ""
799
 
800
+ #: admin/tinvwl.class.php:116
801
  msgid " or "
802
  msgstr ""
803
 
804
+ #: admin/tinvwl.class.php:188
805
  msgid "Are you sure you want to reset the settings?"
806
  msgstr ""
807
 
808
+ #: admin/tinvwl.class.php:295
809
  msgid ""
810
  "<code>%1$s</code> version <strong style=\"color:red\">%2$s</strong> is out "
811
  "of date. The core version is <strong style=\"color:red\">%3$s</strong>"
812
  msgstr ""
813
 
814
+ #: admin/tinvwl.class.php:321
815
  msgid ""
816
  "<strong>Your theme (%1$s) contains outdated copies of some WooCommerce "
817
  "Wishlist Plugin template files.</strong><br> These files may need updating "
914
  msgid "read documentation"
915
  msgstr ""
916
 
917
+ #: includes/wizard.class.php:264
918
  msgid "Introduction"
919
  msgstr ""
920
 
921
+ #: includes/wizard.class.php:280 views/wizard/step-page.php:16
922
  msgid "Page Setup"
923
  msgstr ""
924
 
925
+ #: includes/wizard.class.php:288 includes/wizard.class.php:319
926
  #: public/tinvwl.class.php:544
927
  msgid "Wishlist"
928
  msgstr ""
929
 
930
+ #: includes/wizard.class.php:292
931
  msgid "Create Automatically"
932
  msgstr ""
933
 
934
+ #: includes/wizard.class.php:293
935
  msgid "Create new Page"
936
  msgstr ""
937
 
938
+ #: includes/wizard.class.php:397
939
  msgid "Button"
940
  msgstr ""
941
 
942
+ #: includes/wizard.class.php:441
943
  msgid "Processing"
944
  msgstr ""
945
 
946
+ #: includes/wizard.class.php:451
947
  msgid "Automatically"
948
  msgstr ""
949
 
950
+ #: includes/wizard.class.php:452
951
  msgid "Manual"
952
  msgstr ""
953
 
954
+ #: includes/wizard.class.php:476 views/wizard/step-social.php:18
955
  msgid "Share"
956
  msgstr ""
957
 
958
+ #: includes/wizard.class.php:517
959
  msgid "Ready!"
960
  msgstr ""
961
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: templateinvaders
3
  Donate link: https://templateinvaders.com/product/ti-woocommerce-wishlist-wordpress-plugin/?utm_source=wordpressorg&utm_content=donate
4
  Tags: wishlist, woocommerce, woocommerce wishlist, e-commerce, ecommerce
5
  Requires at least: 4.5
6
- Tested up to: 4.9
7
- Stable tag: 1.9.6
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -130,6 +130,11 @@ If you get stuck, you can ask for help in the [Plugin Forum](https://wordpress.o
130
 
131
 
132
  == Changelog ==
 
 
 
 
 
133
  = 1.9.6 =
134
  *Release Date - 30 November 2018*
135
 
3
  Donate link: https://templateinvaders.com/product/ti-woocommerce-wishlist-wordpress-plugin/?utm_source=wordpressorg&utm_content=donate
4
  Tags: wishlist, woocommerce, woocommerce wishlist, e-commerce, ecommerce
5
  Requires at least: 4.5
6
+ Tested up to: 5.0
7
+ Stable tag: 1.9.7
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
130
 
131
 
132
  == Changelog ==
133
+ = 1.9.7 =
134
+ *Release Date - 7 December 2018*
135
+
136
+ * WordPress 5.0 compatibility
137
+
138
  = 1.9.6 =
139
  *Release Date - 30 November 2018*
140
 
ti-woocommerce-wishlist.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: WooCommerce Wishlist Plugin
5
  * Plugin URI: https://wordpress.org/plugins/ti-woocommerce-wishlist/
6
  * Description: Wishlist functionality for your WooCommerce store.
7
- * Version: 1.9.6
8
  * Requires at least: 4.5
9
  * Tested up to: 4.9
10
  * WC requires at least: 2.6
@@ -41,7 +41,7 @@ if ( ! defined( 'TINVWL_DOMAIN' ) ) {
41
  }
42
 
43
  if ( ! defined( 'TINVWL_FVERSION' ) ) {
44
- define( 'TINVWL_FVERSION', '1.9.6' );
45
  }
46
 
47
  if ( ! defined( 'TINVWL_LOAD_FREE' ) ) {
4
  * Plugin Name: WooCommerce Wishlist Plugin
5
  * Plugin URI: https://wordpress.org/plugins/ti-woocommerce-wishlist/
6
  * Description: Wishlist functionality for your WooCommerce store.
7
+ * Version: 1.9.7
8
  * Requires at least: 4.5
9
  * Tested up to: 4.9
10
  * WC requires at least: 2.6
41
  }
42
 
43
  if ( ! defined( 'TINVWL_FVERSION' ) ) {
44
+ define( 'TINVWL_FVERSION', '1.9.7' );
45
  }
46
 
47
  if ( ! defined( 'TINVWL_LOAD_FREE' ) ) {