Releases: kylephillips/favorites
Releases · kylephillips/favorites
v2.1.0
- Option added to enable a modal notification for anonymous users. Modal content is editable under Settings > Favorites > Users. Anonymous users must be disabled, and the "Require Login & Show Modal" must be checked. The content is also available via a filter: favorites/authentication_modal_content. If the plugin css has been disabled and this feature is required, please see the plugin styles for new css classes required for modals to function.
- Button customization options added, including color settings and preset button types. Visit Settings > Favorites > Display & Post Types to customize the button. In addition to now having the ability to choose a preset button type, button colors may be specified to better match your theme without editing CSS files.
- Option added to customize the favorites list. Options are now included for specifying the HTML element type and custom CSS classes for both the list wrapper element and individua listing elements. Additionally, the listings may be fully customized using a standard WordPress editor field.
- Various filters have been added. See the plugin website for a detailed list of available filters.
v2.0.2
- Option added to use a css/html loading indicator in place of an image. Additional filters added for theme use
- Shortcode option added to the favorites list "user_favorites" for including the post thumbnail. To include the thumbnail, pass the option include_thumbnails="true". To specify a thumbnail size, pass it in as an option: thumbnail_size="thumbnail"
- Shortcode option added to the favorites list "user_favorites" for including the post excerpt. To include the excerpt, pass the option include_excerpt="true"
- Filters added for the list thumbnail and list excerpt. See plugin documentation for names and parameters
- Plugin settings redesigned
v2.0.1
- Javascript callback functions have been deprecated in place of events. Deprecated functions will be removed in a later version. Please see the plugin documentation on using the new events
- App namespace renamed to "Favorites". Important: any developers extending the plugin core should update any references in PHP namespaces to \Favorites\
- Plugin text domain updated to "favorites" to follow WordPress requirements
- AJAX actions renamed to remove "simple" prefix
- Bug fix where adding a favorite required a page refresh for it to appear in favorite lists
- Added API function to get the total count of favorites across all posts
- Tested with WordPress 4.8
v1.2.3
- Bug fix - post type parameter in shortcode being overwritten by javascript on load
v1.2.2
- Bug fix - incorrect list being displayed when passing a specific user id to get_user_favorites_list();
v1.2.1
- Bug fix where [user_favorite_count] shortcode always returning 0 in multisite installations.
- Added filter to customize user list output.
- Tested for WordPress 4.3 compatibility
v1.2.0
- Added functionality to display users who have favorited a post. Use the shortcode [post_favorites] or one of the two new template functions: get_users_who_favorited_post or the_users_who_favorited_post. View the plugin website for options and usage examples.
- Added shortcode and template functions to display a "Clear Favorites" button. Button clears all user favorites when clicked.
- Added developer hooks for before and after a post has been favorited.
- Added developer Javascript callback functions for after the page has loaded, and after a favorite has been submitted.
- Option added to include favorite button in generated list (see "Other Notes" tab or plugins website for template functions and shortcode)
- Option added to customize text that displays in lists when the user has no favorites (visit settings > favorites > display to customize the text)
- Post type(s) parameter added to get_user_favorites_count template function and user_favorite_count shortcode.
- User favorite count now updated dynamically (may require a cache reset if page cache is enabled)
- Bug fix - Invalid posts removed from user favorites (trashed/unpublished posts).
- Other various enhancements and minor bug fixes
v1.1.4
- Fixed bug that allowed multiple button submissions before the previous was processed
v1.1.3
- Option added to hide loading indication on page load.
v1.1.2
- Bug fix in plugin settings when deselecting all automatic post type insertions.