Making Simple Tags work with WordPress 2.9

For some of you that have just upgraded to the shiny new WordPress 2.9 release, you may have noticed a nasty little message that states that Simple Tags won’t work with the version of WordPress that you now have installed.

The issue at hand here is that the code for the plug-in contains a hard-coded check for the version number to ensure compatibility. It doesn’t appear on the surface that there will be any issues with this plug-in and the new WP code.

The fix to this is pretty simple. On line 35 of the simple-tags.php file you will find the following code:

35
if ( strpos($wp_version, '2.7') !== false || strpos($wp_version, '2.8') !== false )

All you need to do is to change the code to include an additional check for version 2.9. The code will then look like so:

35
if ( strpos($wp_version, '2.7') !== false || strpos($wp_version, '2.8') !== false || strpos($wp_version, '2.9') !== false )

Note: if there are any issues with the rest of the code, then the plugin still won’t work properly, but there doesn’t appear to be any that have been found.

2 thoughts on “Making Simple Tags work with WordPress 2.9

  1. Pingback: Making Simple Tags in Wordpress 2.9 | Rants, Raves, and Rhetoric v4

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">