Commit Graph

24272 Commits

Author SHA1 Message Date
claudiulodro 97d7ae7df8 Missing semicolon 2017-10-09 11:16:24 -07:00
claudiulodro 2ccd44afa7 Translate "no matches" message 2017-10-09 11:10:32 -07:00
Claudio Sanches 9acd6e14b7 PHPCS - Check for translatable strings placeholders
This also ensure that each placeholder have a properly description.
2017-10-09 14:11:22 -03:00
Claudio Sanches 1e2ec87d65 PHPCS - Check for CSRF, sanitization and XSS.
This include `wc_clean()` into PHPCS sanitization functions list.
2017-10-09 14:07:09 -03:00
Jeff Stieler c5f097f319 Setup wizard: check for activate-step-specific GET parameters before hiding the step.
This was a bit overzealous, and broke successful connection flows from the wizard. (Introduced in 97faa49fc4)
2017-10-09 08:55:30 -06:00
Rodrigo Primo 1831d7ec37 Merge pull request #17070 from mohsinsumar/master
States for Tanzania
2017-10-09 11:14:54 -03:00
Mike Jolley c16b950aa9 Merge pull request #17103 from woocommerce/fix/is_checkout_conditional
Add WOOCOMMERCE_CHECKOUT check to is_checkout
2017-10-09 13:18:09 +01:00
mehul0810 20f7c2292e Ran Grunt 2017-10-09 16:17:59 +05:30
mehul0810 9d5da174b7 Message Text changed 2017-10-09 16:17:00 +05:30
mehul0810 0c84895ed8 change of class name 2017-10-09 16:16:45 +05:30
mehul0810 914e31affb Ask for confirmation popup only if sales is produced for a product 2017-10-09 16:16:22 +05:30
Gerhard Potgieter 2080858dd4 Also check the woocommerce_checkout conditional, ensure ajax conditional checks keeps working. Closes #17094 2017-10-09 12:39:47 +02:00
Mike Jolley 74fb3821e2 Merge pull request #17096 from woocommerce/add/17092-jetpack-tos-accept-flag
Setup wizard: set a flag when Jetpack is opted into.
2017-10-09 11:39:32 +01:00
Gerhard Potgieter a815c62289 PHPCS fixes 2017-10-09 12:39:27 +02:00
Mike Jolley ce11605287 Classname was using total instead of email 2017-10-09 11:37:00 +01:00
Jeff Stieler 000295c0bf Setup wizard: remove the “activate” step if Jetpack is already connected. (#17099)
* Setup wizard: remove the “activate” step if Jetpack is already connected.

* phpcs
2017-10-09 11:35:17 +01:00
Mike Jolley 734357aa3e Merge pull request #17095 from woocommerce/update/e2e
Update chromedriver version and add singles tests
2017-10-09 11:21:53 +01:00
Claudiu Lodromanean 2b49125b46 Enable clearing for attribute filter widget (#17093)
* Enable clearing for attribute filter widget

* Multiselect variant doesnt need clear button

* Make code less ugly
2017-10-09 11:21:21 +01:00
Mike Jolley 35dbfa848c Merge pull request #17089 from woocommerce/helper-fix-activation
Helper: Fix automatic subscription activation
2017-10-09 11:20:37 +01:00
mehul0810 1c9a5dbae8 Removed Comma 2017-10-08 15:35:14 +05:30
mehul0810 284c107b1a Add Support for confirmation popup to Delete Permanently link under Trash status. 2017-10-08 15:33:53 +05:30
mehul0810 7a5f5c74ec Ran Grunt 2017-10-08 15:30:19 +05:30
mehul0810 5c0feaf93c Added Script to restrict deletion if still user denies 2017-10-08 15:29:23 +05:30
mehul0810 6e6af2285c Added Message for Product permanent deletion 2017-10-08 15:28:23 +05:30
Jeff Stieler 4c66520989 Setup wizard: set a flag when Jetpack is opted into.
This is to be picked up by the WooCommerce Services extension.
2017-10-06 20:40:25 -06:00
claudiulodro c604c0f824 Update chromedriver version and add singles tests 2017-10-06 13:10:50 -07:00
Konstantin Kovshenin 70a72693c3 Helper: Fix automatic subscription activation
Fixes a bug where automatic subscription activation upon plugin
activation does not trigger due to the subscription being unlimited.
2017-10-06 17:12:55 +03:00
Claudio Sanches 9721a9aca0 Removed legacy tests 2017-10-06 10:39:20 -03:00
Mohsin Sumar 66888355fd Update TZ.php
Indentation fixed.
2017-10-06 13:13:56 +03:00
Mohsin Sumar a31fb456f1 Update TZ.php 2017-10-06 00:21:11 +03:00
Claudio Sanches e9a62731d4 Merge pull request #17076 from woocommerce/fix/orders-meta-test
Test fixes for meta and installer
2017-10-05 15:14:00 -03:00
grosssmutttr 52beb782c6 Update class-wc-widget-layered-nav.php - Avoid duplicate content
Added rel="nofollow" to the filters to avoid duplicate content.
2017-10-05 19:55:10 +02:00
Mike Jolley 7d7907fc8e Delete installing transient. 2017-10-05 18:11:25 +01:00
Claudio Sanches 109e884533 Exclude includes/wc-widget-functions.php 2017-10-05 14:10:17 -03:00
Claudio Sanches e5f7b5ebc2 Updated tests exclusion list 2017-10-05 14:05:38 -03:00
Claudio Sanches 31f42ba907 Move includes/class-wc-legacy-api.php to includes/legacy/class-wc-legacy-api.php 2017-10-05 14:02:30 -03:00
Mike Jolley 7cb7e3c864 Test should compare objects, not arrays 2017-10-05 17:37:18 +01:00
Mike Jolley cef97ebc9f Merge pull request #17074 from woocommerce/fix/unit-tests
Restored tests/bin/phpunit.sh
2017-10-05 17:16:25 +01:00
Claudio Sanches cd554c1bdf Restored tests/bin/phpunit.sh 2017-10-05 13:14:56 -03:00
Claudio Sanches 18a47d79b1 Merge branch 'master' into add/formatting-unit-tests 2017-10-05 12:18:29 -03:00
Claudio Sanches c0197c639e Formatting functions unit tests 2017-10-05 11:20:52 -03:00
Claudio Sanches 8cd754d8b6 Fixed coding standards 2017-10-05 11:08:37 -03:00
Mohsin Sumar 5c6770b35b States for Tanzania 2017-10-05 16:08:01 +03:00
Mike Jolley 77e245fa68 Merge pull request #17067 from woocommerce/fix/mexican-state-update
Update only state fields when updating Mexican States
2017-10-05 12:53:35 +01:00
Valerie K b4088c5d91 Wizard: Handle Jetpack install, activate, and connection errors (#16983)
* Wizard: Remove extra query arg in next step URL

Remove the activate_error query arg from
the URL for the next step.

* Wizard: Remove temp queued Jetpack install option

This is done so that the option does not remain
when going through the wizard again, or when going
back to previous pages.

It prevents an infinite loop from happening when
waiting for the Jetpack install and activation
to finish on the activate step.

* Wizard: Install and activate Jetpack if needed

Add function to install & activate Jetpack as needed.
Props to @jeffstieler for the idea, and the implementation/code:
https://github.com/Automattic/woocommerce-services/pull/1031#discussion_r122505316
https://github.com/Automattic/jetpack/blob/master/3rd-party/woocommerce-services.php#L101

Add a list of errors and a function to get the correct error message.

After clicking the connect Jetpack button, make sure that
Jetpack is installed and activated.

On error, redirect to the activate page with a query arg.

* Wizard: Show Jetpack error message if it exists

Always check for an error message when displaying
the activate step. If the error
message exists, display it at the top of the page.

* Remove redundant "if" so the $title in the Activate step is always a valid string

* Tweaked the "Server is on a private network" Jetpack activation error message.
2017-10-05 12:51:49 +01:00
Gerhard Potgieter a8e3862bf2 Change the mexican state update routing to only update shipping and billing states, not all meta data which matches. Closes #17066 2017-10-05 13:49:10 +02:00
Gerhard Potgieter 71fce64f54 PHPCS fixes. 2017-10-05 13:48:26 +02:00
Gerhard Potgieter 9ad6a41e7c Revert "Change the mexican state update routing to only update shipping and billing states, not all meta data which matches. Closes #17066"
This reverts commit 2474396eb6.
2017-10-05 13:46:45 +02:00
Mike Jolley fa86622bd8 Merge pull request #17063 from woocommerce/add/account-unit-tests
Account function Unit Tests
2017-10-05 12:38:51 +01:00
Gerhard Potgieter 2474396eb6 Change the mexican state update routing to only update shipping and billing states, not all meta data which matches. Closes #17066
This also fixes a bunch of PHPCS issues as it seems the new rules is very strict and you must fix the whole file before commiting any of your own changes.
2017-10-05 11:32:30 +02:00