== Changelog ==

= 1.3.9 =

* **Bug Fixes**
* Fixed visibility for the boxes located at the leaderboard edit screen.

= 1.3.8 =

* **Developer Notes**
* Renamed post type "leaderboard" to prevent conflict issues caused by Yoast SEO Premium, Kadence Blocks Pro and WooCommerce.

= 1.3.7 =

* **Improvements**
* Reduce width of the position column.
* Added toggleable arrow when responsive mode is active.
* **Bug Fixes**
* Fixed pagination when number of users to display is set to 0 (unlimited).

= 1.3.6 =

* **Improvements**
* Prevent hidden elements if switching from a small screen to a big one.
* Ensure to do not stop link redirections if any of the columns has links.
* Style improvements to ensure the correct visibility of the columns.
* Improved selectors to be more precise in Javascript and CSS rules.

= 1.3.5 =

* **Improvements**
* Style improvements for the responsive leaderboards.

= 1.3.4 =

* **New Features**
* Make leaderboards responsive for small screens.
* Added a toggle feature for responsive leaderboards in small screens.
* Added the attribute "force_responsive" to the [gamipress_leaderboard] shortcode.
* Added the option "Force Responsive" to the GamiPress: Leaderboard block and widget.

= 1.3.3 =

* **Improvements**
* Added required parameters in the 'get_the_excerpt' filter to avoid compatibility issues.

= 1.3.2 =

* **Bug Fixes**
* Fixed pagination error when datatables is enabled.

= 1.3.1 =

* **Developer Notes**
* Added new filters to allow override the number of users and users per page settings.

= 1.3.0 =

* **Bug Fixes**
* Fixed some typos in some leaderboard messages.

= 1.2.9 =

* **Bug Fixes**
* Fixed pagination on single templates.
* **Developer Notes**
* Added a new filter to disable the add-on libraries.

= 1.2.8 =

* **Improvements**
* Improved support for plugins that extend the Leaderboard limit (like Group Leaderboard plugins).

= 1.2.7 =

* **Bug Fixes**
* Prevent warnings on leaderboards with pagination and empty ranks.

= 1.2.6 =

* **New Features**
* Added pagination support.
* Added new options to setup the leaderboard pagination.
* Added a new option to merge the avatar and name columns into one column.
* **Improvements**
* Prevent WordPress auto p on leaderboards single pages.
* Automatically refresh the leaderboard cache everytime its set up changes.
* Several performance improvements to the leaderboard query.
* **Developer Notes**
* Added the ability to turn the leaderboard into an array.
* Full rewrite of the leaderboard functionality to bring support to pagination.

= 1.2.5 =

* **Improvements**
* Style improvements.
* Updated deprecated jQuery functions.

= 1.2.4 =

* **Improvements**
* Update date range functions to follow GamiPress functions.

= 1.2.3 =

* **Bug Fixes**
* Fixed incorrect week detection on the first day of the week.

= 1.2.2 =

* **Improvements**
* Ensure to use the WordPress timezone configuration for the leaderboard period feature.

= 1.2.1 =

* **Developer Notes**
* Added several hooks to make the leaderboard table output more flexible.

= 1.2.0 =

* **New Features**
* Added support to GamiPress 1.8.0.
* **Improvements**
* Make use of WordPress security functions for ajax requests.

= 1.1.9 =

* **Improvements**
* Allow translate leaderboard frontend texts.

= 1.1.8 =

* **Improvements**
* Removed the backward compatibility "Default Points" option from leaderboard's metrics and columns fields.

= 1.1.7 =

* **New Features**
* Added support to GamiPress 1.7.0.
* **Improvements**
* Force shortcodes to return at least an empty string.
* Improved leaderboards and user selector on widgets area and shortcode editor.
* Great amount of code reduction thanks to the new GamiPress 1.7.0 API functions.

= 1.1.6 =

* **Improvements**
* Changed leaderboard custom period fields to the new GamiPress date fields in order to bring maximum flexibility defining custom periods. ([More information](https://gamipress.com/docs/advanced/date-fields/)).
* Prevent to use wpdb::prepare() if not needed.

= 1.1.5 =

* **New Features**
* Added the ability to filter a leaderboard by a predefined time periods (today, yesterday, current week/month/year and past week/month/year).
* Added the ability to filter a leaderboard by a custom time period.

= 1.1.4 =

* **Improvements**
* Improved the way that leaderboard selector gets loaded on widgets area.
* Leaderboard selector query now includes leaderboards with private status as results.

= 1.1.3 =

* **Bug Fixes**
* Fixed a bug that provides an invalid user position when user account has been created recently.

= 1.1.2 =

* **New Features**
* Full support to GamiPress Gutenberg blocks.

= 1.1.1 =

* **Bug Fixes**
* Adding the leaderboard widget, sometimes leaderboard selector doesn't loads correctly until save the widget again.
* Improvements
* Added support to WordPress 5.0.


= 1.1.0 =

* **New Features**
* Added support to GamiPress points format options.
* Added support to GamiPress admin bar menu.

= 1.0.9 =

* Added more filters to the Leaderboard table class.

= 1.0.8 =

* Added the [gamipress_leaderboard_user_position] shortcode.
* Added the GamiPress: Leaderboard User Position widget.
* Improved leaderboard meta data loaded when rendering a leaderboard.
* Added more filters to the Leaderboard table class.
* Fixed wrong priority when overwriting a template.
* Added checks to reload leaderboard selector on widgets after save the widget.
* Improved multisite support.

= 1.0.7 =

* Added support for multisite administrators when hide administrators is enabled.
* Fixed issue with older MySQL version.

= 1.0.6 =

* Added filters to the leaderboard query and their vars (before and after of getting processed).
* Fixed wrong leaderboard position calculation.

= 1.0.5 =

* Improvements on leaderboard query.

= 1.0.4 =

* New feature: Hide website administrators.
* Added the field "Hide Administrators" to the leaderboard edit screen.
* Added the attribute "hide_admins" to the [gamipress_leaderboard] shortcode.
* Added the field "Hide Administrators" to the GamiPress: Leaderboard widget.
* Fixed issue with numeric type names.

= 1.0.3 =

* Added support for GamiPress Ranks.
* Added ranks as metric option.

= 1.0.2 =

* Added support for GamiPress 1.2.8

= 1.0.1 =

* Fixed issue with user display name and avatar columns.

= 1.0.0 =

* Initial release.