Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: removing tags


Mark
Member

@delayedinsanity

I made an oops. That code above doesn’t work, and I edited it earlier but I forgot to hit submit (I have so many tabs open it’s not even funny).

The proper code is as follows;

$id = ( isset($_GET['tag']) ) ? $_GET['tag'] : false;
if ( ! $id || ! bb_get_tag( (string) $id ) )
$permalink = bb_get_tag_page_link();
else {
global $tag, $tag_name;
$tag_name = $id;
$tag = bb_get_tag( (string) $id );
$permalink = bb_get_tag_link( 0, $page ); // 0 => grabs $tag from global.
}

…with the code I originally posted, there’s no tag information passed on, so you get a whole wheelbarrow full of nothing.

Trac filed, #1197… first time I’ve ever filed a trac, so I hope I followed etiquette/protocol properly. ;)

Skip to toolbar