Commit Graph

37590 Commits

Author SHA1 Message Date
Vedanshu Jain 03ba8838b1
Merge pull request #29099 from woocommerce/fix/27376
Make the refunds creation REST API behave more as documented
2021-02-18 14:25:38 +05:30
Christopher Allford 5c624278dc
Merge pull request #29139 from woocommerce/fix/issue-29137
Fix placeholder image height in cart closes #29137
2021-02-17 14:38:30 -08:00
Roy Ho 2fab448010
Update assets/css/twenty-twenty-one.scss
Co-authored-by: Christopher Allford <christopher.allford@automattic.com>
2021-02-17 13:58:16 -08:00
louwie17 2471f816e4
Merge pull request #29093 from woocommerce/update/28570_widget_stock_links
Update the woo widget stock links to new analytics page
2021-02-17 09:35:50 -04:00
Peter Fabian ded1c15699
Merge pull request #29150 from woocommerce/fix/contributor-guidelines
Fix/contributor guidelines
2021-02-17 09:04:32 +01:00
barryhughes 4a78f13958 Spacing 2021-02-16 12:43:18 -08:00
barryhughes 97c4e42610 Correct the external packages list (remove REST API, add WC Admin) | spotfix 2021-02-16 12:40:27 -08:00
Claudio Sanches 6fae8ca40b
Merge pull request #29146 from woocommerce/fix/27290-rest-api-order-updates
Throw an error if a coupon item ID (readonly) is specified during an order update | #27290
2021-02-16 17:04:49 -03:00
barryhughes f79b3f9120 Supporting tests for handling coupon-related order updates (via REST API) | #27290 2021-02-16 10:28:46 -08:00
barryhughes 24e0191dc7 Throw a 400 error if a coupon item ID (readonly) is posted/put during an order update | #27290 2021-02-16 09:59:03 -08:00
jonathansadowski f6054ab059
Merge pull request #29115 from woocommerce/fix/27434
Fix wrong taxonomy caching in term and product attributes controllers
2021-02-16 10:50:28 -06:00
Claudio Sanches e4b2b72e95
Merge pull request #29136 from woocommerce/fix/25510-billing-address-2
Only add '(optional)' to the billing_address_2 placeholder | #25510
2021-02-16 13:32:50 -03:00
Nestor Soriano 9ef18fea0e Change the calculate_refund_amount_from_line_items method
to return the calculated amount instead of setting it in the request.
2021-02-16 15:44:51 +01:00
Peter Fabian deec7f9242
Merge pull request #29143 from woocommerce/better-test-running-instructions
README: Better instructions for running tests db
2021-02-16 11:23:36 +01:00
artpi d97bfaed4f Better instructions for running tests db 2021-02-16 10:21:13 +01:00
Vedanshu Jain 8eea519654
Merge pull request #29140 from woocommerce/fix/actions
Yoda conditions, you must not use.
2021-02-16 14:07:53 +05:30
Nestor Soriano 436a3db6e4 Fix code standards errors 2021-02-16 09:23:50 +01:00
vedanshujain eefb3a4c0d Yoda notation, you must not follow.
Syntax will fail, for GH actions.
2021-02-16 13:23:27 +05:30
vedanshujain f31befd6fe Whitespace change to trigger tests. 2021-02-16 13:14:08 +05:30
roykho ab97be1e98
Fix placeholder image height in cart closes #29137 2021-02-15 19:50:30 -08:00
jonathansadowski ea7c6700bc
Merge pull request #29133 from woocommerce/fix/notice
Check if index value is set before accessing
2021-02-15 16:55:37 -06:00
barryhughes 8f74a25998 Remove esc_attr() (not an attribute, plus escaping is applied later in request) | #25510 2021-02-15 14:15:48 -08:00
barryhughes 1bd9a7e939 Only add '(optional)' to the billing_address_2 placeholder | #25510 2021-02-15 13:49:28 -08:00
Christopher Allford 949019f662
Merge pull request #29120 from woocommerce/fix/issue-29119
Wrap variables in recent SASS format closes #29119
2021-02-15 10:45:08 -08:00
Claudio Sanches 74bb66dc6d
Merge pull request #27671 from mahmoudsaeed/master
Make WC_Tax::get_tax_rate_classes() public
2021-02-15 14:31:25 -03:00
roykho 4fa0c81d11
Check if index value is set before accessing 2021-02-15 06:54:22 -08:00
roykho 66155b978b
Wrap variables in recent SASS format closes #29119 2021-02-12 15:33:45 -08:00
Claudio Sanches 7a71258257
Merge pull request #29094 from woocommerce/try/admin-menu-svg-icons
Use SVG and Dashicons instead of custom font for admin bar icons
2021-02-12 18:06:37 -03:00
Matt Sherman 6044f3e958 Update Products and Reports icons to use Dashicons instead of custom font 2021-02-12 10:37:23 -05:00
Nestor Soriano 4e195d5f3f Fix code sniffer errors. 2021-02-12 15:29:32 +01:00
Nestor Soriano 00d6dc40f7 Fix wrong caching of taxonomy in terms and attributes controllers.
The WC_REST_Terms_Controller and WC_REST_Product_Attributes_V1_Controller
classes have a get_taxonomy method that gets the name of the taxonomy
to process from a taxonomy id passed in the request, but once the
taxonomy name has been obtained it's cached and sbsequently reused.
The problem is that these controller instances are reused if more than
one request is processed programmatically, and thus the taxonomy that
was cached once is always used even if the new request specifies a
different taxonomy id.

The fix consists of using a dictionary of taxonomy id - taxonomy name
instead of one single taxonomy for caching.

In the case of WC_REST_Terms_Controller there's a protected $taxonomy
property that needs to be kept for compatibility, it's now set to
the last taxonomy name that has been introduced in the dictionary.
2021-02-12 15:12:58 +01:00
Roy Ho b691947442
Merge pull request #29111 from woocommerce/update/woocommerce-admin/2.0.1
Update woocommerce admin package to 2.0.1
2021-02-11 20:49:18 -08:00
Paul Sealock 13760d55a9 compser artifacts 2021-02-12 15:09:02 +13:00
Paul Sealock d2a71e3a11 bump to 2.0.1 2021-02-12 15:07:58 +13:00
Roy Ho 520c39dda2
Merge pull request #29016 from woocommerce/update/woocommerce-blocks-4.4.0
Update WooCommerce Blocks package to 4.4.x
2021-02-11 11:31:44 -08:00
Mike Jolley 11587a07b1 Blocks 4.4.3 2021-02-11 18:11:25 +00:00
Mike Jolley 38ad7819df Bump to 4.4.2 2021-02-11 17:19:41 +00:00
Mike Jolley ff9d8e2b51 Cmposer update after rebase 2021-02-11 17:19:15 +00:00
Mike Jolley 78ae2ad7c0 4.4.1 2021-02-11 17:19:00 +00:00
Mike Jolley 56e3d8339b Update lock files 2021-02-11 17:19:00 +00:00
Mike Jolley 17147d59e1 bump blocks version to 4.4.0 2021-02-11 17:19:00 +00:00
Matt Sherman 9f00fbfde1
Move admin menu manipulation from admin_head to admin_menu (#29088) 2021-02-11 11:48:36 -05:00
Roy Ho b9d68c3f67
Merge pull request #29100 from woocommerce/update/5.0-changelog
5.0 changelog
2021-02-11 07:28:01 -08:00
Claudio Sanches da90e678c4 5.0 changelog 2021-02-11 12:24:32 -03:00
Roy Ho 2641bb7b6f
Merge pull request #28627 from woocommerce/update/tracks/global-props
Tracks: Add woo version as global track prop.
2021-02-11 05:48:25 -08:00
Néstor Soriano 9105910234
Merge pull request #28950 from woocommerce/exporter_product_type_filter
Add filter to allow third-parties to filter exportable product types
2021-02-11 14:32:17 +01:00
Vedanshu Jain 5a707f3e74
Merge pull request #28849 from woocommerce/fix/27521-2
Verify country code on checkout
2021-02-11 18:59:04 +05:30
Roy Ho 78851e6945
Merge pull request #28980 from leewillis77/add/add-generation-date-to-status-report
Add time of generation to the system status report
2021-02-11 05:09:03 -08:00
Nestor Soriano fae00e2bdf Make the refunds creation REST API behave more as documented
- Allow the list of line items to be a non-associative array
  where each item is identified by an "id" field
- Same for taxes inside line items, specify amount to refund in
  a "refund_total" key as in the case of line items
- Allow "quantity" keys as synonyms of "qty"

Also calculate "amount" automatically if missing and when all the
line items and taxes have a valid "refund_total" key.
2021-02-11 09:51:13 +01:00
Roy Ho 986b4fe0b9
Merge pull request #29089 from woocommerce/fix/issue-29087
Type cast floats to prevent string addition errors in PHP 8 closes #2…
2021-02-10 19:16:53 -08:00