auto-patch 748-dev-dev01-2024-06-08T22_32_58

This commit is contained in:
root
2024-06-08 22:32:59 +00:00
parent b81216dce7
commit aa87a51361
25 changed files with 3628 additions and 3201 deletions

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.1\n"
"Project-Id-Version: WooCommerce 8.9.2\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-20T14:48:10+00:00\n"
"POT-Creation-Date: 2024-05-30T15:21:08+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"
@@ -22643,12 +22643,12 @@ msgstr ""
msgid "Error: Delivery URL returned response code: %s"
msgstr ""
#: includes/class-woocommerce.php:1090
#: includes/class-woocommerce.php:1105
msgid "You have installed a development version of WooCommerce which requires files to be built and minified. From the plugin directory, run <code>pnpm install</code> and then <code>pnpm --filter='@woocommerce/plugin-woocommerce' build</code> to build and minify assets."
msgstr ""
#. translators: 1: URL of WordPress.org Repository 2: URL of the GitHub Repository release page
#: includes/class-woocommerce.php:1093
#: includes/class-woocommerce.php:1108
msgid "Or you can download a pre-built version of the plugin from the <a href=\"%1$s\">WordPress.org repository</a> or by visiting <a href=\"%2$s\">the releases page in the GitHub repository</a>."
msgstr ""
@@ -39417,7 +39417,7 @@ msgstr ""
msgid "Order attribution field: %s"
msgstr ""
#: src/Internal/Orders/OrderAttributionController.php:468
#: src/Internal/Orders/OrderAttributionController.php:464
#: templates/order/attribution-details.php:27
msgid "Origin"
msgstr ""

View File

@@ -41,7 +41,7 @@ final class WooCommerce {
*
* @var string
*/
public $version = '8.9.1';
public $version = '8.9.2';
/**
* WooCommerce Schema version.
@@ -248,7 +248,9 @@ final class WooCommerce {
add_action( 'init', array( 'WC_Emails', 'init_transactional_emails' ) );
add_action( 'init', array( $this, 'add_image_sizes' ) );
add_action( 'init', array( $this, 'load_rest_api' ) );
add_action( 'init', array( 'WC_Site_Tracking', 'init' ) );
if ( $this->is_request( 'admin' ) || ( $this->is_rest_api_request() && ! $this->is_store_api_request() ) || ( defined( 'WP_CLI' ) && WP_CLI ) ) {
add_action( 'init', array( 'WC_Site_Tracking', 'init' ) );
}
add_action( 'switch_blog', array( $this, 'wpdb_table_fix' ), 0 );
add_action( 'activated_plugin', array( $this, 'activated_plugin' ) );
add_action( 'deactivated_plugin', array( $this, 'deactivated_plugin' ) );
@@ -461,6 +463,19 @@ final class WooCommerce {
return apply_filters( 'woocommerce_is_rest_api_request', $is_rest_api_request );
}
/**
* Returns true if the request is a store REST API request.
*
* @return bool
*/
public function is_store_api_request() {
if ( empty( $_SERVER['REQUEST_URI'] ) ) {
return false;
}
// phpcs:disable WordPress.Security.ValidatedSanitizedInput.MissingUnslash, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
return false !== strpos( $_SERVER['REQUEST_URI'], trailingslashit( rest_get_url_prefix() ) . 'wc/store/' );
}
/**
* Load REST API.
*/

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.8.3
Stable tag: 8.9.1
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
@@ -165,15 +165,11 @@ WooCommerce comes with some sample data you can use to see how products look; im
== Changelog ==
= 8.9.1 2024-05-21 =
= 8.9.2 2024-06-04 =
**WooCommerce**
* Fix - Automated installation of the Legacy REST API plugin should only happen once. After that, it must be installed manually (if needed). [#47563](https://github.com/woocommerce/woocommerce/pull/47563)
* Fix - Fixes a crash in the modal block editor when the Add button is clicked with Gutenberg 18.3.0 and later [#47561](https://github.com/woocommerce/woocommerce/pull/47561)
* Fix - Fix warning when loading guest sessions from previous sessions. [#47514](https://github.com/woocommerce/woocommerce/pull/47514)
* Fix - Prevent calling woocommerce.com on empty update-check and update-check-public payload. [#47507](https://github.com/woocommerce/woocommerce/pull/47507)
* Fix - Prevent tracking files from being enqueued on the front end. [#47938](https://github.com/woocommerce/woocommerce/pull/47938)
[See changelog for all versions](https://raw.githubusercontent.com/woocommerce/woocommerce/trunk/changelog.txt).
/trunk/changelog.txt).

View File

@@ -16,7 +16,6 @@ use WC_Customer;
use WC_Log_Levels;
use WC_Logger_Interface;
use WC_Order;
use WC_Tracks;
/**
* Class OrderAttributionController
@@ -437,12 +436,9 @@ class OrderAttributionController implements RegisterHooksInterface {
'customer_registered' => $order->get_customer_id() ? 'yes' : 'no',
);
$this->proxy->call_static(
WC_Tracks::class,
'record_event',
'order_attribution',
$tracks_data
);
if ( function_exists( 'wc_admin_record_tracks_event' ) ) {
wc_admin_record_tracks_event( 'order_attribution', $tracks_data );
}
}
/**

View File

@@ -1,8 +1,8 @@
<?php return array(
'root' => array(
'name' => 'woocommerce/woocommerce',
'pretty_version' => '8.9.1',
'version' => '8.9.1.0',
'pretty_version' => '8.9.2',
'version' => '8.9.2.0',
'reference' => null,
'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../../',
@@ -167,8 +167,8 @@
'dev_requirement' => false,
),
'woocommerce/woocommerce' => array(
'pretty_version' => '8.9.1',
'version' => '8.9.1.0',
'pretty_version' => '8.9.2',
'version' => '8.9.2.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.1.0',
'version' => '8.9.2.0',
'path' => $baseDir . '/src/StoreApi/deprecated.php'
),
'9ce98895d0a470c71998c4b530020d26' => array(
'version' => '8.9.1.0',
'version' => '8.9.2.0',
'path' => $baseDir . '/src/StoreApi/functions.php'
),
'c379ea42c3f5964a973a7106b08c5ef0' => array(
'version' => '8.9.1.0',
'version' => '8.9.2.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.1
* Version: 8.9.2
* Author: Automattic
* Author URI: https://woocommerce.com
* Text Domain: woocommerce