Update / tweak a few more links in docs and comments (#41598)

This commit is contained in:
Leif Singer 2023-11-21 12:38:09 +01:00 committed by GitHub
parent 03937c7ccd
commit 39a1164d98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 29 additions and 13 deletions

View File

@ -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!

View File

@ -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

View File

@ -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,

View File

@ -7,11 +7,11 @@ This code can be used as a base to create your own simple custom payment gateway
<?php
/*
Plugin Name: WooCommerce <enter name> Gateway
Plugin URI: http://woothemes.com/woocommerce
Plugin URI: https://woothemes.com/woocommerce
Description: Extends WooCommerce with an <enter name> 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

View File

@ -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:

View File

@ -0,0 +1,4 @@
Significance: patch
Type: tweak
Update / tweak a few more links in docs and comments.

View File

@ -0,0 +1,4 @@
Significance: patch
Type: tweak
Update / tweak a few more links in docs and comments.

View File

@ -5,7 +5,7 @@
* Description: Enable AI experiments within the WooCommerce experience. <a href="https://automattic.com/ai-guidelines" target="_blank" rel="noopener noreferrer">Learn more</a>.
* 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

View File

@ -0,0 +1,4 @@
Significance: patch
Type: tweak
Update / tweak a few more links in docs and comments.

View File

@ -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

View File

@ -0,0 +1,4 @@
Significance: patch
Type: tweak
Update / tweak a few more links in docs and comments.

View File

@ -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',
)
);

View File

@ -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',
)
);

View File

@ -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(

View File

@ -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(