plugin updates

This commit is contained in:
Tony Volpe
2024-10-02 17:12:33 -04:00
parent f6021c7c22
commit 5e5b879a68
18 changed files with 1380 additions and 1354 deletions

View File

@@ -5,7 +5,7 @@
* Plugin Name: Classic Editor * Plugin Name: Classic Editor
* Plugin URI: https://wordpress.org/plugins/classic-editor/ * Plugin URI: https://wordpress.org/plugins/classic-editor/
* Description: Enables the WordPress classic editor and the old-style Edit Post screen with TinyMCE, Meta Boxes, etc. Supports the older plugins that extend this screen. * Description: Enables the WordPress classic editor and the old-style Edit Post screen with TinyMCE, Meta Boxes, etc. Supports the older plugins that extend this screen.
* Version: 1.6.4 * Version: 1.6.5
* Author: WordPress Contributors * Author: WordPress Contributors
* Author URI: https://github.com/WordPress/classic-editor/ * Author URI: https://github.com/WordPress/classic-editor/
* License: GPLv2 or later * License: GPLv2 or later
@@ -65,6 +65,9 @@ class Classic_Editor {
// Always remove the "Try Gutenberg" dashboard widget. See https://core.trac.wordpress.org/ticket/44635. // Always remove the "Try Gutenberg" dashboard widget. See https://core.trac.wordpress.org/ticket/44635.
remove_action( 'try_gutenberg_panel', 'wp_try_gutenberg_panel' ); remove_action( 'try_gutenberg_panel', 'wp_try_gutenberg_panel' );
// Fix for Safari 18 negative horizontal margin on floats.
add_action( 'admin_print_styles', array( __CLASS__, 'safari_18_temp_fix' ) );
if ( ! $block_editor && ! $gutenberg ) { if ( ! $block_editor && ! $gutenberg ) {
return; return;
@@ -974,6 +977,28 @@ class Classic_Editor {
delete_option( 'classic-editor-replace' ); delete_option( 'classic-editor-replace' );
delete_option( 'classic-editor-allow-users' ); delete_option( 'classic-editor-allow-users' );
} }
/**
* Temporary fix for Safari 18 negative horizontal margin on floats.
* See: https://core.trac.wordpress.org/ticket/62082 and
* https://bugs.webkit.org/show_bug.cgi?id=280063.
* TODO: Remove when Safari is fixed.
*/
public static function safari_18_temp_fix() {
global $current_screen;
if ( isset( $current_screen->base ) && 'post' === $current_screen->base ) {
$clear = is_rtl() ? 'right' : 'left';
?>
<style id="classic-editor-safari-18-temp-fix">
_::-webkit-full-page-media, _:future, :root #post-body #postbox-container-2 {
clear: <?php echo $clear; ?>;
}
</style>
<?php
}
}
} }
add_action( 'plugins_loaded', array( 'Classic_Editor', 'init_actions' ) ); add_action( 'plugins_loaded', array( 'Classic_Editor', 'init_actions' ) );

View File

@@ -3,7 +3,7 @@ Contributors: wordpressdotorg, azaozz, melchoyce, chanthaboune, alexislloyd, pen
Tags: gutenberg, disable, disable gutenberg, editor, classic editor, block editor Tags: gutenberg, disable, disable gutenberg, editor, classic editor, block editor
Requires at least: 4.9 Requires at least: 4.9
Tested up to: 6.6 Tested up to: 6.6
Stable tag: 1.6.4 Stable tag: 1.6.5
Requires PHP: 5.2.4 Requires PHP: 5.2.4
License: GPLv2 or later License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -29,6 +29,9 @@ By default, this plugin hides all functionality available in the new block edito
== Changelog == == Changelog ==
= 1.6.5 =
* Added fix for Safari 18 negative horizontal margin on floats.
= 1.6.4 = = 1.6.4 =
* Added support for administrators to choose the default editor for other users. * Added support for administrators to choose the default editor for other users.

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
<?php return array('hash_map' => array('admin-components.min.css' => array('version' => 'f78e5368d8b599a78b9709de2178cf97', 'file' => 'admin-components.min.css'), 'admin-css-utilities.min.css' => array('version' => '047c723392c56ed67effb778811f50ea', 'file' => 'admin-css-utilities.min.css'), 'admin-icons.min.css' => array('version' => '520e7dcc452befec5f1c95e51400ec2d', 'file' => 'admin-icons.min.css'), 'admin-ie11.min.css' => array('version' => 'b1f15b2772b378a5549ac45eefe2fcb7', 'file' => 'admin-ie11.min.css'), 'admin-theme.min.css' => array('version' => '181487c53e25a62e81e1db77d7c504e3', 'file' => 'admin-theme.min.css'), 'admin.min.css' => array('version' => '51611f92b865196a3851e8dbe254b31d', 'file' => 'admin.min.css'), 'basic.min.css' => array('version' => '4bedfdb9cf94d64f854157dffba8b66f', 'file' => 'basic.min.css'), 'blocks.min.css' => array('version' => 'f7b147e3138419bb9db86d7e0b0bd5e5', 'file' => 'blocks.min.css'), 'common-css-utilities.min.css' => array('version' => '2633df3a029b0d34687e2d197707e947', 'file' => 'common-css-utilities.min.css'), 'editor.min.css' => array('version' => '6a4bdd86191cb74f53524474d2ee78a8', 'file' => 'editor.min.css'), 'font-awesome.min.css' => array('version' => 'ab928ca9bd3a308082b143be8a422524', 'file' => 'font-awesome.min.css'), 'gravity-forms-common-icons.min.css' => array('version' => '7144d998edb50d92c9bd4e51d89e1248', 'file' => 'gravity-forms-common-icons.min.css'), 'gravity-forms-orbital-theme.min.css' => array('version' => 'd41d8cd98f00b204e9800998ecf8427e', 'file' => 'gravity-forms-orbital-theme.min.css'), 'gravity-forms-theme-foundation.min.css' => array('version' => '24e1aab73d398b04bedb185ac75f540d', 'file' => 'gravity-forms-theme-foundation.min.css'), 'gravity-forms-theme-framework.min.css' => array('version' => '7ed359ef17010b5a486e83c0767de750', 'file' => 'gravity-forms-theme-framework.min.css'), 'gravity-forms-theme-reset.min.css' => array('version' => '590d763581c57d55da02972ac0f387d2', 'file' => 'gravity-forms-theme-reset.min.css'), 'settings.min.css' => array('version' => 'b2d752f8ab63822be2409ebf817de4cc', 'file' => 'settings.min.css'), 'setup-wizard.min.css' => array('version' => '7c1011a25f000c4eb8f1bcb85fa4dfa2', 'file' => 'setup-wizard.min.css'), 'template-library.min.css' => array('version' => '560c6c8266f8a6c5cf81077ad29c13a9', 'file' => 'template-library.min.css'), 'theme-components.min.css' => array('version' => 'd41d8cd98f00b204e9800998ecf8427e', 'file' => 'theme-components.min.css'), 'theme-ie11.min.css' => array('version' => '67ea51dbc2856d10c83352871408a6da', 'file' => 'theme-ie11.min.css'), 'theme.min.css' => array('version' => '6a7e3f08eafa3f4cd82cb28dfa574bfa', 'file' => 'theme.min.css'))); <?php return array('hash_map' => array('admin-components.min.css' => array('version' => 'f78e5368d8b599a78b9709de2178cf97', 'file' => 'admin-components.min.css'), 'admin-css-utilities.min.css' => array('version' => '047c723392c56ed67effb778811f50ea', 'file' => 'admin-css-utilities.min.css'), 'admin-icons.min.css' => array('version' => '520e7dcc452befec5f1c95e51400ec2d', 'file' => 'admin-icons.min.css'), 'admin-ie11.min.css' => array('version' => 'b1f15b2772b378a5549ac45eefe2fcb7', 'file' => 'admin-ie11.min.css'), 'admin-theme.min.css' => array('version' => '181487c53e25a62e81e1db77d7c504e3', 'file' => 'admin-theme.min.css'), 'admin.min.css' => array('version' => 'b2310dbe070b29d27f9e4c1df0b39ed7', 'file' => 'admin.min.css'), 'basic.min.css' => array('version' => '4bedfdb9cf94d64f854157dffba8b66f', 'file' => 'basic.min.css'), 'blocks.min.css' => array('version' => 'f7b147e3138419bb9db86d7e0b0bd5e5', 'file' => 'blocks.min.css'), 'common-css-utilities.min.css' => array('version' => '2633df3a029b0d34687e2d197707e947', 'file' => 'common-css-utilities.min.css'), 'editor.min.css' => array('version' => '6a4bdd86191cb74f53524474d2ee78a8', 'file' => 'editor.min.css'), 'font-awesome.min.css' => array('version' => 'ab928ca9bd3a308082b143be8a422524', 'file' => 'font-awesome.min.css'), 'gravity-forms-common-icons.min.css' => array('version' => '7144d998edb50d92c9bd4e51d89e1248', 'file' => 'gravity-forms-common-icons.min.css'), 'gravity-forms-orbital-theme.min.css' => array('version' => 'd41d8cd98f00b204e9800998ecf8427e', 'file' => 'gravity-forms-orbital-theme.min.css'), 'gravity-forms-theme-foundation.min.css' => array('version' => '24e1aab73d398b04bedb185ac75f540d', 'file' => 'gravity-forms-theme-foundation.min.css'), 'gravity-forms-theme-framework.min.css' => array('version' => '7ed359ef17010b5a486e83c0767de750', 'file' => 'gravity-forms-theme-framework.min.css'), 'gravity-forms-theme-reset.min.css' => array('version' => '590d763581c57d55da02972ac0f387d2', 'file' => 'gravity-forms-theme-reset.min.css'), 'settings.min.css' => array('version' => '01a4be7adf61c7203e43116c49b01e78', 'file' => 'settings.min.css'), 'setup-wizard.min.css' => array('version' => '7c1011a25f000c4eb8f1bcb85fa4dfa2', 'file' => 'setup-wizard.min.css'), 'template-library.min.css' => array('version' => '560c6c8266f8a6c5cf81077ad29c13a9', 'file' => 'template-library.min.css'), 'theme-components.min.css' => array('version' => 'd41d8cd98f00b204e9800998ecf8427e', 'file' => 'theme-components.min.css'), 'theme-ie11.min.css' => array('version' => '67ea51dbc2856d10c83352871408a6da', 'file' => 'theme-ie11.min.css'), 'theme.min.css' => array('version' => '6a7e3f08eafa3f4cd82cb28dfa574bfa', 'file' => 'theme.min.css')));

File diff suppressed because one or more lines are too long

View File

@@ -1,3 +1,7 @@
### 2.8.18 | 2024-10-01
- Fixed spacing and margin issues in the form list, help page, and settings page in RTL.
- Fixed an issue where `get_submitted_fields()` is not returning the correct field values if meta keys are not numeric.
### 2.8.17 | 2024-08-26 ### 2.8.17 | 2024-08-26
- Updated the form restriction logging statements to include the form ID. - Updated the form restriction logging statements to include the form ID.
- Fixed an issue where the license key is not saved for some sites in a multisite/network installation. - Fixed an issue where the license key is not saved for some sites in a multisite/network installation.

View File

@@ -6724,14 +6724,8 @@ class GFFormsModel {
$entry_meta_table_name = self::get_entry_meta_table_name(); $entry_meta_table_name = self::get_entry_meta_table_name();
$field_list = ''; $field_list = '';
$fields = $wpdb->get_results( $wpdb->prepare( "SELECT DISTINCT meta_key FROM $entry_meta_table_name WHERE form_id=%d", $form_id ) ); $fields = $wpdb->get_col( $wpdb->prepare( "SELECT DISTINCT meta_key FROM $entry_meta_table_name WHERE form_id=%d AND meta_key REGEXP '^[0-9]+(\.[0-9]+)?$'", $form_id ) );
foreach ( $fields as $field ) { $field_list = implode( ',', array_unique( array_map( 'intval', $fields ) ) );
$field_list .= intval( $field->meta_key ) . ',';
}
if ( ! empty( $field_list ) ) {
$field_list = substr( $field_list, 0, strlen( $field_list ) - 1 );
}
return $field_list; return $field_list;
} }

View File

@@ -3,7 +3,7 @@
Plugin Name: Gravity Forms Plugin Name: Gravity Forms
Plugin URI: https://gravityforms.com Plugin URI: https://gravityforms.com
Description: Easily create web forms and manage form entries within the WordPress admin. Description: Easily create web forms and manage form entries within the WordPress admin.
Version: 2.8.17 Version: 2.8.18
Requires at least: 4.0 Requires at least: 4.0
Requires PHP: 5.6 Requires PHP: 5.6
Author: Gravity Forms Author: Gravity Forms
@@ -245,7 +245,7 @@ class GFForms {
* *
* @var string $version The version number. * @var string $version The version number.
*/ */
public static $version = '2.8.17'; public static $version = '2.8.18';
/** /**
* Handles background upgrade tasks. * Handles background upgrade tasks.

View File

@@ -2,14 +2,14 @@
# This file is distributed under the GPL-2.0+. # This file is distributed under the GPL-2.0+.
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Gravity Forms 2.8.17\n" "Project-Id-Version: Gravity Forms 2.8.18\n"
"Report-Msgid-Bugs-To: https://gravityforms.com/support\n" "Report-Msgid-Bugs-To: https://gravityforms.com/support\n"
"Last-Translator: Gravity Forms <support@gravityforms.com>\n" "Last-Translator: Gravity Forms <support@gravityforms.com>\n"
"Language-Team: Gravity Forms <support@gravityforms.com>\n" "Language-Team: Gravity Forms <support@gravityforms.com>\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2024-08-26T16:50:15+00:00\n" "POT-Creation-Date: 2024-10-01T16:13:02+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.11.0\n" "X-Generator: WP-CLI 2.11.0\n"
"X-Domain: gravityforms\n" "X-Domain: gravityforms\n"
@@ -449,7 +449,7 @@ msgstr ""
#: common.php:5399 #: common.php:5399
#: common.php:5450 #: common.php:5450
#: forms_model.php:6946 #: forms_model.php:6940
msgid "Thanks for contacting us! We will get in touch with you shortly." msgid "Thanks for contacting us! We will get in touch with you shortly."
msgstr "" msgstr ""
@@ -1814,7 +1814,7 @@ msgstr ""
#: forms_model.php:1830 #: forms_model.php:1830
#: forms_model.php:1863 #: forms_model.php:1863
#: forms_model.php:1899 #: forms_model.php:1899
#: forms_model.php:8196 #: forms_model.php:8190
#: includes/api.php:131 #: includes/api.php:131
#: includes/api.php:158 #: includes/api.php:158
#: includes/api.php:180 #: includes/api.php:180
@@ -1879,61 +1879,61 @@ msgstr ""
msgid "(Required)" msgid "(Required)"
msgstr "" msgstr ""
#: forms_model.php:6879 #: forms_model.php:6873
#: forms_model.php:6943 #: forms_model.php:6937
msgid "Default Confirmation" msgid "Default Confirmation"
msgstr "" msgstr ""
#: forms_model.php:6908 #: forms_model.php:6902
msgid "Save and Continue Confirmation" msgid "Save and Continue Confirmation"
msgstr "" msgstr ""
#: forms_model.php:6913 #: forms_model.php:6907
msgid "Link to continue editing later" msgid "Link to continue editing later"
msgstr "" msgstr ""
#: forms_model.php:6914 #: forms_model.php:6908
msgid "Please use the following link to return and complete this form from any computer." msgid "Please use the following link to return and complete this form from any computer."
msgstr "" msgstr ""
#: forms_model.php:6915 #: forms_model.php:6909
msgid "Note: This link will expire after 30 days." msgid "Note: This link will expire after 30 days."
msgstr "" msgstr ""
#: forms_model.php:6916 #: forms_model.php:6910
msgid "Enter your email address if you would like to receive the link via email." msgid "Enter your email address if you would like to receive the link via email."
msgstr "" msgstr ""
#: forms_model.php:6927 #: forms_model.php:6921
msgid "Save and Continue Email Sent Confirmation" msgid "Save and Continue Email Sent Confirmation"
msgstr "" msgstr ""
#: forms_model.php:6932 #: forms_model.php:6926
msgid "Success!" msgid "Success!"
msgstr "" msgstr ""
#: forms_model.php:6933 #: forms_model.php:6927
msgid "The link was sent to the following email address:" msgid "The link was sent to the following email address:"
msgstr "" msgstr ""
#: forms_model.php:8188 #: forms_model.php:8182
msgid "Updating the id property is not supported" msgid "Updating the id property is not supported"
msgstr "" msgstr ""
#: forms_model.php:8192 #: forms_model.php:8186
msgid "%s is not a valid feed property" msgid "%s is not a valid feed property"
msgstr "" msgstr ""
#: forms_model.php:8205 #: forms_model.php:8199
msgid "Feed meta should be an associative array or JSON" msgid "Feed meta should be an associative array or JSON"
msgstr "" msgstr ""
#: forms_model.php:8214 #: forms_model.php:8208
#: includes/api.php:2117 #: includes/api.php:2117
msgid "There was an error while updating feed id %s" msgid "There was an error while updating feed id %s"
msgstr "" msgstr ""
#: forms_model.php:8218 #: forms_model.php:8212
#: includes/api.php:2078 #: includes/api.php:2078
msgid "Feed id %s not found" msgid "Feed id %s not found"
msgstr "" msgstr ""

View File

@@ -2,14 +2,14 @@
# This file is distributed under the same license as the WooCommerce plugin. # This file is distributed under the same license as the WooCommerce plugin.
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: WooCommerce 9.3.2\n" "Project-Id-Version: WooCommerce 9.3.3\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2024-09-18T13:36:43+00:00\n" "POT-Creation-Date: 2024-09-25T08:21:07+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.11.0\n" "X-Generator: WP-CLI 2.11.0\n"
"X-Domain: woocommerce\n" "X-Domain: woocommerce\n"
@@ -20884,7 +20884,7 @@ msgstr ""
#: includes/class-wc-form-handler.php:295 #: includes/class-wc-form-handler.php:295
#: includes/wc-user-functions.php:54 #: includes/wc-user-functions.php:54
#: src/StoreApi/Routes/V1/Checkout.php:620 #: src/StoreApi/Routes/V1/Checkout.php:621
msgid "Please provide a valid email address." msgid "Please provide a valid email address."
msgstr "" msgstr ""
@@ -40420,35 +40420,35 @@ msgid "There was a problem with the provided additional fields: %s is required"
msgstr "" msgstr ""
#. translators: %s: is the field label #. translators: %s: is the field label
#: src/StoreApi/Routes/V1/Checkout.php:211 #: src/StoreApi/Routes/V1/Checkout.php:212
msgid "There was a problem with the provided billing address: %s is required" msgid "There was a problem with the provided billing address: %s is required"
msgstr "" msgstr ""
#. translators: %s: is the field label #. translators: %s: is the field label
#: src/StoreApi/Routes/V1/Checkout.php:219 #: src/StoreApi/Routes/V1/Checkout.php:220
msgid "There was a problem with the provided shipping address: %s is required" msgid "There was a problem with the provided shipping address: %s is required"
msgstr "" msgstr ""
#: src/StoreApi/Routes/V1/Checkout.php:476 #: src/StoreApi/Routes/V1/Checkout.php:477
msgid "Unable to create order" msgid "Unable to create order"
msgstr "" msgstr ""
#: src/StoreApi/Routes/V1/Checkout.php:557 #: src/StoreApi/Routes/V1/Checkout.php:558
#: src/StoreApi/Routes/V1/CheckoutOrder.php:244 #: src/StoreApi/Routes/V1/CheckoutOrder.php:244
msgid "No payment method provided." msgid "No payment method provided."
msgstr "" msgstr ""
#. Translators: %s Payment method ID. #. Translators: %s Payment method ID.
#: src/StoreApi/Routes/V1/Checkout.php:571 #: src/StoreApi/Routes/V1/Checkout.php:572
msgid "%s is not available for this order—please choose a different payment method" msgid "%s is not available for this order—please choose a different payment method"
msgstr "" msgstr ""
#. Translators: %s Email address. #. Translators: %s Email address.
#: src/StoreApi/Routes/V1/Checkout.php:628 #: src/StoreApi/Routes/V1/Checkout.php:629
msgid "An account is already registered with %s. Please log in or use a different email address." msgid "An account is already registered with %s. Please log in or use a different email address."
msgstr "" msgstr ""
#: src/StoreApi/Routes/V1/Checkout.php:636 #: src/StoreApi/Routes/V1/Checkout.php:637
msgid "Please create a password for your account." msgid "Please create a password for your account."
msgstr "" msgstr ""

View File

@@ -371,7 +371,7 @@ class WC_Product_CSV_Importer_Controller {
* *
* @since 3.1.0 * @since 3.1.0
*/ */
'lines' => apply_filters( 'woocommerce_product_import_batch_size', 1 ), 'lines' => apply_filters( 'woocommerce_product_import_batch_size', 30 ),
'parse' => true, 'parse' => true,
); );

View File

@@ -46,7 +46,7 @@ final class WooCommerce {
* *
* @var string * @var string
*/ */
public $version = '9.3.2'; public $version = '9.3.3';
/** /**
* WooCommerce Schema version. * WooCommerce Schema version.

View File

@@ -4,7 +4,7 @@ Tags: online store, ecommerce, shop, shopping cart, sell online
Requires at least: 6.5 Requires at least: 6.5
Tested up to: 6.6 Tested up to: 6.6
Requires PHP: 7.4 Requires PHP: 7.4
Stable tag: 9.3.1 Stable tag: 9.3.2
License: GPLv3 License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html License URI: https://www.gnu.org/licenses/gpl-3.0.html
@@ -169,11 +169,10 @@ WooCommerce comes with some sample data you can use to see how products look; im
== Changelog == == Changelog ==
= 9.3.2 2024-09-18 = = 9.3.3 2024-09-25 =
- Fix - Improve the product importer's handling of filepaths under Windows [#51456](https://github.com/woocommerce/woocommerce/pull/51456) - Fix - An issue where virtual products could not be purchased when using the Additional Fields API [#51630](https://github.com/woocommerce/woocommerce/pull/51630)
- Fix - Revert changes related to low stock product notifications [#51441](https://github.com/woocommerce/woocommerce/pull/51441) - Fix - Restore the previous default for `woocommerce_product_import_batch_size` (process 30 lines per batch when importing product CSV data) [#51631] (https://github.com/woocommerce/woocommerce/pull/51631)
- Fix - Resolve a bug where manually triggering `added_to_cart` event without a button element caused an Exception [#51449](https://github.com/woocommerce/woocommerce/pull/51449)
[See changelog for all versions](https://raw.githubusercontent.com/woocommerce/woocommerce/trunk/changelog.txt). [See changelog for all versions](https://raw.githubusercontent.com/woocommerce/woocommerce/trunk/changelog.txt).

View File

@@ -203,6 +203,7 @@ class Checkout extends AbstractCartRoute {
$address_fields = $this->additional_fields_controller->get_fields_for_location( 'address' ); $address_fields = $this->additional_fields_controller->get_fields_for_location( 'address' );
if ( ! empty( $address_fields ) ) { if ( ! empty( $address_fields ) ) {
$needs_shipping = WC()->cart->needs_shipping();
foreach ( $address_fields as $field_key => $address_field ) { foreach ( $address_fields as $field_key => $address_field ) {
if ( $address_field['required'] && ! isset( $request['billing_address'][ $field_key ] ) ) { if ( $address_field['required'] && ! isset( $request['billing_address'][ $field_key ] ) ) {
throw new RouteException( throw new RouteException(
@@ -212,7 +213,7 @@ class Checkout extends AbstractCartRoute {
400 400
); );
} }
if ( $address_field['required'] && ! isset( $request['shipping_address'][ $field_key ] ) ) { if ( $needs_shipping && $address_field['required'] && ! isset( $request['shipping_address'][ $field_key ] ) ) {
throw new RouteException( throw new RouteException(
'woocommerce_rest_checkout_missing_required_field', 'woocommerce_rest_checkout_missing_required_field',
/* translators: %s: is the field label */ /* translators: %s: is the field label */

View File

@@ -1,8 +1,8 @@
<?php return array( <?php return array(
'root' => array( 'root' => array(
'name' => 'woocommerce/woocommerce', 'name' => 'woocommerce/woocommerce',
'pretty_version' => '9.3.2', 'pretty_version' => '9.3.3',
'version' => '9.3.2.0', 'version' => '9.3.3.0',
'reference' => null, 'reference' => null,
'type' => 'wordpress-plugin', 'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../../', 'install_path' => __DIR__ . '/../../',
@@ -212,8 +212,8 @@
'dev_requirement' => false, 'dev_requirement' => false,
), ),
'woocommerce/woocommerce' => array( 'woocommerce/woocommerce' => array(
'pretty_version' => '9.3.2', 'pretty_version' => '9.3.3',
'version' => '9.3.2.0', 'version' => '9.3.3.0',
'reference' => null, 'reference' => null,
'type' => 'wordpress-plugin', 'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../../', 'install_path' => __DIR__ . '/../../',

View File

@@ -15,15 +15,15 @@ return array(
'path' => $vendorDir . '/automattic/jetpack-assets/actions.php' 'path' => $vendorDir . '/automattic/jetpack-assets/actions.php'
), ),
'44e8414cd27982ecf86403af6e48f123' => array( '44e8414cd27982ecf86403af6e48f123' => array(
'version' => '9.3.2.0', 'version' => '9.3.3.0',
'path' => $baseDir . '/src/StoreApi/deprecated.php' 'path' => $baseDir . '/src/StoreApi/deprecated.php'
), ),
'9ce98895d0a470c71998c4b530020d26' => array( '9ce98895d0a470c71998c4b530020d26' => array(
'version' => '9.3.2.0', 'version' => '9.3.3.0',
'path' => $baseDir . '/src/StoreApi/functions.php' 'path' => $baseDir . '/src/StoreApi/functions.php'
), ),
'c379ea42c3f5964a973a7106b08c5ef0' => array( 'c379ea42c3f5964a973a7106b08c5ef0' => array(
'version' => '9.3.2.0', 'version' => '9.3.3.0',
'path' => $baseDir . '/src/Blocks/Domain/Services/functions.php' 'path' => $baseDir . '/src/Blocks/Domain/Services/functions.php'
), ),
); );

View File

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