Printful Integration for WooCommerce - Version 2.1.3

Version Description

Fixed minor issue with site URL verification in plugin status page

Download this release

Release Info

Developer printful
Plugin Icon 128x128 Printful Integration for WooCommerce
Version 2.1.3
Comparing to
See all releases

Code changes from version 2.1.2 to 2.1.3

includes/class-printful-admin-status.php CHANGED
@@ -527,7 +527,6 @@ class Printful_Admin_Status {
527
  * @return int
528
  */
529
  private function check_WC_auth_url_access() {
530
-
531
  $url = home_url( '/' ) . 'wc-auth/v1/authorize?app_name=Printful&scope=read_write&user_id=1&return_url=https%3A%2F%2Fwww.printful.com%2Fdashboard%2Fwoocommerce%2Freturn&callback_url=https%3A%2F%2Fapi.printful.com%2Fhook%2Fwoocommerce-auth-callback';
532
  $http_args = array(
533
  'timeout' => 60,
@@ -555,14 +554,20 @@ class Printful_Admin_Status {
555
  */
556
  private function check_site_url_redirect()
557
  {
558
- $head = wp_remote_head(get_option( 'siteurl' ), array('redirection' => 0));
559
  /** @var WP_HTTP_Requests_Response $response */
560
- $response = $head['http_response'];
561
- if ($response->get_status() == 200) {
 
 
 
 
 
 
562
  return self::PF_STATUS_OK;
563
  }
564
 
565
- if (in_array($response->get_status(), array(301, 302, 303, 307))) {
566
  return self::PF_STATUS_FAIL;
567
  }
568
 
527
  * @return int
528
  */
529
  private function check_WC_auth_url_access() {
 
530
  $url = home_url( '/' ) . 'wc-auth/v1/authorize?app_name=Printful&scope=read_write&user_id=1&return_url=https%3A%2F%2Fwww.printful.com%2Fdashboard%2Fwoocommerce%2Freturn&callback_url=https%3A%2F%2Fapi.printful.com%2Fhook%2Fwoocommerce-auth-callback';
531
  $http_args = array(
532
  'timeout' => 60,
554
  */
555
  private function check_site_url_redirect()
556
  {
557
+ $regular_site_url_req = wp_remote_head( get_option( 'siteurl' ), array('redirection' => 0));
558
  /** @var WP_HTTP_Requests_Response $response */
559
+ $regular_response = $regular_site_url_req['http_response'];
560
+
561
+ //need to not trigger issues for subfolder wordpress setups
562
+ $slashed_site_url_req = wp_remote_head( trailingslashit(get_option( 'siteurl' )), array('redirection' => 0));
563
+ /** @var WP_HTTP_Requests_Response $slashed_response */
564
+ $slashed_response = $slashed_site_url_req['http_response'];
565
+
566
+ if ($regular_response->get_status() == 200 || $slashed_response->get_status() == 200) {
567
  return self::PF_STATUS_OK;
568
  }
569
 
570
+ if (in_array($regular_response->get_status(), array(301, 302, 303, 307))) {
571
  return self::PF_STATUS_FAIL;
572
  }
573
 
printful-shipping.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Printful Integration for WooCommerce
4
  Plugin URI: https://wordpress.org/plugins/printful-shipping-for-woocommerce/
5
  Description: Calculate correct shipping and tax rates for your Printful-Woocommerce integration.
6
- Version: 2.1.2
7
  Author: Printful
8
  Author URI: http://www.printful.com
9
  License: GPL2 http://www.gnu.org/licenses/gpl-2.0.html
@@ -20,7 +20,7 @@ if ( ! defined( 'PF_PLUGIN_FILE' ) ) {
20
 
21
  class Printful_Base {
22
 
23
- const VERSION = '2.1.2';
24
  const PF_HOST = 'https://www.printful.com/';
25
  const PF_API_HOST = 'https://api.printful.com/';
26
 
3
  Plugin Name: Printful Integration for WooCommerce
4
  Plugin URI: https://wordpress.org/plugins/printful-shipping-for-woocommerce/
5
  Description: Calculate correct shipping and tax rates for your Printful-Woocommerce integration.
6
+ Version: 2.1.3
7
  Author: Printful
8
  Author URI: http://www.printful.com
9
  License: GPL2 http://www.gnu.org/licenses/gpl-2.0.html
20
 
21
  class Printful_Base {
22
 
23
+ const VERSION = '2.1.3';
24
  const PF_HOST = 'https://www.printful.com/';
25
  const PF_API_HOST = 'https://api.printful.com/';
26
 
readme.txt CHANGED
@@ -2,27 +2,29 @@
2
  Contributors: girts_u, kievins, kberzins
3
  Tags: woocommerce, printful, drop shipping, shipping, shipping rates, fulfillment, printing, fedex, carriers, checkout, t-shirts
4
  Requires at least: 4.4
5
- Tested up to: 5.1
6
- Stable tag: 2.1.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
- See order statistics, automate tax settings and enable live shipping rates for your customers.
11
 
12
  == Description ==
13
 
14
- = Partner with the #1 print-on-demand drop shipping plugin. Over 20,000 active stores and counting! =
15
 
16
  With Printful, you can focus on building your store. We will print, fulfill and ship the product for you. Simply upload your design, add it to your store and we will do the rest.
17
 
18
  We have a range of over 160 products, from t-shirts, leggings, and hats to posters, mugs, and beanbags. We'll fulfill and ship every order in-house, on-demand, and in an average of 3 business days at our locations in California, North Carolina, Mexico, and Europe.
19
 
20
- Using our plugin you also get access to automated tax settings and live shipping rates.
21
 
22
  = How does Printful work? =
23
 
24
  When a customer buys something from your WooCommerce store, the order is automatically imported to Printful, where we fulfill and ship it to them under your brand. You can then see your order, revenue and profit statistics on your WooCommerce dashboard.
25
 
 
 
26
  Learn more about the WooCommerce + Printful integration [here](https://www.printful.com/landing/woocommerce-print-products-fulfillment).
27
 
28
  = With WooCommerce + Printful, you get: =
@@ -62,6 +64,9 @@ Go to https://www.printful.com/dashboard/store , select your WooCommerce store,
62
 
63
  == Upgrade Notice ==
64
 
 
 
 
65
  = 2.1.2 =
66
  Improved theme support for personalized products and other minor bug fixes
67
 
@@ -145,6 +150,9 @@ First release
145
 
146
  == Changelog ==
147
 
 
 
 
148
  = 2.1.2 =
149
  * Improved theme support for personalized products and other minor bug fixes
150
 
2
  Contributors: girts_u, kievins, kberzins
3
  Tags: woocommerce, printful, drop shipping, shipping, shipping rates, fulfillment, printing, fedex, carriers, checkout, t-shirts
4
  Requires at least: 4.4
5
+ Tested up to: 5.2
6
+ Stable tag: 2.1.3
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
+ Grow your store with the top print-on-demand dropshipping plugin
11
 
12
  == Description ==
13
 
14
+ = Partner with the #1 print-on-demand drop shipping plugin. Over 30,000 active stores and counting! =
15
 
16
  With Printful, you can focus on building your store. We will print, fulfill and ship the product for you. Simply upload your design, add it to your store and we will do the rest.
17
 
18
  We have a range of over 160 products, from t-shirts, leggings, and hats to posters, mugs, and beanbags. We'll fulfill and ship every order in-house, on-demand, and in an average of 3 business days at our locations in California, North Carolina, Mexico, and Europe.
19
 
20
+ Printful users have already made $540 million in sales, so start selling!
21
 
22
  = How does Printful work? =
23
 
24
  When a customer buys something from your WooCommerce store, the order is automatically imported to Printful, where we fulfill and ship it to them under your brand. You can then see your order, revenue and profit statistics on your WooCommerce dashboard.
25
 
26
+ We’ve been trusted to print over 10 million products, when will we print yours?
27
+
28
  Learn more about the WooCommerce + Printful integration [here](https://www.printful.com/landing/woocommerce-print-products-fulfillment).
29
 
30
  = With WooCommerce + Printful, you get: =
64
 
65
  == Upgrade Notice ==
66
 
67
+ = 2.1.3 =
68
+ Fixed minor issue with site URL verification in plugin status page
69
+
70
  = 2.1.2 =
71
  Improved theme support for personalized products and other minor bug fixes
72
 
150
 
151
  == Changelog ==
152
 
153
+ = 2.1.3 =
154
+ * Fixed minor issue with site URL verification in plugin status page
155
+
156
  = 2.1.2 =
157
  * Improved theme support for personalized products and other minor bug fixes
158