Commit Graph

26694 Commits

Author SHA1 Message Date
Rodrigo Primo bf634b0885 Revert "expiry and limit getters and setters for WC_Product_Download"
This reverts commit bdda142d24.
2018-04-25 17:29:41 -03:00
Rodrigo Primo e2471d215f Revert "Add limit and expiry to data array."
This reverts commit 5ef6766654.
2018-04-25 17:29:36 -03:00
Rodrigo Primo ad40751ae7 Revert "Add limit and expiry to get_downloads, cater for empty strings expiry and limit setters"
This reverts commit 18600e1d2f.
2018-04-25 17:25:39 -03:00
Rodrigo Primo 920006b8b9 Test setup methods should call parent setup method
This commits adds a call to `parent::setUp()` inside WC_Tests_Product_CSV_Importer::setUp(). This is necessary to make sure transactions are used on database calls and thus tests don't have to worry about cleaning inserted data.

I found this issue while debugging https://github.com/woocommerce/woocommerce-product-tables-feature-plugin/issues/81. Turns out this test was failing because WC_Tests_Product_CSV_Importer::test_import() was leaving one post in the database due to a bug in the custom product tables plugin.
2018-04-23 10:40:16 -03:00
Rodrigo Primo bf0da0287d Simple placeholders should not be quoted 2018-04-20 09:28:08 -03:00
Rodrigo Primo 9c33f133b6 Fix parameter order when calling PHPUnit_Framework_TestCase::assertEquals()
The first parameter passed to PHPUnit_Framework_TestCase::assertEquals() should be the expected value and the second parameter the actual value and not the other way around.
2018-04-19 17:25:38 -03:00
Rodrigo Primo 94751f2872 Use data store loader instead of hardcoding data store class name
This way plugins extending WC core data stores can still benefit from WC core tests
2018-04-02 15:50:44 -03:00
Rodrigo Primo d55c0d63b1 Add unit tests group 'core-only'
This group is used to identify unit tests that will work only when testing WC core. This is necessary since we are using WC core unit tests to test the custom product tables plugin and some tests should be skipped in this context.
2018-04-02 15:15:23 -03:00
Claudio Sanches 38a4af3b0e Included @since tags in new methods of WC_Product_Download 2018-03-29 15:28:10 -03:00
Claudiu Lodromanean 8870f76afe
Merge pull request #19575 from woocommerce/add/downlodable-file-permission-hook
Adds new hook to allow customize downlodable file permissions
2018-03-29 10:05:35 -07:00
Claudio Sanches 4c6641ab6a Adds new hook to allow customize downlodable file permissions
This is needed on Product Custom Tables in order to allow control expire
and remaining downloads per file.
2018-03-29 13:58:40 -03:00
Rodrigo Primo bb553c88ae Merge branch 'master' into feature/product-custom-tables-supporting-changes 2018-03-29 12:05:55 -03:00
Rodrigo Primo edfadcf7ae Product price filter widget: add a new filter to change the query to get max and min prices 2018-03-29 11:52:49 -03:00
Mike Jolley 4a6c526229
Merge pull request #19557 from bernattorras/before_variations_hook
Add 'woocommerce_variable_product_before_variations' hook to variations tab
2018-03-29 11:00:34 +01:00
Mike Jolley cbbb84b268
Merge pull request #19564 from linkhousemedia/patch-1
Add oxford comma to dashboard intro text
2018-03-29 10:59:12 +01:00
linkhousemedia 874b7426af
Add oxford comma to dashboard intro text
Comma after "shipping and billing addresses" for the grammar lovers.
2018-03-29 00:04:30 -04:00
bernat torras 307605a739 Added 'Removed extra tabs 2018-03-28 21:27:46 +02:00
Claudio Sanches e718bdd11c
Merge pull request #19192 from nishitlangaliya/Issue-18990
Fixes- Admin - removed product type column
2018-03-28 15:37:57 -03:00
Claudio Sanches 5bec3b229f
Merge pull request #19527 from woocommerce/fix/19519
Use `get_variation_price` method in structured data to grab min/max so filters are ran.
2018-03-28 15:23:14 -03:00
Claudio Sanches 6b903cf4bf
Merge pull request #19529 from woocommerce/fix/incorrect-escaping
Fixes incorrect escaping
2018-03-28 14:33:43 -03:00
Claudio Sanches 9ab58dde47 Merge branch 'master' into fix/incorrect-escaping 2018-03-28 14:32:51 -03:00
nishitlangaliya b98b17eae8 span.wc-type and span.wc-type::before removed from admin.scss as per suggestion #18990 2018-03-28 23:00:43 +05:30
Claudio Sanches 376e51c9f1 Fixed PHPCS violations 2018-03-28 14:30:43 -03:00
Claudio Sanches 35b75b5beb
Merge pull request #19555 from woocommerce/update/19547-wp-cli-pagination
WP-CLI integration per_page default
2018-03-28 14:01:38 -03:00
bernat torras 47d85844d8 Added 'woocommerce_variable_product_before_variations' hook to variation tab 2018-03-28 16:02:06 +02:00
Mike Jolley a6d82431bb
Merge pull request #19426 from michakrapp/master
add autocomplete attributes to account and register forms #19425
2018-03-28 14:03:27 +01:00
Mike Jolley 51252915e1
Merge pull request #19493 from woocommerce/fix/19404
Removed line item limit and made sure the URL is shorter than 2083 ch…
2018-03-28 13:56:57 +01:00
Peter Fabian 3809ab3f4c Fixed shipping tax logic to behave the same as originally 2018-03-28 13:08:05 +02:00
michakrapp 8d3c76d980 account edit form disble autocomplete for password fields 2018-03-28 12:18:14 +02:00
Gerhard Potgieter 2c24872989
Merge pull request #19541 from woocommerce/update/tracking-wording
Tweak wording for opt-out
2018-03-28 12:12:18 +02:00
Mike Jolley 5547c57c03
Merge pull request #19504 from woocommerce/fix/19485-backorder-import
Product import backorders default to no
2018-03-28 11:00:09 +01:00
Mike Jolley 7966fcfbe7
Merge pull request #19522 from woocommerce/fix/19491
Apply strip_tags to attributes in loop template
2018-03-28 10:57:58 +01:00
Peter Fabian c2e27919ce Replaced array_key_exists with isset test 2018-03-28 11:19:03 +02:00
Peter Fabian 59c47c4407 Refactored line item logic
- prepare_line_items is not used as a test anymore, it only updates line items
- add_line_item is not used as a test anymore, only adds line items
- added method line_items_valid to test for valid line items
- shipping tax inclusion test moved to get_shipping_cost_line_item to encapsulate shipping tax-related logic
2018-03-28 11:04:34 +02:00
Gerhard Potgieter 9c67760bc0 per_page must be between 1 and 100, default to 100. 2018-03-28 10:18:10 +02:00
Gerhard Potgieter 1f2468ca3e When no per_page is defined for list wp-cli command default to displaying all items as per the wp-cli standard. 2018-03-28 09:47:15 +02:00
Gerhard Potgieter 80ec10fc21 Fix unit test for import, the way the test is set up it expects a no for backorders and not an empty string 2018-03-28 08:28:13 +02:00
Claudiu Lodromanean cdb8cf86af
Merge pull request #19530 from woocommerce/add/escaping-to-publish-date
Add escaping to publish date
2018-03-27 12:12:53 -07:00
Jonathan Belcher 435337c3e0
Bump version Number 2018-03-27 11:51:47 -04:00
Claudiu Lodromanean d802d2ca6a
Merge pull request #19526 from woocommerce/fix/19511
Tweak `wc_get_price_excluding_tax` to not round the return value so calculations in admin are not pre-rounded.
2018-03-27 08:36:31 -07:00
Peter Fabian 86f1b3701f Tag stripped outside template
Stripping only affects aria-label attribute now.
2018-03-27 17:19:49 +02:00
Claudiu Lodromanean ccdf0923fa
Merge pull request #19509 from woocommerce/update/19506
Call empty cart when completing payment in PayPal
2018-03-27 07:58:59 -07:00
Peter Fabian f39e8e3900 Removed incorrect comment 2018-03-27 16:28:25 +02:00
Claudio Sanches 9abc28d03d
Merge pull request #19543 from woocommerce/fix/19133
Disable Gutenberg for products.
2018-03-27 11:19:09 -03:00
Peter Fabian 5eda49f98a Line item logic refactored
Renamed function get_non_line_item_args
Documentation updates
...all part of code review fixes
2018-03-27 15:55:03 +02:00
Mike Jolley 0599c06b20 Disable Gutenberg for products. 2018-03-27 13:28:03 +01:00
Mike Jolley dd3b998851 Tweak wording for opt-out 2018-03-27 13:00:19 +01:00
Mike Jolley 5b001f160d
Merge pull request #19531 from woocommerce/fix/whitespace
Fixes stray space in tabbing
2018-03-27 11:38:37 +01:00
Jonathan Belcher b039e40fed Fixes stray space in tabbing 2018-03-26 13:51:24 -04:00
Jonathan Belcher 97c591a5e5 Add escaping to piblish date 2018-03-26 13:44:16 -04:00