Commit Graph

34439 Commits

Author SHA1 Message Date
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
Timmy Crawford 2c8195ca8a remove console.log 2020-03-13 17:09:13 -07:00
Timmy Crawford 5880ef902d Add ability to filter props for js-based tracks. 2020-03-13 16:31:06 -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
Rodrigo Primo e61e865a4a Change string for untested WC extensions to avoid confusions
This commit changes the string that is displayed to the users in the system status report page when an old version of a WC extension is installed and it doesn't declare support for the current WC core version.

The original message was:

"WooCommerce Min/Max Quantities - by WooCommerce - 2.4.11 - 2.4.12 is available - Not tested with the active version of WooCommerce"

The new message is:

"WooCommerce Min/Max Quantities - by WooCommerce - 2.4.11 - This version is not tested with the active version of WooCommerce (update is available)"

The problem with the original message is that it gives users the impression that even the newest version (2.4.12 in the example above) is not tested with the active version of WooCommerce.
2020-03-12 12:01:35 -03:00
Boro Sitnikovski 15641bf08f Trigger change and set val to qty so that it properly updates event handlers 2020-03-12 16:01:30 +01: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 4dde5ee453 Remove unused variable 2020-03-12 11:24:35 -03: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
Rodrigo Primo b9165c66a8 Refactor code that lists plugins to avoid duplication
This commit creates a new method called
WC_Admin_Status::output_plugins_info() that is used to display the
plugins that are installed on the site in the system status report page.
It is used to display both the active and inactive plugins sections and
it was created to remove code duplication.

I don't think that adding this code as a method to WC_Admin_Status is
an ideal solution but it is the best that I could think and it is better
than duplicating code. Suggestions of other places are welcome.
2020-03-12 10:47:54 -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
Rodrigo Primo f32c062739 The db update routine that updates the db version should be the last one
This commit simply changes the order of the database update callbacks
for WC 4.0 to make sure that wc_update_400_db_version is the last one.
2020-03-10 09:31:45 -03:00
Rodrigo Primo cd75870267 Add the wc_update_400_ prefix to db update routine
The db update routine that resets action scheduler migration status was
missing the wc_update_400_ prefix. Doing this for the sake of
consistency.
2020-03-10 09:27:30 -03:00
Timmy Crawford 0c1f468692 Add filter for php-based tracks event properties. 2020-03-09 12:46:40 -07:00
Peter Fabian cb90b4d3bc Updated changelog date for 4.0 release. 2020-03-09 14:02:45 +01:00
Rodrigo Primo d65cd6204e
Merge pull request #25823 from michaelignacio/fix/25781
Remove guided tour videos link on setup wizard
2020-03-09 09:34:16 -03:00
Peter Fabian 2eca326825 Improve translatability of version string. 2020-03-09 13:07:32 +01:00
vedanshujain 22392546f6 Add documentation links for settings 2020-03-09 10:47:32 +01:00
Michael Ignacio d2a00bff04 Remove mention of guided tour videos on setup wizard 2020-03-08 19:33:28 +08:00
Julia Amosova 0a90489322 Remove legacy e2e test suite travis setup 2020-03-06 14:12:24 -05:00
Rodrigo Primo fb1001b14a
Merge pull request #25825 from woocommerce/fix/etc-comma
Add comma before 'etc.' in address 2 placeholder
2020-03-06 14:50:14 -03:00
Rodrigo Primo 1910420896
Merge pull request #24776 from boghy933/feature/24754
Option for free shipping if should ignore discounts or not
2020-03-06 13:10:45 -03:00
Rodrigo Primo 709d3f64a3
Merge pull request #25835 from woocommerce/add-rtl-style-to-obw
Add RTL style to the onboarding wizard
2020-03-06 12:01:12 -03:00
Rodrigo Primo b3724a38c7 Add RTL style to the setup wizard
Kudos to @kadimi who is the original author of this change (see #24623).
I'm doing this commit as we were not able to merge their PR due to a
conflict and we were also not able to cherry-pick their commit as GitHub
is reporting that the PR was created from a unknown repository.
2020-03-06 11:41:38 -03:00
Rodrigo Primo 9b6d66cf1f
Merge pull request #25609 from SamirMahmudzade/patch-3
Update KZT (₸) symbol wc-core-function.php
2020-03-06 11:36:11 -03:00
Rodrigo Primo f413cad396 3.9.3 changelog 2020-03-06 09:50:32 -03:00
Rodrigo Primo 701f5bee3b Update template version after #25668 2020-03-06 09:46:40 -03:00
Rodrigo Primo 9a0ce76ee4
Merge pull request #25668 from douglas-johnson/fix/form-row-class-name
Fix Class Name In Login Form: Change -FormRow to -form-row
2020-03-06 09:45:51 -03:00
Rodrigo Primo 46c21ec694
Merge pull request #25628 from jacobarriola/feature/up-sells-product-heading
Allow heading filter for up sells component
2020-03-06 09:30:31 -03:00
Rodrigo Primo e1aaa6c63c
Merge pull request #25611 from tyrann0us/patch-1
Fix typo in DocBlock of `woocommerce_template_loop_product_link_close()`
2020-03-06 09:26:31 -03:00
Rodrigo Primo 5ef13786e4
Merge pull request #25830 from woocommerce/fix/wc-admin-system-status-logic
Update system status info about WC Admin.
2020-03-05 15:31:20 -03:00