This release of the popular WP-Members plugin is mostly a code improvement release.
Most of these code improvements should be transparent to the user, but improve on the performance in certain areas of the plugin. Here is a description of updates, including files and functions that have changes (important to note if you have any plugged functions):
wp-members-admin.php
wpmem_admin
- added variable definitions in wpmem_admin (a debug fix).
- added isset for $_POST[‘wpmem_admin_a’], wrapped switch in wpmem_admin (a debug fix).
wpmem_a_build_fields
- removed $chkreq for error highlighting rows on required fields wpmem_a_build_fields (a debug fix).
- cleaned up wpmem_a_build_fields function for consistent tabs and code spacing.
- removed unneeded value comparison (which created undefined offset) for the add checkboxes (a debug fix).
wpmem_admin_users
- added definitions: $show = $lcas = $curr = ”; (a debug fix).
- removed unneeded $show = $_GET[‘show’]; (a debug fix).
- added $class = ” instead of above (a debug fix).
wp-members-core.php
wpmem_shortcode
- added ‘field’ shortcode for displaying user data with a shortcode.
wp-members-dialogs.php
wpmem_inc_registration_NEW
- added p tag with class .noinput to the username field when updating profile and corressponding property definition to the stylesheet to better align the username.
- added css property to better align checkboxes in the reg form (actually a change to wp-members.css).
- added a class to captcha, and corresponding css property (in wp-members.css) for top/bottom margin of captcha.
- NOTE: wpmem_inc_registration_NEW will be deprecated in version 2.8 and the contents of this function will be moved into wpmem_inc_registration.
wpmem_inc_login
- added wpmem_restricted_msg filter hook to filter the restricted post message.
wpmem_inc_loginfailed
- added wpmem_login_failed filter hook to filter the login failed message (includes filtering display markup).
wp-members-sidebar.php
wpmem_do_sidebar
- added wpmem_login_failed_sb filter hook to filter the login failed message in the sidebar (filters message only, not formatting).
Enjoyed this article?
Don't miss a single post. Subscribe to our RSS feed!