query( // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- One-off cleanup of rows with variable names. $wpdb->prepare( "DELETE FROM {$wpdb->options} WHERE option_name LIKE %s", $wpdb->esc_like( $atproto_comments_prefix ) . '%' ) ); } wp_cache_delete( 'alloptions', 'options' ); }; if ( is_multisite() ) { foreach ( get_sites( array( 'fields' => 'ids', 'number' => 0, ) ) as $atproto_comments_site_id ) { switch_to_blog( $atproto_comments_site_id ); $atproto_comments_uninstall_site(); restore_current_blog(); } } else { $atproto_comments_uninstall_site(); }