This commit is contained in:
Javier Casares 2026-08-18 10:48:13 +00:00
commit 5589c54b9b
13 changed files with 138 additions and 58 deletions

View file

@ -9,7 +9,7 @@ if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
exit;
}
if ( ! get_option( 'robotstxt_manager_delete_data_on_uninstall', false ) ) {
if ( ! get_site_option( 'robotstxt_manager_delete_data_on_uninstall', false ) ) {
return;
}
@ -21,10 +21,10 @@ $option_keys = array(
);
foreach ( $option_keys as $key ) {
delete_option( $key );
delete_site_option( $key );
}
delete_transient( 'robotstxt_manager_catalog' );
delete_site_transient( 'robotstxt_manager_catalog' );
// Purge the WordPress update transient: premium entries carry the API key
// in their package URL. WordPress rebuilds it on the next update check.