Fixed missing function because of shortinit in wordpress.