From 39a1164d98503677408608970addccdc53c954c0 Mon Sep 17 00:00:00 2001 From: Leif Singer Date: Tue, 21 Nov 2023 12:38:09 +0100 Subject: [PATCH] Update / tweak a few more links in docs and comments (#41598) --- docs/code-snippets/adjust-quantity-input-values.md | 2 +- .../extension-development/how-to-design-a-simple-extension.md | 4 ++-- docs/extension-development/implementing-settings.md | 2 +- docs/payments/payment-gateway-plugin-base.md | 4 ++-- packages/js/components/README.md | 2 +- packages/js/components/changelog/update-tweak-remove-href-li | 4 ++++ plugins/woo-ai/changelog/update-tweak-remove-href-li | 4 ++++ plugins/woo-ai/woo-ai.php | 2 +- .../changelog/update-tweak-remove-href-li | 4 ++++ plugins/woocommerce-beta-tester/woocommerce-beta-tester.php | 2 +- plugins/woocommerce/changelog/update-tweak-remove-href-li | 4 ++++ .../legacy/framework/helpers/class-wc-helper-product.php | 2 +- .../legacy/unit-tests/rest-api/Helpers/ProductHelper.php | 2 +- .../legacy/unit-tests/rest-api/Tests/Version2/products.php | 2 +- .../legacy/unit-tests/rest-api/Tests/Version3/products.php | 2 +- 15 files changed, 29 insertions(+), 13 deletions(-) create mode 100644 packages/js/components/changelog/update-tweak-remove-href-li create mode 100644 plugins/woo-ai/changelog/update-tweak-remove-href-li create mode 100644 plugins/woocommerce-beta-tester/changelog/update-tweak-remove-href-li create mode 100644 plugins/woocommerce/changelog/update-tweak-remove-href-li diff --git a/docs/code-snippets/adjust-quantity-input-values.md b/docs/code-snippets/adjust-quantity-input-values.md index 336168bdcdc..4a3ed25cef9 100644 --- a/docs/code-snippets/adjust-quantity-input-values.md +++ b/docs/code-snippets/adjust-quantity-input-values.md @@ -44,4 +44,4 @@ if ( ! function_exists( 'YOUR_PREFIX_woocommerce_available_variation' ) ) { } ``` -If you are looking for a little more power, check out our [Min/Max Quantities](http://woo.com/products/minmax-quantities) extension! +If you are looking for a little more power, check out our [Min/Max Quantities](https://woo.com/products/minmax-quantities) extension! diff --git a/docs/extension-development/how-to-design-a-simple-extension.md b/docs/extension-development/how-to-design-a-simple-extension.md index cefe1ffb8c2..3f1962b42ce 100644 --- a/docs/extension-development/how-to-design-a-simple-extension.md +++ b/docs/extension-development/how-to-design-a-simple-extension.md @@ -26,7 +26,7 @@ Below is an example of what the header content might look like for an extension ```php /** * Plugin Name: My Great WooCommerce Extension - * Plugin URI: http://woo.com/products/woocommerce-extension/ + * Plugin URI: https://woo.com/products/woocommerce-extension/ * Description: Your extension's description text. * Version: 1.0.0 * Author: Your Name @@ -260,7 +260,7 @@ Below is an example of what a main plugin file might look like for a very simple ```php /** * Plugin Name: My Great WooCommerce Extension - * Plugin URI: http://woo.com/products/woocommerce-extension/ + * Plugin URI: https://woo.com/products/woocommerce-extension/ * Description: Your extension's description text. * Version: 1.0.0 * Author: Your Name diff --git a/docs/extension-development/implementing-settings.md b/docs/extension-development/implementing-settings.md index 0bda77e6eb6..839468de304 100644 --- a/docs/extension-development/implementing-settings.md +++ b/docs/extension-development/implementing-settings.md @@ -190,7 +190,7 @@ public function init_form_fields() { 'title' => __( 'Customize!', 'woocommerce-integration-demo' ), 'type' => 'button', 'custom_attributes' => array( - 'onclick' => "location.href='http://www.woo.com'", + 'onclick' => "location.href='https://woo.com'", ), 'description' => __( 'Customize your settings by going to the integration site directly.', 'woocommerce-integration-demo' ), 'desc_tip' => true, diff --git a/docs/payments/payment-gateway-plugin-base.md b/docs/payments/payment-gateway-plugin-base.md index ad7a07d7c09..b02f0907185 100644 --- a/docs/payments/payment-gateway-plugin-base.md +++ b/docs/payments/payment-gateway-plugin-base.md @@ -7,11 +7,11 @@ This code can be used as a base to create your own simple custom payment gateway Gateway -Plugin URI: http://woothemes.com/woocommerce +Plugin URI: https://woothemes.com/woocommerce Description: Extends WooCommerce with an gateway. Version: 1.0 Author: WooThemes -Author URI: http://woothemes.com/ +Author URI: https://woothemes.com/ Copyright: © 2009-2011 WooThemes. License: GNU General Public License v3.0 License URI: http://www.gnu.org/licenses/gpl-3.0.html diff --git a/packages/js/components/README.md b/packages/js/components/README.md index df6ac549179..8daf7e3bcb3 100644 --- a/packages/js/components/README.md +++ b/packages/js/components/README.md @@ -39,7 +39,7 @@ If you are using these components in a project that uses Jest for testing, you m Cannot find module '@woocommerce/settings' from 'node_modules/@woocommerce/experimental/node_modules/@woocommerce/navigation/build/index.js' ``` -To fix this, you will need to mock the `@woocommerce/settings` because it's an alias that points to the `window.wcSettings`, which in turn comes from and is maintained by the [WC Blocks](https://github.com/woocommerce/woocommerce-blocks) package, the front-end code for this is located [here](https://href.li/?https://github.com/woocommerce/woocommerce-gutenberg-products-block/tree/trunk/assets/js/settings/shared). +To fix this, you will need to mock the `@woocommerce/settings` because it's an alias that points to the `window.wcSettings`, which in turn comes from and is maintained by the [WC Blocks](https://github.com/woocommerce/woocommerce-blocks) package, the front-end code for this is located [here](https://github.com/woocommerce/woocommerce-gutenberg-products-block/tree/trunk/assets/js/settings/shared). This can be done by adding the following to your Jest config: diff --git a/packages/js/components/changelog/update-tweak-remove-href-li b/packages/js/components/changelog/update-tweak-remove-href-li new file mode 100644 index 00000000000..863f19d99d7 --- /dev/null +++ b/packages/js/components/changelog/update-tweak-remove-href-li @@ -0,0 +1,4 @@ +Significance: patch +Type: tweak + +Update / tweak a few more links in docs and comments. diff --git a/plugins/woo-ai/changelog/update-tweak-remove-href-li b/plugins/woo-ai/changelog/update-tweak-remove-href-li new file mode 100644 index 00000000000..863f19d99d7 --- /dev/null +++ b/plugins/woo-ai/changelog/update-tweak-remove-href-li @@ -0,0 +1,4 @@ +Significance: patch +Type: tweak + +Update / tweak a few more links in docs and comments. diff --git a/plugins/woo-ai/woo-ai.php b/plugins/woo-ai/woo-ai.php index d71bb0c2d03..19ed13dfd61 100644 --- a/plugins/woo-ai/woo-ai.php +++ b/plugins/woo-ai/woo-ai.php @@ -5,7 +5,7 @@ * Description: Enable AI experiments within the WooCommerce experience. Learn more. * Version: 0.5.0 * Author: WooCommerce - * Author URI: http://woo.com/ + * Author URI: https://woo.com/ * Requires at least: 5.8 * Tested up to: 6.3 * WC requires at least: 6.7 diff --git a/plugins/woocommerce-beta-tester/changelog/update-tweak-remove-href-li b/plugins/woocommerce-beta-tester/changelog/update-tweak-remove-href-li new file mode 100644 index 00000000000..863f19d99d7 --- /dev/null +++ b/plugins/woocommerce-beta-tester/changelog/update-tweak-remove-href-li @@ -0,0 +1,4 @@ +Significance: patch +Type: tweak + +Update / tweak a few more links in docs and comments. diff --git a/plugins/woocommerce-beta-tester/woocommerce-beta-tester.php b/plugins/woocommerce-beta-tester/woocommerce-beta-tester.php index c9891f21a80..aa5b3280aab 100644 --- a/plugins/woocommerce-beta-tester/woocommerce-beta-tester.php +++ b/plugins/woocommerce-beta-tester/woocommerce-beta-tester.php @@ -5,7 +5,7 @@ * Description: Run bleeding edge versions of WooCommerce. This will replace your installed version of WooCommerce with the latest tagged release - use with caution, and not on production sites. * Version: 2.3.0 * Author: WooCommerce - * Author URI: http://woo.com/ + * Author URI: https://woo.com/ * Requires at least: 5.8 * Tested up to: 6.0 * WC requires at least: 6.7 diff --git a/plugins/woocommerce/changelog/update-tweak-remove-href-li b/plugins/woocommerce/changelog/update-tweak-remove-href-li new file mode 100644 index 00000000000..863f19d99d7 --- /dev/null +++ b/plugins/woocommerce/changelog/update-tweak-remove-href-li @@ -0,0 +1,4 @@ +Significance: patch +Type: tweak + +Update / tweak a few more links in docs and comments. diff --git a/plugins/woocommerce/tests/legacy/framework/helpers/class-wc-helper-product.php b/plugins/woocommerce/tests/legacy/framework/helpers/class-wc-helper-product.php index e57155a9509..7b9d6c3a9f1 100644 --- a/plugins/woocommerce/tests/legacy/framework/helpers/class-wc-helper-product.php +++ b/plugins/woocommerce/tests/legacy/framework/helpers/class-wc-helper-product.php @@ -106,7 +106,7 @@ class WC_Helper_Product { 'name' => 'Dummy External Product', 'regular_price' => 10, 'sku' => 'DUMMY EXTERNAL SKU', - 'product_url' => 'http://woo.com', + 'product_url' => 'https://woo.com', 'button_text' => 'Buy external product', ) ); diff --git a/plugins/woocommerce/tests/legacy/unit-tests/rest-api/Helpers/ProductHelper.php b/plugins/woocommerce/tests/legacy/unit-tests/rest-api/Helpers/ProductHelper.php index 4c59cc4cbb3..a71b09bc972 100644 --- a/plugins/woocommerce/tests/legacy/unit-tests/rest-api/Helpers/ProductHelper.php +++ b/plugins/woocommerce/tests/legacy/unit-tests/rest-api/Helpers/ProductHelper.php @@ -79,7 +79,7 @@ class ProductHelper { 'name' => 'Dummy External Product', 'regular_price' => 10, 'sku' => 'DUMMY EXTERNAL SKU', - 'product_url' => 'http://woo.com', + 'product_url' => 'https://woo.com', 'button_text' => 'Buy external product', ) ); diff --git a/plugins/woocommerce/tests/legacy/unit-tests/rest-api/Tests/Version2/products.php b/plugins/woocommerce/tests/legacy/unit-tests/rest-api/Tests/Version2/products.php index f17c17d4c15..b1830c801bf 100644 --- a/plugins/woocommerce/tests/legacy/unit-tests/rest-api/Tests/Version2/products.php +++ b/plugins/woocommerce/tests/legacy/unit-tests/rest-api/Tests/Version2/products.php @@ -251,7 +251,7 @@ class Products_API_V2 extends WC_REST_Unit_Test_Case { $data = $response->get_data(); $this->assertEquals( 'Buy external product', $data['button_text'] ); - $this->assertEquals( 'http://woo.com', $data['external_url'] ); + $this->assertEquals( 'https://woo.com', $data['external_url'] ); $request = new WP_REST_Request( 'PUT', '/wc/v2/products/' . $product->get_id() ); $request->set_body_params( diff --git a/plugins/woocommerce/tests/legacy/unit-tests/rest-api/Tests/Version3/products.php b/plugins/woocommerce/tests/legacy/unit-tests/rest-api/Tests/Version3/products.php index 793a454b8d3..1987c7a8fb7 100644 --- a/plugins/woocommerce/tests/legacy/unit-tests/rest-api/Tests/Version3/products.php +++ b/plugins/woocommerce/tests/legacy/unit-tests/rest-api/Tests/Version3/products.php @@ -314,7 +314,7 @@ class WC_Tests_API_Product extends WC_REST_Unit_Test_Case { $data = $response->get_data(); $this->assertEquals( 'Buy external product', $data['button_text'] ); - $this->assertEquals( 'http://woo.com', $data['external_url'] ); + $this->assertEquals( 'https://woo.com', $data['external_url'] ); $request = new WP_REST_Request( 'PUT', '/wc/v3/products/' . $product->get_id() ); $request->set_body_params(