Commit Graph

34298 Commits

Author SHA1 Message Date
Peter Fabian b16acdef6f
Merge pull request #25966 from woocommerce/renovate/woocommerce-action-scheduler-3.x
Update dependency woocommerce/action-scheduler to v3.1.4
2020-03-18 16:47:25 +01:00
Renovate Bot 75d07e9064
Update dependency woocommerce/action-scheduler to v3.1.4 2020-03-18 15:23:38 +00:00
Peter Fabian e6e50c4150
Merge pull request #25961 from woocommerce/bump/wc-admiin-1.0.2
wc-admin: bump version to 1.0.2
2020-03-18 16:20:29 +01:00
Peter Fabian 0e0b1d646d
Merge pull request #25882 from woocommerce/fix/25845
Set usage count before usages query
2020-03-18 15:44:49 +01:00
Peter Fabian 38c75cae1b
Merge pull request #25858 from woocommerce/fix/wccom-installer-api-product-arg-type
Change "products" argument type from array to object in plugin installer API
2020-03-18 15:05:13 +01:00
Rebecca Scott 928529880d Track viewing an order 2020-03-18 13:14:31 +10:00
Paul Sealock 7213ddb3f7 wc-admin: bump version to 1.0.2 2020-03-18 11:58:14 +13:00
Rodrigo Primo 6b73540e50
Merge pull request #25837 from woocommerce/update-readme-tags
Update readme.txt tags to include 'woo'
2020-03-17 17:30:16 -03:00
Peter Fabian 692df536f7
Merge pull request #25884 from woocommerce/fix/25875
Use admin_url instead of using absolute url to support subfolder
2020-03-17 18:20:04 +01:00
Peter Fabian b3357fee79
Merge pull request #25898 from woocommerce/fix/25881
Fixes typo in download help text
2020-03-17 17:47:19 +01:00
Peter Fabian f41302bfe8
Merge pull request #25950 from woocommerce/revert-25382-master
Revert "Improved performance when saving variations"
2020-03-17 17:20:56 +01:00
Christopher Allford 917e5ff77d
Merge pull request #25923 from woocommerce/fix/test-install-db-socket
Correct usage of database sockets in test install script
2020-03-17 09:08:18 -07:00
Christopher Allford 1358cca6d1
Revert "Improved performance when saving variations" 2020-03-17 08:55:09 -07:00
Peter Fabian 9431b34f0d
Merge pull request #25946 from woocommerce/fix/25928
Send dummy parameters so that cost is evaluated correctly.
2020-03-17 16:51:36 +01:00
Vedanshu Jain e35aaf1cff
Merge pull request #25885 from grigorijurasov/master
Change Serbian currency symbol from дин. to рсд, solves #25441
2020-03-17 19:02:17 +05:30
Peter Fabian 2a05f7c000
Merge pull request #25916 from woocommerce/fix/revert-25128
Made the is_package_shippable check more permissive
2020-03-17 14:14:23 +01:00
vedanshujain 861b9de692 Send dummy parameters so that cost is evaluated correctly.
Also added a warning for subclasses that cost and qty are required keys.
2020-03-17 16:54:01 +05:30
vedanshujain 82575a0c74 Don't echo error when doing AJAX because it invalidates JSON
We already append errors in JSON response in `error` array, so echoing separately is not required.
2020-03-17 16:49:52 +05:30
Christopher Allford ed55034867 Added a check to prevent coupon cent remainders from decreasing the item cost below zero 2020-03-16 21:32:25 -07:00
Rebecca Scott 7adabc9a6a Remove unnecessary use statement 2020-03-17 11:51:50 +10:00
Rebecca Scott 4bdcd3eccd Start tracking product_update 2020-03-17 11:27:57 +10:00
Rua Haszard 0b79a65829 fix various issues with post_contains_text:
- correct table name / prefix
- ensure search string has wildcards before & after
- return value is '0' or '1', fix return logic (was returning 'Yes' no
matter what)
2020-03-17 09:21:31 +13:00
vedanshujain cfed958bac Fix typo 2020-03-16 16:55:09 +05:30
vedanshujain 3ef491631f Better messaging to inform that remote files will not be affected 2020-03-16 16:52:35 +05:30
Rua Haszard 8e6f5da2e1 add cart info to tracker:
- adds a new key 'cart_checkout'
- adds boolean props indicating if store cart & checkout use blocks or shortcodes
2020-03-16 17:21:58 +13:00
Christopher Allford 98395741cf Changed the default test file locations to respect the system's tmp folder 2020-03-13 20:44:43 -07:00
Christopher Allford 5f829d4005 Corrected the handling of sockets in the unit test install script 2020-03-13 20:44:38 -07:00
Christopher Allford a576060403 Replaced the strict path used in the MaxMind database download test
It was set to /tmp directly instead of using the sys_get_temp_dir() method, leading to failures on systems with a different temp folder location,
2020-03-13 20:44:35 -07:00
Jeff Stieler 6a8d8b27d9
Fix missing notes table on 4.0.0 upgrade. (#25891)
* Don't attempt to create a WC-Admin note before the tables exist.
2020-03-13 12:20:41 -06:00
Christopher Allford 8c0f4a1204 Made the is_package_shippable check more permissive
Initially it was made more precise to avoid calculating estimates for incomplete addresses. Due to some bad working in template files though, as well as historical precedent, we need to change it back.
2020-03-13 09:15:31 -07:00
Steve Grunwell d085044970 Remove an unnecessary onNotSuccessfulTest() override, as the tearDown() fixture will be called regardless of the successfulness of the test method 2020-03-12 16:00:01 +00:00
Steve Grunwell 0a5161ea3d *CODING STANDARDS ONLY* Add method visibility, clean up inline documentation. 2020-03-12 15:57:32 +00:00
Steve Grunwell 2383670020 Simplify the test for test_get_tables_enables_filter() now that we can leverage PHP >= 5.3 2020-03-12 15:54:25 +00:00
Steve Grunwell 7f74eace0b Rewrite WC_Tests_Install::test_get_tables()
Instead of comparing all tables that exist with all tables that are registered with `WC_Install::get_tables()` (which was only introduced a few versions ago in #19436), rewrite the test to verify that all of the tables *registered* actually exist within the database.

This will prevent tests from failing when, for example, they're run against databases that may or may not have additional plugins installed/activated. This also prevents tests from failing when running WooCommerce 4.x (e.g. with WooCommerce Admin) on WordPress < 5.3, since the tables are created but the callback to register the custom tables is never hooked.
2020-03-12 15:00:03 +00:00
Rodrigo Primo d067a2bd12 Fix PHP docblock for WC_Plugin_Updates::get_untested_plugins()
The documentation of the method
WC_Plugin_Updates::get_untested_plugins() said that it only considers
active plugins when getting the list of untested plugins, but it
actually considers all installed plugins. This commit simply updates the
documentation to reflect the method behavior.
2020-03-12 11:01:36 -03:00
vedanshujain 7dad11dfc2 Also used add_query_args for better compatibility 2020-03-12 16:30:08 +05:30
Vedanshu Jain 0a351fb2aa
Merge pull request #25880 from woocommerce/bump-to-next-version
Bump WooCommerce version since 4.1.0 development has begun
2020-03-12 14:51:28 +05:30
Steve Grunwell 5855931542 Define the polyfill before attempting to call it 2020-03-11 16:53:25 +00:00
Steve Grunwell 86d44e74bb Make WC_Tests_CRUD_Data::onNotSuccessfulTest() compatible with its parent declaration 2020-03-11 16:35:36 +00:00
Steve Grunwell 0a3c5186fa The WP core test suite didn't introduce includes/listener-loader.php until WordPress 5.1, so we need to polyfill the behavior when testing against WordPress 5.0 2020-03-11 16:34:52 +00:00
vedanshujain 75c3583ff5 Use admin_url instead of using absolute url to support subfolder installs 2020-03-11 21:30:35 +05:30
Steve Grunwell 70e7a8ed08 Add a Travis CI build using the minimum WooCommerce requirements
The current build matrix is always testing against the latest version of WordPress, but WooCommerce officially supports WordPress 5.0 and newer.
2020-03-11 15:42:40 +00:00
vedanshujain a2418156d4 Add tests 2020-03-11 20:47:24 +05:30
vedanshujain 509b2c180d Set usage count as its required by usages query 2020-03-11 20:44:52 +05:30
Rodrigo Primo 83691541c2 Bump WooCommerce version since 4.1.0 development has begun 2020-03-11 11:37:35 -03:00
Rodrigo Primo 66da2c83da 4.0 changelog 2020-03-11 11:22:05 -03:00
Rodrigo Primo 77fbf9d332 Update readme.txt tags to include 'woo'
As discussed in p6q8Tx-1qz-p2, when users search for 'woo' on the WP.org plugin repository, WooCommerce does not appear in the list of results. This is happening because 'woo' is not mentioned in the content, excerpt, title, or the first five tags. It was suggested that we start using the tags fields for synonyms like 'woo'. Since WP.org only stores the first 5 tags, in this commit, I'm removing the tag ecommerce tag (which is a word that appears both in the excerpt and the content) and replacing it with 'woo'.

In the future, we might want to evaluate the other four tags that WP.org is considering: e-commerce, store, sales, sell.
2020-03-10 13:56:51 -03:00
Peter Fabian bc4f246dc0
Merge pull request #25859 from woocommerce/fix/update-AS-to-3-1-2
Update Action Scheduler to version 3.1.2
2020-03-10 16:40:26 +01:00
Peter Fabian 968e9c6527 Update Action Scheduler to version 3.1.2
This is a trick to avoid function conflict with MailChimp 2.3.4 and how it hooks its own version of Action Scheduler during the autoloader function.
2020-03-10 16:02:37 +01:00
Denis Dvali 955bb2ca7e Change "products" argument type from array to object. 2020-03-10 17:41:39 +03:00