woocommerce/includes/admin
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
..
helper Helper: Add a new filter to display only installed extensions. 2017-09-27 15:17:24 +03:00
importers Display error message when it's impossible to get a sample of the file. 2017-09-26 17:48:37 -03:00
meta-boxes Replay protection on refunds 2017-09-28 16:17:13 +01:00
plugin-updates Shuffle things around to prevent errors and for better performance 2017-09-21 14:06:44 -07:00
reports Handle full refunds in tax report by date 2017-09-26 18:27:53 +01:00
settings Nothing to be translated any more! 2017-10-04 13:11:44 +01:00
views Match the database sizes up with the right labels 2017-09-02 18:56:29 -05:00
class-wc-admin-addons.php docblocks 2017-08-23 14:38:00 +01:00
class-wc-admin-api-keys-table-list.php Fixed "singular" and "plural" parameters of WP_List_Table instances 2017-04-05 18:15:40 -03:00
class-wc-admin-api-keys.php Add icons and fix links 2017-04-27 12:23:16 +01:00
class-wc-admin-assets.php Move clipboards off zeroclipboard 2017-09-21 13:09:36 -07:00
class-wc-admin-attributes.php Implement attributes functions to admin 2017-08-07 22:34:20 -03:00
class-wc-admin-customize.php Missing comma for code standards 2017-04-19 11:15:10 +01:00
class-wc-admin-dashboard.php Merge pull request #15515 from woocommerce/update/15399 2017-06-08 15:53:00 -03:00
class-wc-admin-duplicate-product.php Merge pull request #15783 from woocommerce/fix/15770 2017-06-26 13:41:17 -03:00
class-wc-admin-exporters.php Revert change - export directory contains logic only, not admin 2017-05-17 11:50:55 +01:00
class-wc-admin-help.php https the oembed url 2017-09-25 14:48:05 -07:00
class-wc-admin-importers.php Apply attribute helper functions to importers and REST API 2017-08-07 22:34:25 -03:00
class-wc-admin-log-table-list.php Fix #14967 by adding log_id as the secondary sorting column to log list. 2017-05-12 10:22:31 -07:00
class-wc-admin-menus.php Helper: Unify update-count markup into a single helper method. 2017-08-30 17:19:06 +03:00
class-wc-admin-meta-boxes.php fixes woocommerce/woocommerce#15896 2017-06-30 21:20:23 +02:00
class-wc-admin-notices.php Initial notice implementation 2017-07-11 11:59:39 -07:00
class-wc-admin-permalink-settings.php Advanced locale switching 2017-06-05 14:18:39 +01:00
class-wc-admin-pointers.php Typo in tag text, fixes #16332 2017-08-03 08:19:57 +02:00
class-wc-admin-post-types.php i18n: Avoid using HTML tags in translation strings 2017-08-15 15:07:55 +03:00
class-wc-admin-profile.php Style & escaping fixes, based on review feedback 2017-05-16 14:01:14 -04:00
class-wc-admin-reports.php Fix typo in WooCommerce plugin (#16135) 2017-07-17 11:10:52 +01:00
class-wc-admin-settings.php Update class-wc-admin-settings.php 2017-08-21 22:00:23 -04:00
class-wc-admin-setup-wizard.php Wizard: Handle Jetpack install, activate, and connection errors (#16983) 2017-10-05 12:51:49 +01:00
class-wc-admin-status.php Remove unused local variables 2017-05-15 12:06:52 +02:00
class-wc-admin-taxonomies.php Fix phpdoc to include params and correct types 2017-05-15 13:50:52 +02:00
class-wc-admin-webhooks-table-list.php Fixed "singular" and "plural" parameters of WP_List_Table instances 2017-04-05 18:15:40 -03:00
class-wc-admin-webhooks.php i18n: Fix some translation strings (#16441) 2017-08-14 17:25:08 +01:00
class-wc-admin.php Wizard: Handle Jetpack install, activate, and connection errors (#16983) 2017-10-05 12:51:49 +01:00
wc-admin-functions.php Store fee amount and prevent totals going negative 2017-08-23 12:15:06 +01:00
wc-meta-box-functions.php Dynamic add 2 attribute. 2017-01-02 18:01:52 +05:30