auto-patch 16-dev-dev01-2024-06-15T02_53_05

This commit is contained in:
root
2024-06-15 02:53:05 +00:00
parent 494719fadc
commit 3d93e1b9f1
9 changed files with 1250 additions and 1246 deletions

View File

@@ -155,12 +155,16 @@
* but it's not yet supported in Safari.
*/
connectedCallback() {
let inputs = '';
this.innerHTML = '';
const inputs = new DocumentFragment();
for( const fieldName of this._fieldNames ) {
const value = stringifyFalsyInputValue( this.values[ fieldName ] );
inputs += `<input type="hidden" name="${params.prefix}${fieldName}" value="${value}"/>`;
const input = document.createElement( 'input' );
input.type = 'hidden';
input.name = `${params.prefix}${fieldName}`;
input.value = stringifyFalsyInputValue( ( this.values && this.values[ fieldName ] ) || '' );
inputs.appendChild( input );
}
this.innerHTML = inputs;
this.appendChild( inputs );
}
/**

View File

@@ -1 +1 @@
!function(e){"use strict";const t=e.params,n=(document.querySelector.bind(document),(e,t)=>t.split(".").reduce((e,t)=>e&&e[t],e)),s=()=>null,i=e=>null===e||e===undefined?"":e,o="wc/store/checkout";function a(){const i=t.allowTracking?n:s,o=Object.entries(e.fields).map(([e,t])=>[e,i(sbjs.get,t)]);return Object.fromEntries(o)}function c(e){window.wp&&window.wp.data&&window.wp.data.dispatch&&window.wc&&window.wc.wcBlocksData&&window.wp.data.dispatch(window.wc.wcBlocksData.CHECKOUT_STORE_KEY).__internalSetExtensionData("woocommerce/order-attribution",e,!0)}function r(){if(window.wp&&window.wp.data&&"function"==typeof window.wp.data.subscribe){const e=window.wp.data.subscribe(function(){e(),c(a())},o)}}e.setOrderTracking=function(e){if(t.allowTracking=e,e){if("undefined"==typeof sbjs)return;sbjs.init({lifetime:Number(t.lifetime),session_length:Number(t.session),timezone_offset:"0"})}else!function(){const e=window.location.hostname;["sbjs_current","sbjs_current_add","sbjs_first","sbjs_first_add","sbjs_session","sbjs_udata","sbjs_migrations","sbjs_promo"].forEach(t=>{document.cookie=`${t}=; path=/; max-age=-999; domain=.${e};`})}();const n=a();!function(e){for(const t of document.querySelectorAll("wc-order-attribution-inputs"))t.values=e}(n),c(n)},e.setOrderTracking(t.allowTracking),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",r):r(),window.customElements.define("wc-order-attribution-inputs",class extends HTMLElement{constructor(){if(super(),this._fieldNames=Object.keys(e.fields),this.hasOwnProperty("_values")){let e=this.values;delete this.values,this.values=e||{}}}connectedCallback(){let e="";for(const n of this._fieldNames){const s=i(this.values[n]);e+=`<input type="hidden" name="${t.prefix}${n}" value="${s}"/>`}this.innerHTML=e}set values(e){if(this._values=e,this.isConnected)for(const e of this._fieldNames){const n=this.querySelector(`input[name="${t.prefix}${e}"]`);n?n.value=i(this.values[e]):console.warn(`Field "${e}" not found. Most likely, the '<wc-order-attribution-inputs>' element was manipulated.`)}}get values(){return this._values}})}(window.wc_order_attribution);
!function(e){"use strict";const t=e.params,n=(document.querySelector.bind(document),(e,t)=>t.split(".").reduce((e,t)=>e&&e[t],e)),s=()=>null,i=e=>null===e||e===undefined?"":e,o="wc/store/checkout";function a(){const i=t.allowTracking?n:s,o=Object.entries(e.fields).map(([e,t])=>[e,i(sbjs.get,t)]);return Object.fromEntries(o)}function c(e){window.wp&&window.wp.data&&window.wp.data.dispatch&&window.wc&&window.wc.wcBlocksData&&window.wp.data.dispatch(window.wc.wcBlocksData.CHECKOUT_STORE_KEY).__internalSetExtensionData("woocommerce/order-attribution",e,!0)}function r(){if(window.wp&&window.wp.data&&"function"==typeof window.wp.data.subscribe){const e=window.wp.data.subscribe(function(){e(),c(a())},o)}}e.setOrderTracking=function(e){if(t.allowTracking=e,e){if("undefined"==typeof sbjs)return;sbjs.init({lifetime:Number(t.lifetime),session_length:Number(t.session),timezone_offset:"0"})}else!function(){const e=window.location.hostname;["sbjs_current","sbjs_current_add","sbjs_first","sbjs_first_add","sbjs_session","sbjs_udata","sbjs_migrations","sbjs_promo"].forEach(t=>{document.cookie=`${t}=; path=/; max-age=-999; domain=.${e};`})}();const n=a();!function(e){for(const t of document.querySelectorAll("wc-order-attribution-inputs"))t.values=e}(n),c(n)},e.setOrderTracking(t.allowTracking),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",r):r(),window.customElements.define("wc-order-attribution-inputs",class extends HTMLElement{constructor(){if(super(),this._fieldNames=Object.keys(e.fields),this.hasOwnProperty("_values")){let e=this.values;delete this.values,this.values=e||{}}}connectedCallback(){this.innerHTML="";const e=new DocumentFragment;for(const n of this._fieldNames){const s=document.createElement("input");s.type="hidden",s.name=`${t.prefix}${n}`,s.value=i(this.values&&this.values[n]||""),e.appendChild(s)}this.appendChild(e)}set values(e){if(this._values=e,this.isConnected)for(const e of this._fieldNames){const n=this.querySelector(`input[name="${t.prefix}${e}"]`);n?n.value=i(this.values[e]):console.warn(`Field "${e}" not found. Most likely, the '<wc-order-attribution-inputs>' element was manipulated.`)}}get values(){return this._values}})}(window.wc_order_attribution);

View File

@@ -2,14 +2,14 @@
# This file is distributed under the same license as the WooCommerce plugin.
msgid ""
msgstr ""
"Project-Id-Version: WooCommerce 8.9.2\n"
"Project-Id-Version: WooCommerce 8.9.3\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2024-05-30T15:21:08+00:00\n"
"POT-Creation-Date: 2024-06-06T12:29:12+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.10.0\n"
"X-Domain: woocommerce\n"

View File

@@ -41,7 +41,7 @@ final class WooCommerce {
*
* @var string
*/
public $version = '8.9.2';
public $version = '8.9.3';
/**
* WooCommerce Schema version.

View File

@@ -4,7 +4,7 @@ Tags: online store, ecommerce, shop, shopping cart, sell online, storefront, che
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 7.4
Stable tag: 8.9.1
Stable tag: 8.9.2
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
@@ -165,11 +165,11 @@ WooCommerce comes with some sample data you can use to see how products look; im
== Changelog ==
= 8.9.2 2024-06-04 =
= 8.9.3 2024-06-10 =
**WooCommerce**
* Fix - Prevent tracking files from being enqueued on the front end. [#47938](https://github.com/woocommerce/woocommerce/pull/47938)
* Security - Prevent HTML & JS injection attacts on registration and checkout forms when the Order Attribution is enabled.
[See changelog for all versions](https://raw.githubusercontent.com/woocommerce/woocommerce/trunk/changelog.txt).
/trunk/changelog.txt).

View File

@@ -1,8 +1,8 @@
<?php return array(
'root' => array(
'name' => 'woocommerce/woocommerce',
'pretty_version' => '8.9.2',
'version' => '8.9.2.0',
'pretty_version' => '8.9.3',
'version' => '8.9.3.0',
'reference' => null,
'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../../',
@@ -167,8 +167,8 @@
'dev_requirement' => false,
),
'woocommerce/woocommerce' => array(
'pretty_version' => '8.9.2',
'version' => '8.9.2.0',
'pretty_version' => '8.9.3',
'version' => '8.9.3.0',
'reference' => null,
'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../../',

View File

@@ -11,15 +11,15 @@ return array(
'path' => $vendorDir . '/symfony/polyfill-php80/bootstrap.php'
),
'44e8414cd27982ecf86403af6e48f123' => array(
'version' => '8.9.2.0',
'version' => '8.9.3.0',
'path' => $baseDir . '/src/StoreApi/deprecated.php'
),
'9ce98895d0a470c71998c4b530020d26' => array(
'version' => '8.9.2.0',
'version' => '8.9.3.0',
'path' => $baseDir . '/src/StoreApi/functions.php'
),
'c379ea42c3f5964a973a7106b08c5ef0' => array(
'version' => '8.9.2.0',
'version' => '8.9.3.0',
'path' => $baseDir . '/src/Blocks/Domain/Services/functions.php'
),
);

View File

@@ -3,7 +3,7 @@
* Plugin Name: WooCommerce
* Plugin URI: https://woocommerce.com/
* Description: An ecommerce toolkit that helps you sell anything. Beautifully.
* Version: 8.9.2
* Version: 8.9.3
* Author: Automattic
* Author URI: https://woocommerce.com
* Text Domain: woocommerce