opencredit / BadgeOS-Community-Add-on

The "BadgeOS Community Add-on" integrates BadgeOS features into BuddyPress and bbPress. Site members complete achievements and earn badges based on a range of community activity and triggers. This add-on to BadgeOS also includes the ability to display badges and achievements on user profiles and activity feeds.
GNU Affero General Public License v3.0
11 stars 8 forks source link

Remove unnecessary checks in badgeos_community_loader() #42

Open tw2113 opened 9 years ago

tw2113 commented 9 years ago

Found in bp-members.php. Maintenance Mode was deprecated in version 1.7.

tw2113 commented 9 years ago

checking for the true return of buddypress() in general should be fine to be removed as well, since we're running things on bp_init and the BuddyPress class should already be instantiated by then

tw2113 commented 9 years ago

Upon further review, https://github.com/opencredit/BadgeOS-Community-Add-on/blob/master/includes/bp-members.php#L62 could very likely be reduced down to just checking for xprofile being active, unless we allow BuddyPress 1.6 and down, for which we'd want maintenance mode checking too.