WordPress.org

Ready to get started?Download WordPress

Forums

Simple Tags can't work with WordPress 2.9 RC (48 posts)

  1. asiapan
    Member
    Posted 4 years ago #

  2. bgunnink
    Member
    Posted 4 years ago #

    Nothing in 2.9, as far as I can see, that will actually break Simple Tags. The error is thrown because the author has hardcoded a version check.

    If you edit the plugin via the editor interface, find this line (near the top):

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

    and change it to

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

  3. PipperL
    Member
    Posted 4 years ago #

    bgunnink's solution works! thanks a lot!

  4. nfdieter
    Member
    Posted 4 years ago #

    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'), 'http://wordpress.org/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

  5. january-girl
    Member
    Posted 4 years ago #

    Thx bgunnink, works like a charm!

  6. velokatz
    Member
    Posted 4 years ago #

    Dieter --

    You deleted part of the code that still needs to be there. It should look like this:

    // Check version.
    global $wp_version;
    if ( strpos($wp_version, '2.7') !== false || strpos($wp_version, '2.8') !== false || strpos($wp_version, '2.9') !== false ) {
    	require(dirname(__FILE__).'/2.7/simple-tags.client.php');
    } 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');
    }

    You need to reinsert
    require(dirname(__FILE__).'/2.7/simple-tags.client.php'); before the first } elseif

  7. Bryan84
    Member
    Posted 4 years ago #

    Thanks bgunnink. :)

  8. ntsekov
    Member
    Posted 4 years ago #

    bgunnink
    Nothing in 2.9, as far as I can see, that will actually break Simple Tags...

    QFT, thank you very much for the quick solution, just started fixing all my websites :)

  9. nfdieter
    Member
    Posted 4 years ago #

    Thanks:-)
    Now it runs.....

  10. Iva
    Member
    Posted 4 years ago #

    It still does not work for me. How come?

  11. Iva
    Member
    Posted 4 years ago #

    In other words, the function used to display tags on the front end is what doesn't work. The above fix works only for the backend.

  12. danielsl
    Member
    Posted 4 years ago #

    Thank you very much, bgunnink. Nice as always.

  13. titou
    Member
    Posted 4 years ago #

    Thanks bgunnink, that works !

  14. filfil
    Member
    Posted 4 years ago #

    Thanks a lot for your solution, bgunnink, it works perfectly!

  15. MTO
    Member
    Posted 4 years ago #

    Thanks!

  16. DougAlder
    Member
    Posted 4 years ago #

    Awesome - thanks bgunnink :)

  17. Markus Pezold
    Member
    Posted 4 years ago #

    Thanks bgunnink - your solutions works in my installation.

  18. rman
    Member
    Posted 4 years ago #

    I made the change but i have a new problem:
    when i make a new post there is no simple tags inside
    and i need to repost with new tags and post info.
    At the second try all are ok but always with two tries.

  19. liuyiwp
    Member
    Posted 4 years ago #

    Thanks bgunnink - it works like magic!
    Now all my 26 plugins work in 2.9

  20. gcoghill
    Member
    Posted 4 years ago #

    The fix by bgunnink seems to have worked for me as well. Thanks!

  21. downloadgames
    Member
    Posted 4 years ago #

    thx for the fix couldnt do without this plugin

  22. wendyvee
    Member
    Posted 4 years ago #

    Thanks bgunnink!! You Rock!!!

  23. rman
    Member
    Posted 4 years ago #

    Anyone can help me?
    I have the same problem after this fix:

    i made the change but i have a new problem:
    when i make a new post there is no simple tags inside
    and i need to repost with new tags and post info.
    At the second try all are ok but always with two tries.

  24. Bhoney
    Member
    Posted 4 years ago #

    This worked for me too- fixed it- widget as well.

  25. havuz
    Member
    Posted 4 years ago #

    Great stuff bgunnink

    Worked a treat :)

  26. DebNCgal
    Member
    Posted 4 years ago #

    Way to go bgunnink! Thanks!

  27. thegirlinthecafe
    Member
    Posted 4 years ago #

    A big thank you to bgunnink, works like a charm!

  28. rafriquelme
    Member
    Posted 4 years ago #

    Cool! Works great! Thanks bgunnink!

  29. schamane
    Member
    Posted 4 years ago #

    /me thanks 2

  30. Tari
    Member
    Posted 4 years ago #

    Thanks, works fine!

Topic Closed

This topic has been closed to new replies.

About this Topic