We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 12b69a1 + 40792d8 commit afe6cc8Copy full SHA for afe6cc8
1 file changed
uninstall.php
@@ -42,6 +42,15 @@
42
$general_settings = $app_container->get( 'settings.data.general' );
43
assert( $general_settings instanceof GeneralSettings );
44
45
+ /**
46
+ * Delete the branded flag unconditionally so reinstalling from a different
47
+ * source (e.g. WordPress.org) does not silently re-enter branded-only mode.
48
+ * Unlike most settings, this flag must be cleared on every uninstall — even
49
+ * when the full-reset filter is off — because keeping it prevents merchants
50
+ * from ever escaping branded-only mode without direct DB intervention.
51
+ */
52
+ delete_option( 'woocommerce_paypal_branded' );
53
+
54
if ( $general_settings->reset_installation_path( 'plugin_uninstall' ) ) {
55
$general_settings->save();
56
}
0 commit comments