BuddyPress 2.6.1 is now available

Check out the blog post on buddypress.org for more info:

BuddyPress 2.6.1

Class autoloading and what this means for plugin developers

In BuddyPress 2.6.0, we introduced class autoloading to help reduce the amount of memory used on your site on any given page request.

Class autoloading is part of our ongoing quest to optimize BuddyPress.

However, one issue that we have seen on the support forums is some BuddyPress plugins might need to be updated to better check for the existence of a BuddyPress class or if a BuddyPress component is active.

For example, some plugins use a class_exists() check to determine if a BuddyPress component is active.

if ( class_exists( 'BP_Group_Extension' ) ) {
            class My_Group_Extension extends BP_Group_Extension {
            }

            bp_register_group_extension( 'My_Group_Extension' );
}

Up until BuddyPress 2.5.3, this was fine. However, in BuddyPress 2.6.0, class_exists( 'BP_Group_Extension' ) will now return true all the time by default. This isn’t great as this can cause a fatal error if the Groups component isn’t enabled and we do not want that!

There are two ways to fix this in your plugin:

1) Change class_exists( 'BP_Group_Extension' ) to class_exists( 'BP_Group_Extension', false )

class_exists() accepts a second boolean parameter to call PHP’s autoloader to check if the class exists. This is true by default. If you set this to false, the class isn’t loaded automatically as part of the class_exists() check, so the return value reflects whether the class has been included in a previous call.

For more info, check out PHP’s class_exists() documentation page:
http://php.net/class_exists

2) Use bp_is_active( 'groups' ) instead of class_exists( 'BP_Group_Extension' )

This is the preferred way.

BuddyPress has a native function to check if a component is active, bp_is_active().

Use bp_is_active( 'groups' ) to check if the Groups component is active in your plugin and that should be it!

If you have any questions, please leave them below.

Congratulations all contributors to BuddyPress…

Congratulations all contributors to BuddyPress 2.6! For those who attend our dev meetings regularly, please note that next week’s scheduled meeting — 29th June — is cancelled to give everyone a chance to relax. It’s quite probable that some members of the team will be on Slack then anyway, so we’d love to have a casual chat if you happen to be around.:)

The dev chat scheduled for 6th July is on, and it will be used to discuss any problems that have been found since release of 2.6, and to discuss ideas for BuddyPress 2.7 and ways to help contribute to it.

BuddyPress 2.6 “Espejo” is now available!

Read more about it here https://buddypress.org/2016/06/buddypress-2-6-0/

Let’s all thank @dcavins our release lead for this delicious 2.6 version.

Many thanks to all our contributors ❤️

abweb, Boone B Gorges (boonebgorges), Brandon Allen (thebrandonallen), chherbst, danbrellis, David Cavins (dcavins), Dennis (wpdennis), emrikol, Fee (wdfee), Garrett Hyder (garrett-eclipse), Gary Pendergast (pento), George Mamadashvili (Mamaduka), Henry Wright (henry.wright), Hugo (hnla), John James Jacoby (johnjamesjacoby), Klaus (kmbdeamorg), OC2PS (sooskriszta), lakrisgubben, Laurens Offereins (Offereins), mahadri, Mathieu Viet (imath), mercime, Michael Beckwith (tw2113), mmcachran, modemlooper, Nick Momrik (nickmomrik), OakCreative, oksankaa, Paul Gibbs (DJPaul), Rami Yushuvaev (ramiy), r-a-y, rekmla, r0z, Sergey Biryukov (SergeyBiryukov), singhleo, Slava UA (slaffik), Stephen Edgar (netweb), tharsheblows, VibeThemes, vortfu, WeddyWood, w3dzign.

Dev Chat Summary for June 15, 2016

BuddyPress RC 1

@dcavins packaged and released BuddyPress 2.6.0 RC 1 (string freeze) last Wednesday, June 15, 2016.
* Developers: Please test your BP plugins and themes with our new features this dev cycle:)
* Translators: We need translators for BuddyPress. If you’re interested in contributing, @danbp has written a topic about how you can get involved.

BuddyPress 2.6.0

RC 1 Release Preparation

We discussed two tickets remaining in trac: moving stylesheet of activity embed to to bp-legacy’s /css/ folder (#7123 fixed.) and the Welcome Screen for 2.6 (#7108 fixed).
* Thanks to @im4th for preparing the video demonstrating BP’s new Activity Embed feature on our Welcome Screen.
* Thanks to @djpaulgibbs and @jerrysarcastic for facilitating the transfer of the video to WordPress.tv.
* And thanks @dcavins, @rayisme, and @hnla for improving the text of the Welcome Screen.

New Codex articles for BP 2.6

Thanks to @rayisme for publishing the following articles:
* Activity Embeds
* Group Types API

Improving Management of Trac Tickets

@djpaulgibbs will be implementing some changes to Trac over this weekend per his post here at bpdevel. @dcavins reminded all to comment on @offerein’s suggestions about BP trac ticket categories and focuses.

Slack log: https://wordpress.slack.com/archives/buddypress/p1466017239000114

BuddyPress 2.6.0 Release Candidate 1…

BuddyPress 2.6.0 Release Candidate 1 is now available for testing. Please let us know of any issues via our issues tracker or on the BuddyPress support forums.

Thanks in advance for your help!

Dev Chat Summary for June 8, 2016

BuddyPress 2.6.0

  • Release Candidate 1 (string freeze): June 15, 2016
  • 2.6.0 release: June 22, 2016
  • There are currently 106 tickets in queue (Closed: 103. Open: 3.)

Trac Tickets

A new API to manage single items navigation (#6534) Issue on backward compatibility with groups navigation. Update: @boonebgorges has committed fix to trunk.

Activity link moderation doesn’t output useful error message to end users (#6719) @rayisme will be making a string change. Update@rayisme has committed the fix to trunk.

Welcome Screen for 2.6.0 (#7108)
* Activity embeds will be the main feature of the About page. A short video will be embedded for WP 4.5+ installations and an image for installations less than WP 4.5. @im4th was volunteered to make the video. Update: @im4th has uploaded a patch.
* Other items to be featured included the new Group Types API and Custom Users Front Page
* In the midst of testing the Activity embeds feature for the About page, @tw2113 found a bug. Update: @im4th created a new ticket and he and @rayisme have uploaded patches to fix the issue.
* In addition, the WP icon was seen in BuddyPress.org’s activity embeds. @im4th pointed out that a ready-to-use BuddyPress icon exists on the “official fonts and logos” page. Update: @djpaulgibbs has uploaded the icon.
* “Under the Hood” section: New API to manage single items (Member or Group) navigation, various caching improvements, among other items.

Slack log: https://wordpress.slack.com/archives/buddypress/p1465412393000100