WP-Members User List 2.2.1 has been released. This version includes some code improvements as well as some bug fixes. There are also experimental WP CLI commands added for managing the plugin’s options in the command line.
Improvements
The RocketGeek utilities library is removed in this update. This is a code library that had been included in all of the premium extensions in case there were changes that were not included in the version packaged with the core plugin. However, at this point in time, it is better to rely on the core plugin, since that always contains the most up-to-date package. This avoids unnecessary file inclusion and potential for version conflicts.
This version specifies the “autoload” value for its stored options. WordPress allows options to be automatically loaded when WordPress loads, not automatically loaded, or left up to WordPress to decide. My interest in plugin development is always to have the most efficient loading possible – only loading what is needed when it is needed and keeping things as lightweight as possible. Adjusting to a specific value for autoload has already occurred in the core plugin and it is now being evaluated and updated in the premium extensions. In the User List, the only option value that will autoload is the main settings. These are loaded anyway anytime the core plugin loads, which is every page load. All other options are explicitly defined to load when requested, so they will not load automatically with a page load, keeping your autoloaded option values at a minimum.
Bug Fixes
This version fixes a bug that causes a new search from the state of an existing search to return invalid results. This bug is in the plugin’s javascript, so you will need to refresh your cache if javascript is cached (and not automatically refreshed upon the update of a plugin).
This version fixes a number of bugs in the new front end user editing feature. This feature in the previous version was very buggy, and should be entirely stable in this release. If you use this feature and experience any issues, please let me know so the issue can be reviews, and if necessary, fixed.
API Functions
- Added
wpmem_ul_get_profile_page_id()API function. - Added
wpmem_ul_get_profile_permalink()API function. - Deprecated
wpmem_get_profile_permalink(), usewpmem_ul_get_profile_permalink()instead.
WP CLI
User List did not previously have WP CLI commands. This version adds commands for managing the option settings through the command line. They are inline documented, so documentation will display in the command line, along with help. Documentation on the web site will be forthcoming