Plugin / Favorites

Kyle Phillips

Changelog

Changelog

2.3.1

  • Bug Fix: Fixes issue where only one custom field was being output when multiple were specified in the custom list html.
  • Security Update: Removes potential security issue where user may favorite a non-public post, or a post where favorites are not enabled.

2.3.0

  • Security Update: Removes ability for users to manipulate favorites belonging to other users. Thanks to Arne van Hoorn for uncovering this issue.

2.2.0

  • Fixes multisite issue where favorites were not being retrieved correctly.
  • Adds setting to require consenting to cookies before saving favorites, in an effort to adhere to GDPR compliance. Note: the modal content that displays when this setting is enabled should be provided by a qualified attorney or legal entity. Should your site already have a cookie consent protocol in place, document-level events are provided for triggering the user preferences.

2.1.6

  • Adds option of redirecting to a page/post by ID if an anonmyous user attempts to favorite an item
  • Adds shortcode processing to authentication gate modal content
  • Bug fix that was causing unexpected errors in content filtered by ‘the_content’ filter.

2.1.5

  • Bug fix where button HTML filters were not being applied to AJAX/cache enabled sites. The post id is not available as a parameter on button html on cache-enabled sites.
  • Adds additional compatibility for logged-in favoriting on hosts with aggressive server-side caching

2.1.4

  • Post favorite counts using the shortcode [favorite_count] or the functions get_favorites_count/the_favorites_count now update without page reload.
  • Adds parameter to the [user_favorites] shortcode for “No Favorites” text. Overrides the plugin setting. [user_favorites no_favorites=”Your Custom Text”]
  • Updated code that was breaking in PHP versions less than 5.4. End-of-life PHP version support will be dropped in Favorites v3
  • Bug fix where total favorite count was showing “1” before a user had favorited any posts
  • Adds additional permalink field under the customized listing visual editor
  • Bug fix where nonce was not loading correctly on some sites, resulting in an “Incorrect form field” error
  • Adds status filter to function filter parameters

2.1.3

  • Bug fix where authentication gate modal was not appearing correctly due to a Javascript error on sites with the cache option disabled.
  • Bug fix where lists were being emptied on page load with the cache option enabled.

2.1.2

  • Added additional filters for the listing wrapper CSS classes and the listing element CSS classes. See the plugin website for details.
  • Added plugin setting and filter for customizing the button html element type.
  • Added a “Development Mode” setting for logging various data to the browser console in order to help with support and debugging.
  • Reverted default post types in favorites list to display all post types.
  • Updates filters run on authorization gate modal that were conflicting with some themes and plugins.

2.1.1

  • Fixes bug where Favorites admin javascript was loading outside the plugin settings area, causing preventing some sites from saving posts.

2.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.

2.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

2.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

1.2.4

  • Added option to display favorite counts in admin columns on a per-post type basis. Visit Settings > Favorites > Display to enable the columns.
  • Added filter option to change cookie expiration (thanks to Github user rlaan)

1.2.3

  • Bug fix – post type parameter in shortcode being overwritten by javascript on load

1.2.2

  • Bug fix – incorrect list being displayed when passing a specific user id to get_user_favorites_list();

1.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

1.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

1.1.4

  • Fixed bug that allowed multiple button submissions before the previous was processed

1.1.3

  • Option added to hide loading indication on page load.

1.1.2

  • Bug fix in plugin settings when deselecting all automatic post type insertions.

1.1.1

  • Optional filtering added to favorite list template functions. The functions now accept an array of arguments for fine-tuned favorite lists. Visit the documentation for more information.
  • An optional “post_type” parameter has been added to the user_favorites shortcode. The parameter allows for filtering of the generated list by post types, and will accept a comma separated list of post types
  • Option added to include post favorite count in the button (view settings > favorites > display to enable)
  • Button loading state option added (view settings > favorites > display to enable)
  • Added template function and shortcode for displaying total number of favorites by user (see documentation for more options)

1.1.0

  • Favorites is now multisite compatible. See documentation for added template function and shortcode parameters.

1.0.5

  • Autoloader bug fix (Thanks to Stefan Oderbolz)
  • User List page cache fix

1.0.4

  • User favorites list bug fix

1.0.3

  • Additional bug fixes for logged in users

1.0.2

  • Fixed array error bug for logged in users

1.0.1

  • Fixed bug where logged in user’s favorites were pulling from session/cookie rather than saved user meta
  • Tested for 4.2 compatibility

1.0

  • Initial release

Ratings

4.6
95 reviews

Rating breakdown

Details Information

Version

2.3.1

First Released

04 Mar, 2015

Total Downloads

108,101

Wordpress Version

3.8 or higher

Tested up to:

5.0.7

Require PHP Version:

5.4 or higher

Tags

Contributors

Languages

DIRECTORY DISCLAIMER

The information provided in this THEME/PLUGIN DIRECTORY is made available for information purposes only, and intended to serve as a resource to enable visitors to select a relevant theme or plugin. wpSocket gives no warranty of any kind, express or implied with regard to the information, including without limitation any warranty that the particular theme or plugin that you select is qualified on your situation.

The information in the individual theme or plugin displayed in the Directory is provided by the owners and contributors themselves. wpSocket gives no warranty as to the accuracy of the information and will not be liable to you for any loss or damage suffered by you as a consequence of your reliance on the information.

Links to respective sites are offered to assist in accessing additional information. The links may be outdated or broken. Connect to outside sites at your own risk. The Theme/Plugin Directory does not endorse the content or accuracy of any listing or external website.

While information is made available, no guarantee is given that the details provided are correct, complete or up-to-date.

wpSocket is not related to the theme or plugin, and also not responsible and expressly disclaims all liability for, damages of any kind, arising out of the use, reference to, or reliance on, any information or business listed throughout our site.

Keep Leading Your Followers!
Share it for them.