'ids', 'number' => 0 ) ) : array( 0 ); foreach ( $waymorphic_map_site_ids as $waymorphic_map_site_id ) { if ( $waymorphic_map_site_id ) { switch_to_blog( $waymorphic_map_site_id ); } delete_option( 'waymorphic_map_options' ); delete_option( 'waymorphic_map_options_backup' ); // The copy of the options that version 1.2.0 kept. delete_option( 'waymorphic_map_options_copy' ); delete_transient( 'waymorphic_map_geo_down' ); // The kept answers of the address lookup. $wpdb->query( // phpcs:ignore WordPress.DB.DirectDatabaseQuery $wpdb->prepare( "DELETE FROM {$wpdb->options} WHERE option_name LIKE %s OR option_name LIKE %s", $wpdb->esc_like( '_transient_waymorphic_map_geo_' ) . '%', $wpdb->esc_like( '_transient_timeout_waymorphic_map_geo_' ) . '%' ) ); if ( $waymorphic_map_site_id ) { restore_current_blog(); } }