WP-Members 3.4.2 has been released with a number of updates, fixes and new features.
First, this package includes all intermediate updates since 3.4.1:
- Applies checkbox CSS in add new user form.
- Code consolidation in admin options tab file (remove final use of wpmem_use_ssl()).
- Add wpmem_recaptcha_url filter to allow for changing the URL of the recaptcha script.
- Only apply pwd reset override on frontend (for login error).
- Fixes undefined $wpmem->reg_form_showing.
- Fixes a bug in the password change shortcode that causes a “too few arguments” error.
- Changes wpmem_is_user_current() to wpmem_user_is_current() for backwards compatibility with the plugin’s premium PayPal extension.
- Added the action being done as a parameter passed to the wpmem_get_action action hook.
- Added support for arrays, urls, and classes to wpmem_sanitize_field() (alias of rktgk_sanitize_field()). This is in addition to the sanitization already supported.
- apply_custom_product_message() now runs do_shortcode() to natively support shortcodes in custom membership product messages.
Additionally, the following fixes were applied:
- Fixed an issue that did not display the custom product message if the user was not logged in.
- Bug fix in password reset that potentially truncates the reset link.
- Bug fix in admin notification email for HTML formatted email (wpautop() was not being applied to email content).
The custom product message was improved for non-logged in users (same function is used by both logged in and logged out processes, so this cleans things up to handle both states the same way).
Some code improvements, including additional information passed to filters were added. There were also some new API functions.
- Added email argument for default line break.
- Added user ID to email filters.
- Added attributes to shortcode (wrapper defaults to “div” but can be changed to “span” or “p” or something else):
- id
- class
- wrapper
- Added user confirmed field to default export fields (if confirmation link setting is enabled).
- Added API functions:
- wpmem_set_user_membership()
- wpmem_remove_user_membership()
- wpmem_get_user_memberships() .
Lastly, the plugin has received a new installer/updater class intended to improve the upgrade process. This includes some diagnostic tracking features. When you install or update, you’ll notice a message that allows you to opt into diagnostic tracking and security/update notifications. This is a very important feature for the plugin as it gives insight into how the plugin is used, as well as allowing us to provide more information to the plugin’s users when we update. It does not transmit any private information and none of the information is ever shared with third parties. You can opt in/out at any time. If you have questions, let me know.
WP-Members 3.4.2.1
This package update includes all of the 3.4.2 updates plus the following:
- Moves the user export class to the main user object. This should not affect any users who use the function through the API function
wpmem_export_users()
. However, if you call it from the object (which is not recommended – you should use the API function), then you need to note this change. - Moves the admin object load back to WP’s
init
action. This solves a problem for plugin extensions that rely on thewpmem_after_admin_init
action. If you used one of the most recent versions with the Invite Codes extension and received a PHP error on the front end of the site, this is the fix. - Fixes a potential issue with the [wpmem_field] shortcode if the field does not have a type defined. Previously, if no field type was defined, this may through a PHP notice warning that the array key or variable was undefined.
WP-Members 3.4.2.2
This version fixes an issue with the password reset. The cause of the problem is unknown specifically, but if you were experiencing issues with the password reset going through to completion and at the end received an error that the key was invalid, this update should resolve that problem.
This release also includes a new email shortcode for the admin notification that will list user memberships – add [memberships] to the admin notification email for this.