Three Plugins to Update
We have finished a review of the current versions of the last three of our plugins and made minor updates to all of them.
- BNS Featured Category (version 1.4)
- BNS Featured Tag (version 1.4)
- BNS Corner Logo (version 1.1)
The modifications added a simple version check against the global $wp_version variable that holds the installed WordPress version number. Currently each plugin will only verify the installed version meets the minimum requirements based on functions being used.
There are future possibilities in creating an incentive for users to upgrade to the most current stable version of WordPress. We will be using this “check” method in all our themes and plugins. This verification process has been added to our BNS Login plugin and will be implemented in all of our existing themes with their next updates.
Sample code snippet for (current as of this writing) version checking:
global $wp_version;
$exit_message='This BuyNowShop theme/plugin recommends the use of WordPress 2.8.4, <a href="http://codex.wordpress.org/Upgrading_WordPress">Please Update!';
if (version_compare($wp_version, "2.8.4", "<"))
{
exit ($exit_message);
}
NB: Current version versus minimum version checks will be added at appropriate times.
© 2009, Edward Caissie. All rights reserved.
Related posts: