Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: removing tags


Mark
Member

@delayedinsanity

Looks like it’s bb_repermalink that’s choking and causing us to get that blank page.

Submit to trac? You can modify the following in functions.bb-core.php, starting on line 737;

$_original_id = $id;
if ( !$id )
$permalink = bb_get_tag_page_link();
else {
global $tag, $tag_name;
$tag_name = $id;
$tag = bb_get_tag( (string) $tag_name );
$permalink = bb_get_tag_link( 0, $page ); // 0 => grabs $tag from global.
}

To;

$_original_id = $id;
$tag = bb_get_tag( (string) $id );
if ( !$tag )
$permalink = bb_get_tag_page_link();
else {
global $tag, $tag_name;
$tag_name = $id;
$permalink = bb_get_tag_link( 0, $page ); // 0 => grabs $tag from global.
}

And instead of returning that blank page, it will return the global tags page. Possibly not the most eloquent solution, but works nonetheless.

Skip to toolbar