Skip to:
Content

bbPress.org

Opened 20 years ago

Closed 20 years ago

#484 closed defect (bug) (fixed)

tag_heat_map defect

Reported by: so1o Owned by: mdawaffe
Priority: normal Milestone: 0.7.4
Component: Back-end Version: 0.7.3
Severity: major Keywords:
Cc:

Description

if the function tag_heat_map is called in the tag-single.php before the main content specifically

<?php tag_name(); ?>

if creates unexpected results.

this is because the variable $tag in the function is global.

Change History (9)

#1 @mdawaffe
20 years ago

  • Milestone0.74
  • Owner set to mdawaffe
  • Status newassigned

#2 @mdawaffe
20 years ago

  • Resolutionfixed
  • Status assignedclosed

(In [550]) remove global on tag_heat_map(). props so1o, Aditya. Fixes #484

#3 @so1o
20 years ago

  • Resolution fixed
  • Status closedreopened

#4 @so1o
20 years ago

  • Owner changed from mdawaffe to so1o
  • Status reopenednew

#5 @so1o
20 years ago

  • Owner changed from so1o to mdawaffe

just changing the

#6 @so1o
20 years ago

just changing the global declaration will not fix the problem. this creates the links without the tags. change like 1235 to

$taglinks{$tag->raw_tag} = get_tag_link($tag->tag);

#7 @mdawaffe
20 years ago

  • Status newassigned

ha :)

Nice catch.

The issue is trickier than I thought. get_tag_link() will globalize $tag. I'll have a patch up soon.

#8 @mdawaffe
20 years ago

[551] How does that look?

#9 @so1o
20 years ago

  • Resolutionfixed
  • Status assignedclosed

that looks better..

Note: See TracTickets for help on using tickets.