vedanshujain
b29219969c
Addressed code review comments
2020-02-07 17:54:54 +05:30
vedanshujain
ca5fd12103
Add setting to configure hash appends
2020-02-07 17:54:54 +05:30
vedanshujain
56176e0479
Append unique hash to filename for added security
2020-02-07 17:54:54 +05:30
vedanshujain
44677bbab7
Fallback to force for remote file because xsendfile don;t support it by default
2020-02-07 17:54:54 +05:30
vedanshujain
dc060fe700
Add notice when "redirect only" download method is selected.
...
This download is insecure as it reveals the original file location. We will try to nudge user to use any of the other download method instead.
2020-02-07 17:54:54 +05:30
vedanshujain
d7bac6313c
Add suffix "Insecure" to indicate that this method is insecure
2020-02-07 17:54:54 +05:30
Peter Fabian
1441d8c07b
Merge pull request #25597 from woocommerce/try/obw-jn-as-race-cond
...
Try to fix the setup wizard trouble on JN
2020-02-07 13:04:06 +01:00
Rodrigo Primo
1183619cfc
Updated version to 4.0.0-beta.1 ( #25591 )
...
* Updated version to 4.0.0-beta.1
* Used the final desired version in class WooCommerce.
2020-02-07 09:02:20 -03:00
Peter Fabian
4abbfa5d88
Added 4.0.0 changelog for beta.1 ( #25592 )
...
* Added 4.0.0 changelog for beta.1
* Rolled back the changelog file.
2020-02-07 09:02:09 -03:00
Peter Fabian
4f485a14de
Added explanation comments.
2020-02-07 12:58:31 +01:00
Peter Fabian
0eb758b8e2
Apply patch until a new AS version comes out.
2020-02-07 11:32:33 +01:00
Peter Fabian
5fc2e8fba9
Only skip the store_notices during new install in AS.
2020-02-07 11:06:35 +01:00
Peter Fabian
4c4f9f1164
Don't save notices when running from AS.
2020-02-07 00:21:03 +01:00
Peter Fabian
06d0bbefc4
Don't run setup wizard redirects from AS.
2020-02-07 00:20:42 +01:00
Rodrigo Primo
e9b6faa8df
Merge pull request #25595 from woocommerce/fix/cod-admin-check
...
Fix undefined function error when accessing COD gateway class outside admin
2020-02-06 17:36:53 -03:00
Peter Fabian
68fe4d9f0e
Used the final desired version in class WooCommerce.
2020-02-06 21:33:22 +01:00
Christopher Allford
b5d5be7df1
Removed the admin screen checking in favor of good old fashioned request parameters for COD gateway setting loading
2020-02-06 12:29:01 -08:00
Christopher Allford
30fd538acf
Added function_exists check to COD gateway settings check
2020-02-06 10:03:26 -08:00
Claudio Sanches
902805f9a6
Merge pull request #25594 from woocommerce/fix/unit-tests-nightly
...
Fix unit tests when running using WP nightly
2020-02-06 14:44:25 -03:00
Rodrigo Primo
ddd55164ac
Merge pull request #25593 from woocommerce/update/template-versions-4.0
...
Updated template versions where it was missed.
2020-02-06 13:14:48 -03:00
Rodrigo Primo
48480eb882
Fix unit tests when running using WP nightly
...
The WooCommerce unit tests started failing when running using WP nightly
with the following error:
```
Fatal error: require_once(): Failed opening required '/tmp/wordpress-tests-lib/src//wp-includes/class-phpmailer.php' (include_path='.:/home/travis/.phpenv/versions/7.4.2/share/pear') in /tmp/wordpress-tests-lib/includes/mock-mailer.php on line 2
```
https://travis-ci.org/woocommerce/woocommerce/jobs/646855363#L1955
This was happening because WP changed the syntax of the line where
ABSPATH is defined in the context of the unit tests
(https://core.trac.wordpress.org/changeset/47198/trunk/wp-tests-config-sample.php )
and we rely on this syntax to change ABSPATH when running
`tests/bin/install.sh`.
To fix this problem, this commit updates the sed command used to change
ABSPATH to work when both the old and new syntaxes are used. In the
future we might want to consider a more robust solution to the problem
of updating ABSPATH.
2020-02-06 12:43:47 -03:00
Peter Fabian
67b6f2f710
Bumped template versions where templates got modified since 3.9.
2020-02-06 16:03:57 +01:00
Peter Fabian
422d8787f5
Updated version to 4.0.0-beta.1
2020-02-06 14:00:43 +01:00
Peter Fabian
3c83e8b541
Merge pull request #25589 from woocommerce/fix/uninstall-script-constant-fix
...
Remove constants and autoloader from the uninstall script
2020-02-06 13:46:02 +01:00
Peter Fabian
42731d34e6
Restored original behaviour of the constant.
2020-02-06 13:39:46 +01:00
Peter Fabian
6be32bcfd7
Simplify WC Admin drop tables.
...
As uninstall runs without all WC loaded, using a simple include and direct call to drop tables.
2020-02-06 13:18:18 +01:00
Peter Fabian
9eda5ac1b7
Removed the Automattic\Jetpack\Constants use from uninstall routine.
...
Uninstall does not run in normal WC context, so doesn't have access to Constants.
2020-02-06 13:13:12 +01:00
Vedanshu Jain
9587c7d885
Merge pull request #25587 from woocommerce/renovate/woocommerce-woocommerce-blocks-2.x
...
Update dependency woocommerce/woocommerce-blocks to v2.5.12
2020-02-06 17:17:13 +05:30
Renovate Bot
2242c20409
Update dependency woocommerce/woocommerce-blocks to v2.5.12
2020-02-06 11:17:31 +00:00
Peter Fabian
7233dc8a2e
Merge pull request #25011 from woocommerce/try/add-wc-admin
...
wc-admin: Include package
2020-02-06 12:09:25 +01:00
Peter Fabian
7c81915d1c
Update the uninstall routine to fix review issues.
...
- PHP version check should not be needed anymore, as WC core requires PHP 7.0+
- The uninstallation/cleanup is not aborted if WC Admin can't be loaded
- Replaced init() call by drop_tables() call, as that's what probably needs to happen
2020-02-06 12:02:55 +01:00
Peter Fabian
ee865fe0b4
Merge pull request #25504 from woocommerce/update/order-detail-summary
...
Enhance order details and payment summary
2020-02-06 11:40:45 +01:00
Claudio Sanches
4de580dca8
Merge pull request #25573 from mgibbs189/master
...
Adds a `woocommerce_shortcode_products_query_results` hook
2020-02-05 18:42:06 -03:00
Christopher Allford
827458f500
Merge pull request #25584 from woocommerce/add/SSR-include-new-packages
...
Added info about packages to System Status Report
2020-02-05 13:22:29 -08:00
Christopher Allford
6ca7b9fa4a
Merge pull request #25382 from smachi/master
...
Improved performance when saving variations
2020-02-05 13:14:13 -08:00
Peter Fabian
5c23d013d7
Added info about packages to System Status Report.
2020-02-05 21:54:05 +01:00
Rodrigo Primo
44ecb0ec9e
Only display the "Paid by customer" section if the order has been paid
...
This commit changes the condition in the if the statement that decides
whether or not to display the "Paid by customer" section in the order admin
page. Before it, this section was displayed for all orders that
contained one of the following statuses: 'processing', 'completed' or 'refunded'.
The problem with this approach is that offline payment gateways, like
'Cash on Delivery', set the order status to processing when the order is
placed but before the customer pays for it. So the "Paid by customer"
section was being displayed in some cases where the order was not
actually paid yet creating a confusing experience to store managers.
To fix this, this commit also checks for the presence of the
`_date_paid` order meta. If this order meta is present and the order
status corresponds to one of the three statuses listed above, it means that
the order has been paid and we can display the "Paid by customer"
section. If this order meta is not present, we don't display the "Paid
by customer" section.
2020-02-05 16:08:13 -03:00
Rodrigo Primo
7c9d6110e2
Fix typo in code comment
2020-02-05 15:48:40 -03:00
Peter Fabian
d3a33f8d05
Merge pull request #24943 from woocommerce/refactor/eu-vat-brexit
...
Brexit and VAT refactor
2020-02-05 19:41:40 +01:00
Peter Fabian
b385404861
Fixed deprecated since version.
2020-02-05 19:18:08 +01:00
Matt Gibbs
f57f1c6293
Requested commenting & hook tweaks
2020-02-05 13:08:40 -05:00
Christopher Allford
92708dde1f
Merge pull request #25512 from woocommerce/fix/25438.2
...
Fixed unnecessary loading when constructing COD payment gateway
2020-02-05 10:02:38 -08:00
Peter Fabian
46dd915044
Improve coupon notice handling.
2020-02-05 18:50:40 +01:00
Peter Fabian
5ba2cdafa5
Merge pull request #25183 from om4james/webhook-de-duplication
...
Fix for Duplicate Webhook deliveries
2020-02-05 18:38:15 +01:00
Claudio Sanches
f25967d57b
Merge pull request #25581 from gerdneuman/patch-2
...
Remove stale .order-actions css
2020-02-05 14:20:33 -03:00
Peter Fabian
fe9a5be828
Merge pull request #25528 from woocommerce/update/wccom-installer-api-authentication
...
Use query params as fallback for obtaining authentication data in plugin installer API
2020-02-05 18:13:06 +01:00
Claudio Sanches
805d499649
Merge branch 'master' into try/add-wc-admin
2020-02-05 14:09:03 -03:00
Peter Fabian
83ac6adfb9
Merge pull request #25574 from woocommerce/update/makepot
...
Use WP-CLI i18n command instead of legacy grunt packages
2020-02-05 18:02:20 +01:00
Peter Fabian
a438c3548e
Install i18n during e2e tests
...
This should make npm run build succeed again.
2020-02-05 17:16:00 +01:00
Claudio Sanches
5b9937ad48
Merge branch 'master' into try/add-wc-admin
2020-02-05 13:02:51 -03:00