Commit Graph

10 Commits

Author SHA1 Message Date
Rodrigo Primo 23b69eba53 Use phpcbf to fix coding standard violations in includes/admin
After using phpcbf to fix the coding standard violations, I did some manual adjustments to the changes, especially in poorly indented files.
2018-03-05 16:21:35 -03:00
Mike Jolley 9d877a3b34 Unused vars 2017-08-23 14:40:34 +01:00
Mike Jolley bf2ca1f3d3 If auth cannot occur, don't send request.
Fixes #16537
2017-08-21 10:49:00 +01:00
Konstantin Kovshenin 247e13e2ca Helper: Various Improvements (#15519)
* Helper: Improve messaging and CTAs

* Helper: Update copy on connect flow

* Helper: Improve messaging around plugins without a subscription

* removes toggle from extensions that cannot be activated

* Helper: Add new `WC_Helper_Compat` class for legacy helper compat

This new class removes some of the actions from the legacy helper
(updater) plugin, attempts to migrate an existing legacy connection
to a new one, attempts to deactivate the old helper plugin.

* Helper: Improve messaging around maxed out subscriptions

* Helper: Enable `WC_Tracker` when connected to WooCommerce.com

* Helper: adds styles for manual licence form row and other visual improvements

* Helper: removes disabled toggles

* Helper: adds styles for connection component

* Helper: redesigned connection module

* Helper: rotates the connection module chevron on mouse hover

* Helper: adds some fixes to the key form on mobile and other updates to meet coding standards

* Helper: Only mark action as primary if there's a CTA button.

* Helper: Better handling for woothemes_updater_notice

Remove the updater notice built into extensions and themes, even
if the legacy Helper plugin is deactivated.

* Helper: Navigate existing Helper users to the new place.

Adds a Dashboard menu item and direct users of the old helper
plugin to the new Extensions screen.

* Helper: Do not show the back-compat menu item for new users

* Helper: Avoid notice in API authentication if credentials are missing

* Helper: Hide the back-compat menu item when users see the new screen

Also sets the user_id for the connection if one was not previously set.
2017-06-14 14:12:53 +01:00
Konstantin Kovshenin 39218ea323 Helper: Remove everything related to woocommerce.dev 2017-05-03 13:45:43 +03:00
Konstantin Kovshenin ca93452354 Helper: Fix some missing docblocks 2017-05-03 13:33:39 +03:00
Konstantin Kovshenin 48a44eb7e5 Helper: Add some missing docblocks 2017-04-26 18:50:38 +03:00
Konstantin Kovshenin 2e55b3076d Helper: Yoda condition in _http_request_host_is_external 2017-04-26 18:33:17 +03:00
Konstantin Kovshenin b4ba43f551 Helper: Use `wp_safe_remote_request` for external calls.
Also whitelists woocommerce.dev as an external URL if
WP_DEBUG is turned on.
2017-04-26 15:57:56 +03:00
Konstantin Kovshenin e8b9bc8f98 Helper: First pass at merging the Helper plugin into WooCommerce
* Connect a site to a WooCommerce.com account
* List available product subscriptions
* Activate/deactivate subscriptions and extensions
* Serve updates for active subscriptions
2017-04-21 15:05:44 +03:00