Add backwards compat to old BuddyPress version. props @christianwach