Three Plugins to Update

Posted by Edward Caissie on Oct 3, 2009 | Subscribe
in News, Remarks
as , , , ,

We have finished a review of the current versions of the last three of our plugins and made minor updates to all of them.

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:

  1. BNS Featured Tag 1.5
  2. BNS Corner Logo 1.0 Live
  3. Ground Floor 1.3.1 Live
  4. New Home
  5. WordPress MU 2.7 Out of the Box