WordPress.org

Ready to get started?Download WordPress

Forums

SensitiveTagCloud
WordPress 3.1 Changes (5 posts)

  1. Bernhard Riedl
    Member
    Posted 3 years ago #

    Hi,

    After I've updated to WordPress 3.1 (RC2), I noticed that Sensitive Tag Cloud stopped working.

    I dug into the code and changed a few things and now it seems to run fine again. - Here is what I changed:

    function stc_widget

    if( !empty($queryvars['tag_slug__and']) )
          $searchtags = array_merge( $searchtags, $queryvars['tag_slug__and'] );

    changed to

    if( !empty($queryvars['tag']) )
          $searchtags = array_merge( $searchtags, explode('+', $queryvars['tag']) );

    function stc_get_tag_link

    $taglink = str_replace('%tag%', $slugs, $taglink);
    		$taglink = get_option('home') . user_trailingslashit($taglink, 'category');

    changed to

    $taglink = str_replace('%post_tag%', $slugs, $taglink);
    		$taglink = get_option('home') . '/'. user_trailingslashit($taglink, 'category');

    function stc_get_tag_link_slugs

    $stc_get_tag_link_slugs_cache['slugs_and'] =
        get_query_var('tag_slug__and');

    changed to

    $stc_get_tag_link_slugs_cache['slugs_and'] =
        explode('+', get_query_var('tag'));

    Greetz,
    Berny

    http://wordpress.org/extend/plugins/sensitive-tag-cloud/

  2. Bernhard Riedl
    Member
    Posted 3 years ago #

    Hmm, this could also be a bug in WordPress 3.1-RC2 rather than a permanent change.

  3. migueleste
    Member
    Posted 3 years ago #

    Hi,

    Have you managed to make it work?

    I'm setting the option "Restricted to current tag" ON.

    And it stopped working on 3.1... :-(

    I've tried your changes but without results...

    Miguel

  4. migueleste
    Member
    Posted 3 years ago #

    Hey...After all your solution works.
    I've tried again and it's fine...I think.

    But needed to upgrade to 3.1.2. Apparently 3.1.1 had some problem with the tag query terms..

    Thanks!

    miguel

  5. dave
    Member
    Posted 2 years ago #

    @migueleste

    Have you got SensitiveTagCloud working in the latest version of WP 3.2.1 by any chance? I've installed it and set options, but the cloud isn't even showing up. I'm using custom post types and a custom tag taxonomy, but I presume it should work with anything labeled tag, yea?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic