This commit is contained in:
Javier Casares 2026-03-28 07:59:52 +00:00
commit ddaaff71ad
23 changed files with 879 additions and 798 deletions

View file

@ -15,7 +15,7 @@ if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
/**
* Delete plugin data if user opted in to data deletion.
*/
function robotstxt_og_uninstall_cleanup() {
function robotstxt_og_uninstall_cleanup(): void {
// Check if user opted in to delete data on uninstall.
$delete_data = get_option( 'robotstxt_og_delete_data_on_uninstall', false );
@ -72,7 +72,7 @@ function robotstxt_og_uninstall_cleanup() {
);
foreach ( $sites as $site ) {
switch_to_blog( $site->blog_id );
switch_to_blog( (int) $site->blog_id );
// Delete site-specific options.
delete_option( 'robotstxt_og_fallback_image' );