Commit Graph

33278 Commits

Author SHA1 Message Date
Rodrigo Primo fa875a4d25 Fix PHPCS errors in tests/framework/class-wc-dummy-data-store.php 2019-11-21 11:52:07 -03:00
Rodrigo Primo ed1c4b11b8 Fix PHPCS errors in WC_Tests_Data_Store class file 2019-11-21 10:41:27 -03:00
Rodrigo Primo 44b09cb15a Remove unused test method 2019-11-21 10:40:38 -03:00
vedanshujain 70a54d0639 Added Unit Tests for `held_for_checkout` records. 2019-11-21 18:11:37 +05:30
vedanshujain 882b441bfb Remove order_id param because order is not pending (see desc).
In the query inside method `wc_get_hold_stock_quantity` we have a clause of `status = wc_pending`. Call for this method here is already nested inside an `if` condition which checks that order is not pending. So this parameter is not needed here and only adds complexity to the final query.
2019-11-21 13:49:49 +05:30
Jacob McKinney 0d35e2e5eb Removed variable and set exception paramater to array containing the order id. 2019-11-20 22:52:04 -06:00
Christopher Allford 8fd99a74b9 Added descriptive text to the usage tracking documentation link in the setup wizard 2019-11-20 12:47:56 -08:00
vedanshujain e87024bb81 Add support for '_held_for_checkout` records to prevent race conditions.
When creating an order, if manage inventory is enabled then add a `_held_for_checkout` record with a expiry timestamp embedded. This is added in an atomic manner along with making a check whether we have current stock or not.
This record is removed when order status goes to either `processing` or `completed`.
2019-11-21 01:21:08 +05:30
Christopher Allford 661f2b7722
Added a comment clarifying the suffix substring when checking slug uniqueness 2019-11-20 10:02:34 -08:00
Christopher Allford 55f49ae26a Added an appropriate @since tag to the generate_unique_slug method 2019-11-20 09:55:35 -08:00
Christopher Allford 1237b7c45f Removed the jquery-ui compilation 2019-11-20 09:44:03 -08:00
Christopher Allford 4a8645c9b4 Changed the default sorting for the products shortcode to "menu_order"
In order to take advantage of the "Sorting" admin feature, we need to make use of the menu order sorting. Initially we were using the title, which would ignore whatever the user set.
2019-11-20 09:19:54 -08:00
Christopher Allford b12574e9e4 Fixed code sniffs 2019-11-20 08:16:19 -08:00
Christopher Allford 358825f006 Added a transient clear when product ordering is changed 2019-11-20 06:50:32 -08:00
Gerhard 2a4a1a5842 Remove unused $updated_props variable 2019-11-20 14:47:44 +02:00
Michael Weichselgartner 2092da00c4 Fix second param of action hook woocommerce_coupon_object_updated_props
Changed second param from $updated_props to $this->updated_props
2019-11-20 14:42:09 +02:00
Gerhard Potgieter 95a0a4c0a4
Merge pull request #24930 from arnofo/feature/empty-cart-action-new-parameter
pass the clear persistent cart variable to the cart emptied actions
2019-11-20 12:52:36 +02:00
Gerhard Potgieter 3e116716cd
Merge pull request #24944 from AdelDima/patch-1
Update abstract-wc-csv-batch-exporter.php
2019-11-20 12:33:40 +02:00
Gerhard Potgieter 5424b0ed31
Merge pull request #24969 from ranss/wc-anass
Use standarized plugin file path constant
2019-11-20 12:31:27 +02:00
Christopher Allford c2bc312e97 Added Photoswipe and jQuery-UI CSS minification 2019-11-19 10:40:28 -08:00
Peter Fabian daf4a53acf Make single images larger. 2019-11-19 19:36:10 +01:00
Peter Fabian b1f0098cb5 Fixed stylelint issues (except for no-descending-specificity).
There is also one invalid unit for line-height, duplicate class declaration (but it's related to different styling areas, so left it there).
2019-11-19 19:32:45 +01:00
Peter Fabian 08d0b17678 Base the styling on Twenty Nineteen. 2019-11-19 19:13:10 +01:00
Peter Fabian bc04b8f45b Added basic declaration for WC support to Twentytwenty. 2019-11-19 17:58:16 +01:00
Renovate Bot ed51d59131
Update dependency eslint-config-wpcalypso to v5 2019-11-19 15:03:51 +00:00
Rodrigo Primo 81187dc359
Merge pull request #25062 from itzmekhokan/fix/25056
Fixed issue #25056
2019-11-19 11:58:25 -03:00
Rodrigo Primo d47a8fdc93
Merge pull request #25065 from woocommerce/renovate/autoprefixer-9.x
Update dependency autoprefixer to v9.7.2
2019-11-19 11:53:05 -03:00
Gerhard 3581a6c578 Include tracker fields for processing order totals and dates. 2019-11-19 15:10:43 +02:00
Renovate Bot 2e02d68a4a
Update dependency autoprefixer to v9.7.2 2019-11-18 23:31:31 +00:00
Christopher Allford 753f39ff27 Added unique slug generation for variable product duplication
The standard wp_unique_post_slug() function will run one query per name collision, leading to a large number of queries being made when a product template is duplicated repeatedly. We can avoid this by doing the unique generation ourselves.
2019-11-18 13:49:41 -08:00
Christopher Allford 7f44e23813 Resolved all of the phpcs errors 2019-11-18 13:43:03 -08:00
Rodrigo Primo 8675e26c28
Merge pull request #24884 from woocommerce/fix/24881
Return correct country code if default location isn't found
2019-11-18 17:10:35 -03:00
Rodrigo Primo 28bc4b242c
Merge pull request #25028 from woocommerce/feature/25019
Introduced hooks before and after settings form
2019-11-18 16:49:11 -03:00
Rodrigo Primo e5f8213149
Update name of the label used to indicate issues good for external contributors 2019-11-18 16:30:21 -03:00
Rodrigo Primo ec37b2bb27
Merge pull request #25041 from woocommerce/fix/25039
Fixed "Add payment method" menu highlight in My Account page
2019-11-18 15:57:52 -03:00
Rodrigo Primo 0a5ca3f144
Merge pull request #24756 from woocommerce/fix/24723
Changed thank you page text to follow PayPal guidelines
2019-11-18 15:29:59 -03:00
Claudio Sanches dd97b00815 Added "reviewBody" to review schema
Update get_comment_* functions args
2019-11-18 11:47:56 -03:00
khokan-cn 55e2a0e199 Fixed issue #25056 2019-11-18 18:03:59 +05:30
Gerhard Potgieter 822d1ebb40
Merge pull request #24879 from woocommerce/add_order_note_before_do_action
Add order note before do_action() to maintain order of notes
2019-11-18 14:02:03 +02:00
Gerhard Potgieter aaee28fe1e
Merge pull request #24798 from woocommerce/fix/24792
Do not set tracking cookie on ajax requests
2019-11-18 14:00:21 +02:00
Gerhard Potgieter 7551e812b1
Merge pull request #25055 from maximejobin/master
Use the $username variable
2019-11-18 13:59:14 +02:00
Gerhard Potgieter be3682b3d6
Merge pull request #25058 from woocommerce/renovate/husky-3.x
Update dependency husky to v3.1.0
2019-11-18 13:42:53 +02:00
Gerhard Potgieter d7dbc77357
Merge pull request #25053 from woocommerce/renovate/stylelint-12.x
Update dependency stylelint to v12
2019-11-18 13:41:48 +02:00
Gerhard Potgieter dc6402bd4c
Merge pull request #25033 from woocommerce/renovate/lint-staged-9.x
Update dependency lint-staged to v9.4.3
2019-11-18 13:40:36 +02:00
Gerhard Potgieter 3d5f8563f5
Merge pull request #25015 from woocommerce/renovate/woocommerce-woocommerce-sniffs-0.x
Update dependency woocommerce/woocommerce-sniffs to v0.0.9
2019-11-18 13:39:06 +02:00
Renovate Bot caa00ac6f5
Update dependency woocommerce/woocommerce-sniffs to v0.0.9 2019-11-18 11:38:41 +00:00
Gerhard Potgieter d463822e37
Merge pull request #24951 from woocommerce/renovate/autoprefixer-9.x
Update dependency autoprefixer to v9.7.1
2019-11-18 13:37:25 +02:00
Gerhard Potgieter 3339b38e27
Merge pull request #24920 from woocommerce/renovate/chromedriver-78.x
Update dependency chromedriver to v78
2019-11-18 13:35:29 +02:00
Gerhard Potgieter e3f96c877f
Merge pull request #24918 from woocommerce/renovate/phpunit-phpunit-7.x
Update dependency phpunit/phpunit to v7.5.17
2019-11-18 13:34:23 +02:00
Gerhard Potgieter 06439a5470
Merge pull request #24901 from woocommerce/renovate/eslint-6.x
Update dependency eslint to v6.6.0
2019-11-18 13:32:20 +02:00