Restored original behaviour of the constant.

This commit is contained in:
Peter Fabian 2020-02-06 13:39:46 +01:00
parent 6be32bcfd7
commit 42731d34e6
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ wp_clear_scheduled_hook( 'woocommerce_tracker_send_event' );
* wp-config.php. This is to prevent data loss when deleting the plugin from the backend
* and to ensure only the site owner can perform this action.
*/
if ( defined( 'WC_REMOVE_ALL_DATA' ) ) {
if ( defined( 'WC_REMOVE_ALL_DATA' ) && true === WC_REMOVE_ALL_DATA ) {
// Drop WC Admin tables.
include_once dirname( __FILE__ ) . '/packages/woocommerce-admin/src/Install.php';
\Automattic\WooCommerce\Admin\Install::drop_tables();