WP-Members 3.4.3 contains a couple of bug fixes and some minor improvments.
Both the check_validated()
and check_activated()
functions have been reworked. Initially, to fix a compatibility bug with other plugins that may use WP’s authentication hooks and return a null value for the $user
object. This is atypical for WP itself, but it is a possible value, so the functions were improved to account for the possibility of a null user value. Then they were streamlined to account for extra steps that are no longer necessary for those functions.
While the check_validated()
and check_activated()
functions were redone, each received a filter hook (wpmem_check_validated
and wpmem_check_activated
). I’ll be documenting those in the plugin documentation, but in the meantime, they are documented inline in the code.
The [wpmem_field] shortcode was improved to allow for an additional attribute value for file and image field types. By default, the shortcode returns either an image (for an image file) or a clickable link (for a file). For both of these, the attribute “display” could be used to return the file ID when used like [wpmem_field name_of_field display="raw"]. Now, you can also specify display=”url” to have it return a URL value for the image or file.
There were some bug fixes in the password reset to resolve some undefined variables. If you do not run in debug mode, this would go unnoticed. This wasn’t an issue that caused any functional failure, but it did need to be addressed for proper syntax.