This commit is contained in:
Javier Casares 2026-08-17 19:16:01 +00:00
commit 1f308e8917

View file

@ -64,16 +64,6 @@ if ( ! function_exists( 'robotstxt_smtp_uninstall_cleanup_site' ) ) {
// Delete Amazon SES transients.
robotstxt_smtp_uninstall_delete_transient_prefix( 'robotstxt_smtp_amazonses_quota_', false );
// Delete updater cache transients for all plugins.
$plugin_basenames = array(
'robotstxt-smtp/robotstxt-smtp.php',
'robotstxt-smtp-amazonses/robotstxt-smtp-amazonses.php',
'robotstxt-smtp-newsletter/robotstxt-smtp-newsletter.php',
);
foreach ( $plugin_basenames as $basename ) {
delete_transient( 'robotstxt_updater_' . md5( $basename ) );
}
// Clear scheduled cron hooks.
wp_clear_scheduled_hook( 'robotstxt_smtp_cleanup_logs' );
wp_clear_scheduled_hook( 'robotstxt_smtp_cleanup_stats' );
@ -102,16 +92,6 @@ if ( ! function_exists( 'robotstxt_smtp_uninstall_cleanup_network' ) ) {
// Delete Amazon SES site transients.
robotstxt_smtp_uninstall_delete_transient_prefix( 'robotstxt_smtp_amazonses_quota_', true );
// Delete updater cache site transients for all plugins.
$plugin_basenames = array(
'robotstxt-smtp/robotstxt-smtp.php',
'robotstxt-smtp-amazonses/robotstxt-smtp-amazonses.php',
'robotstxt-smtp-newsletter/robotstxt-smtp-newsletter.php',
);
foreach ( $plugin_basenames as $basename ) {
delete_site_transient( 'robotstxt_updater_' . md5( $basename ) );
}
// Clear WordPress update cache.
delete_site_transient( 'update_plugins' );
}
@ -251,3 +231,6 @@ if ( function_exists( 'is_multisite' ) && is_multisite() ) {
// Drop the statistics table (global, only once).
robotstxt_smtp_uninstall_delete_statistics_table();
// Delete the per-user manager notice dismissal preference (global, only once).
delete_metadata( 'user', 0, 'robotstxt_smtp_manager_notice_dismissed', '', true );