I have a mistake in my Code?
No Simple Tags are showing?
// Check version.
global $wp_version;
if ( strpos($wp_version, '2.7') !== false || strpos($wp_version, '2.8') !== false || strpos($wp_version, '2.9') !== false ) {
} elseif ( strpos($wp_version, '2.5') !== false || strpos($wp_version, '2.6') !== false ) {
require(dirname(__FILE__).'/2.5/simple-tags.client.php');
} elseif ( strpos($wp_version, '2.3') !== false ) {
require(dirname(__FILE__).'/2.3/simple-tags.client.php');
} elseif ( strpos($wp_version, '2.2') !== false || strpos($wp_version, '2.1') !== false || strpos($wp_version, '2.0') !== false ) {
add_action('admin_notices', 'simple_tagging_warning');
} else {
add_action('admin_notices', 'simple_tags_warning');
}
function simple_tagging_warning() {
echo '<div class="updated fade"><p><strong>'.__('Simple Tags can\'t work with this WordPress version !', 'simpletags').'</strong> '.sprintf(__('You must use <a href="%1$s">Simple Tagging Plugin</a> for it to work.', 'simpletags'), 'https://www.ads-software.com/extend/plugins/simple-tagging-plugin/').'</p></div>';
}
function simple_tags_warning() {
echo '<div class="updated fade"><p><strong>'.__('Simple Tags can\'t work with this WordPress version !', 'simpletags').'</strong></p></div>';
}
?>
Something wrong?
Greetings
Dieter