Oops, looks like they may have forgotten to remove that block of code.
But then again it is a beta so they probably haven't gone through all the files yet.
In SecureTemplates.lua
Code:
local InitializeSecureMenu = function(self)
local unit = self.unit;
if( not unit ) then return end
local unitType = string.match(unit, "^([a-z]+)[0-9]+$") or unit;
-- Mimic the default UI and prefer the relevant units menu when possible
local menu;
if( unitType == "party" ) then
menu = "PARTY";
elseif( unitType == "boss" ) then
menu = "BOSS";
elseif( unitType == "focus" ) then
menu = "FOCUS";
elseif( unitType == "arenapet" or unitType == "arena" ) then
menu = "ARENAENEMY";
-- Then try and detect the unit type and show the most relevant menu we can find
elseif( UnitIsUnit(unit, "player") ) then
menu = "SELF";
elseif( UnitIsUnit(unit, "vehicle") ) then
menu = "VEHICLE";
elseif( UnitIsUnit(unit, "pet") ) then
menu = "PET";
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
elseif( UnitIsOtherPlayersBattlePet(unit) ) then
menu = "OTHERBATTLEPET";
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
elseif( UnitIsOtherPlayersPet(unit) ) then
menu = "OTHERPET";
-- Last ditch checks
elseif( UnitIsPlayer(unit) ) then
if( UnitInRaid(unit) ) then
menu = "RAID_PLAYER";
elseif( UnitInParty(unit) ) then
menu = "PARTY";
else
menu = "PLAYER";
end
elseif( UnitIsUnit(unit, "target") ) then
menu = "TARGET";
end
if( menu ) then
UnitPopup_ShowMenu(self, menu, unit);
end
end