Version 2.6.0
Version 2.6.0 is a major BuddyPress feature release.
For Version 2.6.0, the database version (_bp_db_version in wp_options) was 10469, and the Trac revision was 10898. Read the full ticket log here here.
BuddyPress 2.6.0 will require WordPress 4.1.0
Highlights
- Activity Embeds
If you are using WordPress 4.5+, copy the permalink URL of the activity of your choice, paste it into the content editor of your WordPress post or page, and voilĂ !, you’ve embedded an activity update. Watch the Activity Embeds demo and view the codex article for more info. - Custom Front Page for Member Profile
Theme developers or site owners can create custom front pages for their community’s members by adding a front.php template to their template overrides. A specific template hierarchy is also available to make them even more unique. Read all about this new feature. - Receive Screen Notifications for Activity Comments and Activity Replies
If you regularly receive replies to activity updates, BuddyPress now adds screen notifications to help notify you about these replies. - Improved activity integration with WordPress comment moderation
If a user posts an activity item that hits a WordPress comment moderation filter, a descriptive error will be displayed instead of a generic one. - Group Types API
Registering group types finally enables a strict separation of different and explicit types of groups. This new feature is available to plugin developers starting with BuddyPress 2.6. Learn how to set up Group Types. - New Navigation API
The member and group navigation system has been totally rewritten, making it easier than ever to customize BuddyPress nav items. If you are directly accessingbuddypress()->bp_nav
orbuddypress()->bp_options_nav
, be aware that this type of access will be deprecated in 2.6.0. Read the informative commit message. - Companion stylesheets for Twenty Eleven and Twenty Ten
BuddyPress feels right at home now in the classic default themes, Twenty Ten and Twenty Eleven. - Performance enhancements
Class autoloading reduces the memory needed to run BuddyPress on your server. Improved caching strategies for group membership statuses mean fewer round trips to your overworked database server. - Localization Improvements
Improved localization strings and comments help translators do their much-appreciated work: making BuddyPress available in many languages. - Accessibility Upgrades
Continued improvements help make BuddyPress’ back- and front-end screens usable for everyone (and on more devices).
User Features
Activity
- Add Embeds support to single activity items for those using WordPress 4.5+. Copy an activity permalink and paste into the WordPress editor to embed the activity item into your post. View the codex article for more info (#6772)
- Introduce screen notifications for activity comments and activity comment replies (#6057)
- Improved error display when posting an activity item and when the activity content hits a WordPress comment moderation filter (#6719)
- Make the at-mentions UI work for a wider range of TinyMCE instances, not just wp-admin’s Visual Editor (#6972)
- Add an ‘Edit Activity’ toolbar link when viewing a single activity for moderators (#6607)
Administration
- Accessibility improvements throughout admin dashboard pages (#7017, #7065, #7082, #7089)
- Emails Admin: Introduce ‘Situations’ column to easily identify the email situations in the WordPress post list table (#7031)
- Group Admin: Add “Group Type” metabox when editing a group. This is related to the new Group Types API (r10770)
- Group Admin: Improve logic when deciding whether to show “No group found” message (#6975)
- Profile Admin: Improve mobile responsive view of “Users > Extended Profile” screen (#7081)
- Profile Admin: Fix layout of checkbox, datebox, and radio fieldset display (#7080)
Blogs
- Do not create a post comment if the related activity comment is marked as spam (#7107)
- Fix issue when attempting to use the “Network Admin > My Sites > Add New” button when the Blogs component is disabled (#6178)
Core
- Add support for class autoloading. This reduces the memory needed to run BuddyPress on your server (#6853)
- Support secure cookies if site is running over HTTPS (#6961)
- Serve smaller mystery man avatar when requested size is 50px or less (#7056, r10757)
Friends
- No changes
General
- Fix issue where it was not possible to set the ‘Text Size’ in the Email Customizer (#7041)
Groups
- Introduce ‘mystery group’ default avatar for groups that have not uploaded an avatar (#6372)
- Add options to a user’s “Settings > Email” page to opt-out of group membership request emails (#7029)
- Improve search query handling on a group’s “Members” page (#7093)
Members
- Support members shortlink redirection. Navigating to a
example.com/members/me/*
URL will redirect to the logged-in user’s page (#6325)
Messages
- Fix javascript conflict with jQuery.fn.autocomplete (#4824)
Notifications
- Ensure moderators are able to manage a user’s notifications (#7023)
Profiles
- Don’t auto-link the “Name” field to a search (#6955)
- Better styling and markup of certain profile field types (#6678, #7083)
Settings
- When someone changes their email, tell users we’ve sent confirmation to their current (old) address, not the new one (#7033)
- For the verify email address email, include the user/recipient’s email address in the email text. Note: To include this change, you will have to go to the WP admin dashboard’s “Tools > BuddyPress” page and run the “Reinstall emails” option. (#7034)
Theme
- Add companion stylesheet support for WordPress themes, Twenty Ten and Twenty Eleven (#7043)
- Add pagination to the bottom of a group’s “Manage > Members” page (#7094)
Development, Themes, Plugins
Activity
- Cache full oEmbed response for activity entries (r10833)
- Introduce error handling to the
BP_Activity_Activity
class and related functions (r10858) - Ensure that single activity pages are only rendered from the activity author’s page (#7113)
- Introduce class,
BP_Activity_oEmbed_Extension
(r10838, r10849) - Pass the
$user_id
parameter to thebp_get_last_activity
filter (r10779) - Pass the
$user_id
parameter to a number of activity template filters (r10784) - Escape activity thread and activity comment permalinks (#6990)
- Improve
bp_activity_truncate_entry()
(r10832) - Cast activity properties as integers where appropriate (r10853)
- Mentions: Prefer
font-weight
vs. overgeneralizedfont
CSS rule (#7006) - PHPDoc improvements (r10741, r10787)
Administration
- Profile Admin: Introduce
xprofile_group_admin_after_description
action (#6690) - Profile Admin: Harmonize parameters sent with
'xprofile_updated_profile'
action (#7049) - Correctly add contextual help for our main admin screens (#6848)
- Add translator comments for the accessibility headings (#6951)
Blogs
- Improve how
bp_blogs_record_existing_blogs()
operates (#6370) - Move activity-related code from
bp-blogs-functions.php
tobp-blogs-activity.php
(#6937) - Introduce new parameter –
$no_activity
to'bp_blogs_new_blog'
action (#6937) - Pass
$user_id
parameter to thebp_get_total_blog_count_for_user
filter (r10783)
Core
- BuddyPress 2.6.0 will require WordPress 4.1.0 (#7013)
- Introduce new API for BuddyPress navigation. The new
BP_Core_Nav
class overhauls the way that BuddyPress registers, stores, and
renders navigation items. Navigations are now component-specific, eliminating the potential for confusion and conflict between navigation items with similar names in different components, and opening the possibility of generating navs
for separate objects of the same type on a single pageload (#6534, #7062, #5103, #7110) - Taxonomy: Allow the site used for taxonomy term storage to be filtered (#7077)
- Cover Image: Fix issue when a custom
BP_XPROFILE_SLUG
is in use (#6962) - Moderation: Add support for
WP_Error
handling (r10859) - Avatars: Introduce filter,
'bp_core_avatar_default'
, to filter the Gravatar'd'
parameter (#6989) - Avatars: Swap invalid
text-align: auto
styling fortext-align: inherit
(#7005) - URL routing: Introduce filter,
'bp_core_set_uri_globals_member_slug'
, to filter the portion of the URI immediately after the'members'
slug (#6694) - REST API: Add new
bp_rest_api_init
filter for future use by our REST API integration (#7032) - Embeds: Introduce
'bp_enqueue_embed_scripts'
hook (#6772) - Embeds: Introduce class,
BP_Core_oEmbed_Extension
(r10837, r10849) - Introduce function,
bp_core_extract_media_from_content()
(r10834) - Introduce function,
bp_core_get_components()
based onbp_core_admin_get_components
(r10726) - Introduce function,
bp_core_get_directory_page_id()
(#7025) - Introduce function,
bp_locate_template_asset()
to locate assets such as CSS and JS files (r10862, #7124) - Introduce function,
bp_get_asset_template_part()
(r10835) - Modify
bp_locate_template()
to support loading templates in code inside the wp-admin scope (#6914) - In
bp_create_excerpt()
, introduce'strip_tags'
and'remove_links'
as arguments (r10830) - Emails: Ensure that passing a known WP user email address to
bp_send_email()
will render the{{recipient.name}}
token (#7044) - Fix debug notices when deleting a WordPress user (#6981)
- Add debug trace to
bp_setup_current_user()
notice (#6589) - Do not log the
'bp_setup_current_user was called incorrectly'
notice when used with the Customizer (#7086) - Deprecate
bp_core_print_generation_time()
(#6976)
Friends
- Cast
BP_Friends_Friendship
class properties as integers where appropriate (r10710) - Pass object IDs to a number of friends template filters (r10782)
General
- Pass parsed function parameters to a number of template filters (r10785)
- Remove markup from translatable strings (#6899, #6900, #6901, #6902, #6903, #6904, #6906, #6907, #6908, #6909, #6911, #6951)
- Widgets: Add support for WP Customizer’s selective refresh. This functionality is available as of WordPress 4.5.0 (#7030)
- Widgets: Do not enqueue javascript too early (#7087)
- Build Tools: Travis tests should run against WP 4.5 branch (r10698)
- Build Tools: Add
grunt build
job to the Travis test matrix (#6726) - Build Tools: Switch from using CSSJanus to RTLCSS (#7007)
- Build Tools: Specify minimum node and npm version in package.json (#7008)
- Build Tools: Update some npm packages to latest stable versions (#6958)
- Build Tools: Remove banners added to minified CSS and JS files (#6541)
- Emails: Improvements to unit tests (r10668, r10669)
- Scrutinizer improvements (r10712)
- Fix wrong plural usage for the word, “emoji” (#7039)
- PHPDoc improvements (r10821)
- Code standards improvements (r10843)
Groups
- Introduce Group Types API. View the codex article for more information (#6784)
- Introduce caching for group memberships (#6327, #7078)
- Introduce new function,
bp_get_user_groups()
(r10794) - When creating an invite with
groups_invite_user()
, make sure theinviter_id
is not zero (#6941) - Use
bp_get_group_name()
instead of redefining filter in various places (#7069) - PHPDoc improvements (r10795, r10825)
Members
- Introduce support for a custom home page template for single member profiles (View this development post for more info (#6769)
- Add
'member-type-{$member_type}'
class tobp_get_member_class()
(#6996) - PHPDoc improvements (r10711, r10786)
Messages
- Introduce dynamic filter,
"bp_messages_{$action}_notification"
(#6750) - Pass
$thread_id
parameter to a number of messages template filters (r10781)
Notifications
- Fix notification meta registration (#7067)
- Pass the notification ID to the notification format callback (#7066)
- Introduce two new parameters and deprecate the first parameter for the
'bp_notifications_get_notifications_for_user'
filter (#7020) - Remove double semi-colon in
bp_notifications_add_notification()
(#7022) - Don’t use object buffering in template tags (r10817)
Settings
- No changes
Profiles
- Only cache field object when query is successful to avoid a PHP notice (#7073)
- Fix object cache invalidation issue when profile syncing is enabled and when a user updates their profile name (#7050)
- Fix object cache invalidation issue when updating a profile field’s position (#7112)
- Use fieldsets/legends when rendering certain field types to improve form semantics (r10656)
- Pass the
$group_id
parameter to thebp_get_profile_group_name
filter (r10780) - PHPDoc improvements (r10740)
Theme
- Improved escaping in
group-header.php
template (#7074) - Re-factor group
requests-loop.php
template (#6774) - Prevent an empty background URL from being generated if user deletes their cover image (#7002)
- Remove redundant JS
ajaxurl
variable (#6136)