Commit Graph

28370 Commits

Author SHA1 Message Date
Rodrigo Primo 926235287f Attempt to reduce noise in PRs generated by codecov
This commit is an attempt to reduce the noise in PRs generated by the code coverage comment posted automatically by Codecov. It changes Codecov configuration to post a comment to a PR only if it changes the code coverage and it also removes reach graph, the diff image and the flags from the comment content. Leaving only a list of the files impacted by the PR. My initial plan was to leave in the comment content only a link to the full report, but I couldn't find a way to do that in the documentation (https://docs.codecov.io/docs/pull-request-comments).
2018-08-23 17:40:35 -03:00
Claudiu Lodromanean babfacd6bb
Merge pull request #21108 from woocommerce/fix/21025
Set tabindex=1 for notices
2018-08-23 13:11:08 -07:00
Claudiu Lodromanean 176c871007
Merge pull request #21174 from woocommerce/travis-retry
Retry e2e tests automatically in case of failure
2018-08-23 13:01:22 -07:00
Rodrigo Primo 4a3b175715
Merge pull request #21171 from macbookandrew/patch-2
fix typo
2018-08-23 16:30:27 -03:00
Rodrigo Primo 67b5b270f3 Retry e2e tests automatically in case of failure
Tests should be consistent. That is true for our unit tests suite, but it is something that is harded to achieve for functional tests. Our end to end tests often times fail due to factors outside of our control, and simply manually restarting the Travis build is enough to make them pass (example: https://github.com/woocommerce/woocommerce/pull/21150#issuecomment-415132390). This commits uses `travis_retry` to make Travis automatically retry a maximum of three times to run WC e2e tests in case of a failure.
2018-08-23 16:20:41 -03:00
Andrew Minion 067a79c336
fix typo 2018-08-23 14:37:54 -04:00
Rodrigo Primo 5f6c729107 Remove unnecessary clean up code from unit tests
This commit removes unnecessary clean up code form some unit tests. All database changes done during a test are automatically reverted after the test finishes, so it is not necessary to write code to manually remove them. This change simplifies the test code and make it run a bit faster.
2018-08-23 15:15:17 -03:00
Rodrigo Primo b7507ca8b3 Automatically fix phpcs violations using phpcbf 2018-08-23 15:15:11 -03:00
Peter Fabian f5fd36fbdf Updated order of array traversal to respect user's order when changing order of attributes for variations. 2018-08-23 18:41:28 +02:00
Peter Fabian 0d29e5d88f PHPCS fix. 2018-08-23 14:31:53 +02:00
Peter Fabian 2f0505a73f Added wc_kses_notice as escaping function to PHPCS. 2018-08-23 14:31:40 +02:00
Jack Boyle fd33f2c2a6 Added Tests
Added Tests for new wildcard functionality.
2018-08-23 15:23:35 +10:00
Jack Boyle c4eda39177 Add wildcard handler for SKU and other meta values
Add wildcard handler for SKU and other meta values
2018-08-23 09:59:39 +10:00
John-Henrique f65311ee38 Update version 2018-08-22 16:24:19 -03:00
Claudiu Lodromanean d5e229f98a
Merge pull request #21150 from woocommerce/update/cart-tests
Remove unnecessary cleanup code from cart tests
2018-08-22 11:28:03 -07:00
Claudiu Lodromanean fe69a875e2
Merge pull request #20993 from woocommerce/fix/20959
Changed wc_clean to checking for valid utf8 for line items and password.
2018-08-22 10:12:48 -07:00
John-Henrique 148d17eca8 WP Coding Standards and tax 2018-08-22 09:30:26 -03:00
John-Henrique 54c7244d9b Fix department
Reorder and fix department
2018-08-22 08:58:37 -03:00
Gerhard Potgieter 64c9b5fc6a
Merge pull request #21109 from woocommerce/fix/21057
Fix: properly output product structured data when product URL contains some non-ASCII characters
2018-08-22 13:09:14 +02:00
Peter Fabian dde3c9fa7b Fixed unit tests. 2018-08-22 10:12:32 +02:00
kakshak 4d17ebeadc fix(woocommerce): per cart coupon condition updated 2018-08-22 11:09:58 +05:30
kakshak 0f27d4799b Merge branch 'master' of https://github.com/woocommerce/woocommerce into issue/21062 2018-08-22 11:03:55 +05:30
John-Henrique fd7a0b40cf Fix ISO
Using  ISO 4217 and ISO 3166
2018-08-21 16:56:49 -03:00
Claudiu Lodromanean bfa36fe923
Merge pull request #21106 from woocommerce/fix/21027
Use refund currency when displaying refund amount
2018-08-21 12:46:59 -07:00
Claudiu Lodromanean 9777ba18ff
Merge pull request #21103 from woocommerce/fix/21093
Disabled postcode requirement for Bahrain.
2018-08-21 12:11:11 -07:00
Rodrigo Primo aa8c0c7629 Remove unnecessary cleanup code from cart test
This commit removes a bunch of unnecessary cleanup code from cart tests. All database changes are automatically reverted after each test, so it is not necessary to write code inside the test to manually revert the changes that were made. One test method was split into three different methods for clarity and to avoid having to revert database changes manually between each part of the test.

This change makes the tests easier to read but also reduced the execution time of the cart tests in about 15%.
2018-08-21 11:41:31 -03:00
Peter Fabian 5b0cc306a5 Moved the wc_kses_notice to wc-notice-functions.php and applied it in wc_print_notices(). 2018-08-21 12:00:48 +02:00
Peter Fabian 9845c3c131 PHPCS. 2018-08-21 11:48:29 +02:00
Peter Fabian ae05d6e5ea Removed author tag and bumped version of templates to 3.5.0, factored out function to one common place. 2018-08-21 11:47:50 +02:00
Peter Fabian 9319b3c262 Bahrain postcode visible, but not required. 2018-08-21 11:15:09 +02:00
Rodrigo Primo 5e7c8c6959 Remove unneeded call to wc_clean() when outputting product structured data
This commit removes an unneeded call to wc_clean() before outputting product structured data to the browser. wp_json_encode() is called before the data is sent to the browser and it should be enough to escape it. wc_clean(), which calls sanitize_text_field() internally, was causing issues with the product URL when its name contained some non-ASCII characters (see #21057 for examples of characters).
2018-08-20 14:48:17 -03:00
Claudiu Lodromanean 42e2e4a4b2
Merge pull request #21073 from woocommerce/fix/20694
Show system status updates for woocommerce wp.org plugins
2018-08-20 10:29:01 -07:00
Peter Fabian 355d95db9d Added tabindex 1 to Add to cart notices (View cart/Continue shopping). 2018-08-20 18:39:31 +02:00
Peter Fabian ac550e9d37 PHPCS. 2018-08-20 18:38:53 +02:00
Peter Fabian c2b8cc73c0 Added support for changing tabindex for notices. 2018-08-20 18:35:17 +02:00
Rodrigo Primo b8354da6b1 Use refund currency when displaying refund amount
Use the refund currency when wc_price() is called to display the refund amount in the "Edit order" admin screen. Without this change, wc_price would use the store default currency which is a problem for stores that at some point changed their currency or stores using extensions which support multiple currencies.
2018-08-20 11:32:56 -03:00
Rodrigo Primo aef5d3373c phpcs fixes 2018-08-20 11:12:12 -03:00
John-Henrique 84a99b590a Fix mistake 2018-08-20 10:08:02 -03:00
John-Henrique d64dbe37b2 Currency for Paraguay 2018-08-20 09:57:06 -03:00
Peter Fabian a777f9b548 Disable postcode requirement for Bahrain. 2018-08-20 12:40:53 +02:00
kakshak 6c57b59353 fix: ability to apply coupon on a sale item even when the coupon is restricted to only non sale items 2018-08-18 13:02:51 +05:30
Peter Fabian 735162eb2a
Merge pull request #21053 from woocommerce/fix/21033
Vertical align admin order action buttons
2018-08-17 11:28:35 +02:00
Peter Fabian 1a2f0d4a0b Removed check for invalid utf8 in passwords. 2018-08-17 11:01:30 +02:00
Claudiu Lodromanean 6eea244a28
Merge pull request #21074 from woocommerce/fix/21026
Fixes two product attributes issues when non-ASCII characters are used in the attribute name
2018-08-16 13:22:16 -07:00
Claudiu Lodromanean f1c6f3cb3e
Merge pull request #21065 from andgrankin/patch-1
Fixed typo in translations context
2018-08-16 12:59:57 -07:00
Claudiu Lodromanean 7a0b15b9ec
Merge pull request #21072 from woocommerce/fix/21071
Hide activate step in wizard when you cannot install plugins
2018-08-16 12:55:41 -07:00
Claudiu Lodromanean 809ecb08a0
Merge pull request #21022 from woocommerce/fix/20878
Change caption of image in full screen when variation is selected.
2018-08-16 12:32:30 -07:00
Claudiu Lodromanean 1f1b895b7e
Merge pull request #21067 from davefx/patch-9
Admin: New filter to customize variations count
2018-08-16 10:10:59 -07:00
Gerhard Potgieter 2c15bee1d4 Refine wp.org update check to use correct data structures when querying data. 2018-08-16 14:27:35 +02:00
Gerhard Potgieter 2625823734 Add fallback to wp.org plugin info check if the changelog check fails, this is for free plugins hosted on .org 2018-08-16 14:09:39 +02:00