removes NOTICE: Use of undefined constant IS_PROFILE_PAGE