# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## \[Unreleased]

### Added

* Opportunity to filter users by guild during registration via Discord profile.
* Opportunity to filter users by role during registration via Discord profile.
* Integration with plugin Roles for Membership Levels.

## \[2.0.0] - Big Reboot

### Added

* WordPress 5.8 support. Widgets are working, but it is not a native Gutenberg blocks.

### Fixed

* Profile and bot data now update properly.
* Returned redirect after first installation update.
* Fixed incorrect translation strings.
* Fixed double redirect cookies in Chrome.
* Fixed redirect to favicon image after authorization.
* Fixed email collection loss in the case when a user had attached Discord profile before plugin installation.

### Security

* Blocked direct access to PHP scripts.

## \[2.0.0-beta.2] *closed beta*

### Added

* Now all roles of the users syncing automatically every 4 days. Also, the roles of a particular user synced when he logged in or registered with the Discord account.
* **\[Customer Request]** Integration with The Events Calendar plugin.
* **\[Customer Request]** Integration with Modern Events Calendar plugin.
* **\[Customer Request]** Now you can make setup roles synchronization from Discord roles to WordPress roles.

### Changed

* Further optimized messages fetching from Discord server.
* Significantly decreased possibility for Discord server to limit download rates.
* Further improved error reporting. Now:
  * Long processes with the progress bar show errors and success messages on each items;
  * Single data item synchronizations now display error messages as well.

### Fixed

* Now if website bot is not in the private channel you will see message about it. This error no longer disconnects the plugin.

## \[2.0.0-beta.1] *closed beta*

### Added

* **\[Customer Request]** You can now synchronize roles from WordPress users to Discord users.
* **\[Customer Request]** Plugin now saves Discord ID and Discord email if the user connected or logged in with a Discord profile. As the admin, you can manually reassign profiles. Already registered users can connect their Discord profile as well.
* Updated design of admin panel UI. Improved admin panel pages adaptation on mobile devices.
* **\[Customer Request]** Now you can see a searchable list of all WordPress users with connected Discord profiles.
* Now you can update each data type cache separately.

### Changed

* Completely rebuild database structure to increase synchronization speed and optimize performance with large-scale communities.
* Review button now directs to the CodeCanyon downloads page.
* Long tasks now execute with a progress bar and events log.
* Settings from supported but not installed plugins are now hidden.
* Improved errors reporting. Now plugin showing:
  * more precise moments during which parsing error was acquired;
  * displays response texts from Discord server if any was sent;
  * tries to predict mistakes during installation or server configuration;
  * suggests section in help tub if such available.

### Fixed

* Long names no longer break the front-end widgets template.
* Now users, bots, and guilds without avatars will be displayed with a default thumbnail.
* Fixed plugin logout after 4 days.
* Invite links now updating in a single transaction and no longer will be removed if Discord server limited data rate.
* If the connected guild has no channels, some widgets now will show notification errors others will have partially disabled functionality.
* Invites data now updates with channels data, there are no longer unsynchronized time spans during background synchronization.
* Fixed not found *woocommerce.php* file notice.
* Plugin no longer logs out during not critical data update blocks from the Discord server.

### Removed

* Removed *dwpp\_widget\_theme\_selected* and *dwpp\_widget\_colors\_selected* classes from front-end template of the widgets.

### Security

* Unverified Discord profiles can no longer authorize or register on the website.

## \[1.0.3] - 2021-06-22

### Changed

* Images in chats that are smaller than chat width no longer stretched to full width.
* Some images are now compressed better.
* Installation guide images in admin panel are no longer stretching so width.

### Fixed

* Fixed multiple coloring bugs in admin panel color schemes.
* Widgets no longer display notifications about Elementor $\_POST actions.
* Fixed error about array\_key\_first function on PHP 5.6.
* Fixed Quick Message widget in WordPress 4.9.
* Fixed Update Now button in WordPress 4.9.
* Fixed abstract static function notice.
* Functionality on old unsupported Woocommerce versions are now automatically disabled.
* Fixed bug that crashed widgets page in admin panel if Discord profile are not connected.

## \[1.0.2] - 2021-05-24

### Added

* **\[Customer Request]** You can now turn on styled button view for authentication and comments buttons.

## \[1.0.1] - 2021-05-17

### Changed

* Partially blocked incorrect WP widgets rendering in Elemntor editor.

### Fixed

* Fixed authentication logout after 7 days. To apply a fix before 7 days expire you need to reconnect the plugin.
* Error from no parsed channels in channel list widget.

## \[1.0.0] - 2021-05-12 - Initial Release
