Register new account
5.0.4 Glyph UI Taint
**This has been fixed.** Patch 5.0.4 introduced an annoying bug to deal with. Blizzard accidentally declared "_" to be global, so if your addon uses "_" as a global it will cause the GlyphUI frame to not work. It's an easy fix, instead of: <<code:lua>> local class _, class = UnitClass("player") <</code>> Just declare _ as a local variable: <<code:lua>> local _, class _, class = UnitClass("player") <</code>> or you can achieve it another way using the select method: <<code:lua>> local class = select(2, UnitClass("player")) <</code>> Using local variable over global variables is good addon practice for a variety of reasons, some of which include speed of access, interactions with other addons/Blizzard UI, and just not polluting the global namespace. Good news however is that this is already fixed on the beta and should be slated for patch 5.0.5. [[http://www.wowace.com/profiles/mikk/|Mikk]] wrote a nice little utility which helps find global leakage in your addons. You can get it from WowAce [[http://www.wowace.com/addons/findglobals/|here]].
The type of markup for this entry.
Click here for details