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
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
Jeff Stieler
540158dab1
Fix WP global override.
2020-02-04 16:04:27 -08:00
Jeff Stieler
d51aab231e
Fix unit tests.
...
Only require autoloader in uninstall if WooCommerce Admin class hasn't been loaded.
2020-02-04 16:04:27 -08:00
Jeff Stieler
267d9254ed
Load the WooCommerce Admin install class during uninstallation.
2020-02-04 16:04:27 -08:00
Christopher Allford
6ad091a9b7
Changed all of the constant accesses into corresponding Automattic\Jetpack\Constants usages
2020-01-28 21:21:29 -08:00
Mike Jolley
e807c6151f
Merge branch 'master' into update/erasure-requests
2018-05-02 14:06:47 +01:00
Mike Jolley
e8f3bac6c8
Implement log cleanup cron job (woocommerce_cleanup_logs)
2018-05-01 16:37:14 +01:00
Mike Jolley
c765ce644d
Inactive account handling
2018-04-30 15:38:45 +01:00
Mike Jolley
6e9e1aaa62
Daily order cleanup cron schedule
2018-04-17 12:33:22 +01:00
Mike Jolley
15a25972c4
Clean up widget options and order_notes on uninstall
...
Closes #19309
2018-03-12 19:47:44 +00:00
Shiva Poudel
6714658fbc
Delete all usermeta on uninstall with prefix woocommerce_
2018-02-23 10:17:21 +05:45
Shiva Poudel
e4bcc1d285
Rename the prefix for per page options
2018-02-23 10:03:56 +05:45
Shiva Poudel
f1e2c0cf83
Merge remote-tracking branch 'upstream/master' into feature/screen-option
2018-02-22 09:52:59 +05:45
Shiva Poudel
6bad005c5b
Delete user meta data on uninstall
2018-02-11 16:25:30 +05:45
Rodrigo Primo
5be9d1b118
Remove all WC tables when uninstalling the plugin
...
There were two outdated lists of WC tables. One used to drop tables when WC is uninstalled and another one to drop tables when a site is deleted in a multi site environment. This commit creates a new unified list of WC tables, adds the missing tables to this list and introduces a unit test that will fail if the list gets outdated.
2018-02-06 11:19:40 -02:00
Rodrigo Primo
f6508856c9
phpcs fixes
2018-02-06 11:17:57 -02:00
Claudio Sanches
3946654b29
Fixed author of uninstall.php
2017-03-24 13:51:27 -03:00
Aristeides Stathopoulos
d4e3faf014
PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket
2016-09-02 04:51:31 +03:00
Aristeides Stathopoulos
0516e96843
PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket
2016-09-02 04:33:57 +03:00
Shiva Poudel
8546d901f8
DocBlock to follow the multi-line comment
...
See: https://make.wordpress.org/core/handbook/best-practices/inline-documentation-standards/php/#5-2-multi-line-comments
CC @mikejolley
2016-08-26 21:45:55 +05:45
Mike Jolley
0667c1cde1
Remove option based tools
2016-08-24 17:35:13 +01:00
Mike Jolley
49283e5576
uninstall_data replaced with constant.
2016-08-24 17:34:13 +01:00
Mike Jolley
66c61eebc8
Define full path for includes
...
Closes #11087
2016-07-27 11:58:43 +01:00
Mike Jolley
a42e0bd0b1
Flush cache after uninstall
...
Closes #10759
2016-04-27 14:23:39 +01:00
Mike Jolley
8ff2794db9
check table exists in uninstaller
2016-03-23 11:33:47 +00:00
Mike Jolley
77d9ced394
Delete terms on full uninstall
...
Closes #10494
2016-03-17 17:51:13 +00:00
Mike Jolley
da7cef6fa0
delete orphan relationships #10494
2016-03-15 13:32:19 +00:00
Justin Shreve
75f2e6b85c
Fix up some comments and add uninstalling code.
2016-03-01 11:49:42 -08:00
Mike Jolley
352184cc06
Merge branch 'master' into shipping-zones
...
# Conflicts:
# assets/css/admin.css
# i18n/languages/woocommerce.pot
# includes/abstracts/abstract-wc-payment-gateway.php
# includes/abstracts/abstract-wc-shipping-method.php
# includes/admin/settings/class-wc-settings-shipping.php
# includes/wc-core-functions.php
# uninstall.php
2016-02-05 14:58:48 +00:00
Mike Jolley
76840ae3d4
[2.5] Clear cron on uninstall
...
Closes #10161
2016-01-25 11:07:01 +00:00
Mike Jolley
bdb8de7785
Zone unit tests
2016-01-08 14:53:24 +00:00
Ahmad Awais
03165966a3
Better Documentation: Period Endings
2015-10-31 23:55:15 +05:00
Mike Jolley
18c6a940f1
Merge branch 'onboarding'
...
Conflicts:
assets/css/admin.css
assets/css/select2.css
assets/css/woocommerce-layout.css
assets/css/woocommerce.css
assets/js/admin/order-backbone-modal.min.js
includes/admin/class-wc-admin-help.php
includes/admin/class-wc-admin.php
includes/admin/views/html-admin-page-status-report.php
includes/admin/views/html-notice-install.php
includes/admin/views/html-notice-template-check.php
includes/admin/views/html-notice-theme-support.php
includes/admin/views/html-notice-tracking.php
includes/class-wc-install.php
includes/class-wc-language-pack-upgrader.php
includes/shipping/international-delivery/class-wc-shipping-international
-delivery.php
2015-07-04 23:11:12 +01:00
Claudio Sanches
41e8f69a70
Fixed the woocommerce_api_keys name
2015-05-15 18:20:49 -03:00
Claudio Sanches
0ecfc26a84
Created new database for api_apps
...
@mikejolley
2015-05-15 17:57:18 -03:00
Mike Jolley
54fa1e34d3
Show notice when pages don't exist, and set gateway defaults
2015-04-29 13:21:01 +01:00
PeHaa
431765a07b
Fix for issue 7838
2015-03-27 19:29:01 +01:00
Mike Jolley
c2d8b058dc
Query in uninstall script.
2015-02-12 16:38:07 +00:00
Mike Jolley
2a472e64e8
Only run the uninstaller if the "Uninstall on Delete" option is checked in system status.
2015-02-12 11:09:13 +00:00
shivapoudel
3b3cb844b2
No require global wp_roles as executing method via WC_Install::remove_roles
2015-02-06 21:05:14 +05:45
Mike Jolley
dbcc8430e9
Installer tweaks + unit tests closes #6356
2014-11-25 17:09:24 +00:00
Mike Jolley
b3782fa1a5
Removing Mijireh from core 2.3
2014-11-18 16:37:43 +00:00
Mike Jolley
44bdf27986
shareyourcart is no longer part of core, so no uninstaller needed
2014-08-18 13:45:26 +01:00
Mike Jolley
755001f19b
Use order types where required
2014-07-11 12:43:42 +01:00
Mike Jolley
8a2a5b06c6
Trash in the uninstaller too
2014-02-14 11:22:00 +00:00
splashingpixels
454b97080a
coding standards fixes
2014-01-22 20:36:24 -08:00
Mike Jolley
90ba359ef9
Uninstall option Closes #3968 . Change option for #3992
2013-10-23 17:21:03 +01:00