* When ExtendedContainer::replace is used and an instance of an object is passed as the replacement, the init method of the passed object will be executed (previously the container would execute init only when creating a new instance from a class name).
* Added the ExtendedContainer::reset_replacement method, this will undo a replace and reset the registration back to its original state (so get will act as if replace had never been executed for the given class name). Note that for shared definitions this needs to be combined with reset_all_resolved.
* Similarly, added the ExtendedContainer::reset_all_replacements method.
* Add possibility to track select and checkbox values for non_option settings
* Track select and checkboxes in abstract-wc-settings-api
* Add changelog
* Add hook comment and ignore phpcs for actions that were already called before
With orders table authoritative, sync disabled, an order with refunds
is deleted, a duplicate deletion record was being created for the refund.
That's because 'upshift_or_delete_child_orders' was deleting the child
orders, which caused a deletion record to be already created; and
after that, 'handle_order_deletion_with_sync_disabled' was again
creating a record for these child orders.
The fix is a bit convoluted because we can't know for sure if
'upshift_or_delete_child_orders' will delete the child orders or not.
* Fix overlapping button position when the height is less than 667px (iphone SE)
* Fix misaligned check icon on mobile
* Prevent the menu from closing when clicking on a selected item
* Add changelog
* Fix lint
---------
Co-authored-by: moon <moon.kyong@automattic.com>
* Remove feature related query args after enabling/disabling it
* Test to see if E2E tests pass
* Revert "Test to see if E2E tests pass"
This reverts commit 120e971f33f22dc3e7eec6e5ab228b1908c56364.
* Add support to remove multiple query params
* Add wc_get_default_product_type_options function
* Use wc_get_default_product_type_options() as initial input for product_type_options filter
* Changelog
* Only record product update on already published products
* Add source into published product tracks event
* Add missing tracks options to product update event
* Track tab clicks in the editor
* Add source to tab clicks
* Record tracks on preview click
* Add events for media gallery, description, and attributes
* Add tracks events to more menu
* Replace new_product_page with source
* Add changelog entry
* Fix lint errors
* Add tracks for About the Editor menu item
* Add onClick event to AboutTheEditor menu item
* Use dropdown option event for classic editor menu click
- When ExtendedContainer::replace is used passing an instance of
an object, the 'init' method will be executed in the instance
when resolving the replaced class name.
- Added the ExtendedContainer::reset_replacement method, this will
undo a 'replace' and reset the registration back to its original state.
- Similarly, added the ExtendedContainer::reset_all_replacements method.
This makes the behavior of wc_get_order to be the same as when HPOS
is disabled (and Abstract_WC_Order_Data_Store_CPT is thus used
instead): the order is still retrieved (although without the errored
properties set) instead of the function just returning false.
An example of when this can happen is if an order refund has the id
of a no longer existing order as the parent id.