diff --git a/wp-content/plugins/buddypress/bp-activity/actions/favorite.php b/wp-content/plugins/buddypress/bp-activity/actions/favorite.php index 297ee96f57858473e36b9775c1b5ad06f8bc3004..02cd10f080c88f81339fa574cdc8b1944b01e0db 100644 --- a/wp-content/plugins/buddypress/bp-activity/actions/favorite.php +++ b/wp-content/plugins/buddypress/bp-activity/actions/favorite.php @@ -21,6 +21,11 @@ function bp_activity_action_mark_favorite() { // Check the nonce. check_admin_referer( 'mark_favorite' ); + $activity_item = new BP_Activity_Activity( bp_action_variable( 0 ) ); + if ( ! bp_activity_user_can_read( $activity_item, bp_loggedin_user_id() ) ) { + return false; + } + if ( bp_activity_add_user_favorite( bp_action_variable( 0 ) ) ) bp_core_add_message( __( 'Activity marked as favorite.', 'buddypress' ) ); else diff --git a/wp-content/plugins/buddypress/bp-activity/actions/reply.php b/wp-content/plugins/buddypress/bp-activity/actions/reply.php index 103b4ded98d578d4bd287b9f38189c7d2395718d..4a42d943a33cbe6a675868d922351c7f29665296 100644 --- a/wp-content/plugins/buddypress/bp-activity/actions/reply.php +++ b/wp-content/plugins/buddypress/bp-activity/actions/reply.php @@ -44,6 +44,12 @@ function bp_activity_action_post_comment() { bp_core_redirect( wp_get_referer() . '#ac-form-' . $activity_id ); } + $activity_item = new BP_Activity_Activity( $activity_id ); + if ( ! bp_activity_user_can_read( $activity_item ) ) { + bp_core_add_message( __( 'There was an error posting that reply. Please try again.', 'buddypress' ), 'error' ); + bp_core_redirect( wp_get_referer() . '#ac-form-' . $activity_id ); + } + $comment_id = bp_activity_new_comment( array( 'content' => $content, 'activity_id' => $activity_id, diff --git a/wp-content/plugins/buddypress/bp-activity/bp-activity-filters.php b/wp-content/plugins/buddypress/bp-activity/bp-activity-filters.php index 41d51c965ba7dfdb5519d1ad2908032d063ea455..a05c2eb16bc1a7497ea8663ff3eb843d2207f822 100644 --- a/wp-content/plugins/buddypress/bp-activity/bp-activity-filters.php +++ b/wp-content/plugins/buddypress/bp-activity/bp-activity-filters.php @@ -15,7 +15,6 @@ defined( 'ABSPATH' ) || exit; // Apply WordPress defined filters. add_filter( 'bp_get_activity_action', 'bp_activity_filter_kses', 1 ); add_filter( 'bp_get_activity_content_body', 'bp_activity_filter_kses', 1 ); -add_filter( 'bp_get_activity_content', 'bp_activity_filter_kses', 1 ); add_filter( 'bp_get_activity_parent_content', 'bp_activity_filter_kses', 1 ); add_filter( 'bp_get_activity_latest_update', 'bp_activity_filter_kses', 1 ); add_filter( 'bp_get_activity_latest_update_excerpt', 'bp_activity_filter_kses', 1 ); @@ -205,6 +204,14 @@ function bp_activity_check_blacklist_keys( $activity ) { * @return string $content Filtered activity content. */ function bp_activity_filter_kses( $content ) { + $activity_allowedtags = bp_get_allowedtags(); + + // Don't allow 'class' or 'id'. + foreach ( $activity_allowedtags as $el => &$atts ) { + unset( $atts['class'] ); + unset( $atts['id'] ); + } + /** * Filters the allowed HTML tags for BuddyPress Activity content. * @@ -212,7 +219,7 @@ function bp_activity_filter_kses( $content ) { * * @param array $value Array of allowed HTML tags and attributes. */ - $activity_allowedtags = apply_filters( 'bp_activity_allowed_tags', bp_get_allowedtags() ); + $activity_allowedtags = apply_filters( 'bp_activity_allowed_tags', $activity_allowedtags ); return wp_kses( $content, $activity_allowedtags ); } diff --git a/wp-content/plugins/buddypress/bp-groups/bp-groups-activity.php b/wp-content/plugins/buddypress/bp-groups/bp-groups-activity.php index 1d594643a02718532fba4f98d3d4f62c90655811..85d2a8fc8470767e1f65e645beabc0efc3fc5da1 100644 --- a/wp-content/plugins/buddypress/bp-groups/bp-groups-activity.php +++ b/wp-content/plugins/buddypress/bp-groups/bp-groups-activity.php @@ -297,6 +297,119 @@ function bp_groups_filter_activity_scope( $retval = array(), $filter = array() ) } add_filter( 'bp_activity_set_groups_scope_args', 'bp_groups_filter_activity_scope', 10, 2 ); +/** + * Enforces group membership restrictions on activity favorite queries. + * + * @since 4.3.0 + + * @param array $retval Query arguments. + * @param array $filter + * @return array + */ +function bp_groups_filter_activity_favorites_scope( $retval, $filter ) { + // Only process for viewers looking at their own favorites feed. + if ( ! empty( $filter['user_id'] ) ) { + $user_id = (int) $filter['user_id']; + } else { + $user_id = bp_displayed_user_id() ? bp_displayed_user_id() : bp_loggedin_user_id(); + } + + if ( ! $user_id || ! is_user_logged_in() || $user_id !== bp_loggedin_user_id() ) { + return $retval; + } + + $favs = bp_activity_get_user_favorites( $user_id ); + if ( empty( $favs ) ) { + return $retval; + } + + $user_groups = bp_get_user_groups( + $user_id, + array( + 'is_admin' => null, + 'is_mod' => null, + ) + ); + + $retval = array( + 'relation' => 'OR', + + // Allow hidden items for items unconnected to groups. + 'non_groups' => array( + 'relation' => 'AND', + array( + 'column' => 'component', + 'compare' => '!=', + 'value' => buddypress()->groups->id, + ), + array( + 'column' => 'hide_sitewide', + 'compare' => 'IN', + 'value' => array( 1, 0 ), + ), + array( + 'column' => 'id', + 'compare' => 'IN', + 'value' => $favs, + ), + ), + + // Trust the favorites list for group items that are not hidden sitewide. + 'non_hidden_groups' => array( + 'relation' => 'AND', + array( + 'column' => 'component', + 'compare' => '=', + 'value' => buddypress()->groups->id, + ), + array( + 'column' => 'hide_sitewide', + 'compare' => '=', + 'value' => 0, + ), + array( + 'column' => 'id', + 'compare' => 'IN', + 'value' => $favs, + ), + ), + + // For hidden group items, limit to those in the user's groups. + 'hidden_groups' => array( + 'relation' => 'AND', + array( + 'column' => 'component', + 'compare' => '=', + 'value' => buddypress()->groups->id, + ), + array( + 'column' => 'hide_sitewide', + 'compare' => '=', + 'value' => 1, + ), + array( + 'column' => 'id', + 'compare' => 'IN', + 'value' => $favs, + ), + array( + 'column' => 'item_id', + 'compare' => 'IN', + 'value' => wp_list_pluck( $user_groups, 'group_id' ), + ), + ), + + 'override' => array( + 'display_comments' => true, + 'filter' => array( 'user_id' => 0 ), + 'show_hidden' => true, + ), + ); + + return $retval; +} +add_filter( 'bp_activity_set_favorites_scope_args', 'bp_groups_filter_activity_favorites_scope', 20, 2 ); + /** * Record an activity item related to the Groups component. * diff --git a/wp-content/plugins/buddypress/bp-groups/screens/single/admin/edit-details.php b/wp-content/plugins/buddypress/bp-groups/screens/single/admin/edit-details.php index ab539483cc98481bbd66bb91294fb3dd45d30f70..27f180c8807833225167f6ad998c4d472d7ba1f8 100644 --- a/wp-content/plugins/buddypress/bp-groups/screens/single/admin/edit-details.php +++ b/wp-content/plugins/buddypress/bp-groups/screens/single/admin/edit-details.php @@ -33,7 +33,7 @@ function groups_screen_group_admin_edit_details() { if ( empty( $_POST['group-name'] ) || empty( $_POST['group-desc'] ) ) { bp_core_add_message( __( 'Groups must have a name and a description. Please try again.', 'buddypress' ), 'error' ); } elseif ( ! groups_edit_base_group_details( array( - 'group_id' => $_POST['group-id'], + 'group_id' => bp_get_current_group_id(), 'name' => $_POST['group-name'], 'slug' => null, // @TODO: Add to settings pane? If yes, editable by site admin only, or allow group admins to do this? 'description' => $_POST['group-desc'], diff --git a/wp-content/plugins/buddypress/bp-groups/screens/single/admin/group-settings.php b/wp-content/plugins/buddypress/bp-groups/screens/single/admin/group-settings.php index 4adf43af50ca59c9561157811b7b5eb146391773..d3ce4ffdb4f8a45de61cd5efe6f4bb796d8b25e8 100644 --- a/wp-content/plugins/buddypress/bp-groups/screens/single/admin/group-settings.php +++ b/wp-content/plugins/buddypress/bp-groups/screens/single/admin/group-settings.php @@ -40,18 +40,20 @@ function groups_screen_group_admin_settings() { if ( !check_admin_referer( 'groups_edit_group_settings' ) ) return false; + $group_id = bp_get_current_group_id(); + /* * Save group types. * * Ensure we keep types that have 'show_in_create_screen' set to false. */ - $current_types = bp_groups_get_group_type( bp_get_current_group_id(), false ); + $current_types = bp_groups_get_group_type( $group_id, false ); $current_types = array_intersect( bp_groups_get_group_types( array( 'show_in_create_screen' => false ) ), (array) $current_types ); if ( isset( $_POST['group-types'] ) ) { $current_types = array_merge( $current_types, $_POST['group-types'] ); // Set group types. - bp_groups_set_group_type( bp_get_current_group_id(), $current_types ); + bp_groups_set_group_type( $group_id, $current_types ); // No group types checked, so this means we want to wipe out all group types. } else { @@ -63,10 +65,10 @@ function groups_screen_group_admin_settings() { $current_types = empty( $current_types ) ? '' : $current_types; // Set group types. - bp_groups_set_group_type( bp_get_current_group_id(), $current_types ); + bp_groups_set_group_type( $group_id, $current_types ); } - if ( !groups_edit_group_settings( $_POST['group-id'], $enable_forum, $status, $invite_status ) ) { + if ( ! groups_edit_group_settings( $group_id, $enable_forum, $status, $invite_status ) ) { bp_core_add_message( __( 'There was an error updating group settings. Please try again.', 'buddypress' ), 'error' ); } else { bp_core_add_message( __( 'Group settings were successfully updated.', 'buddypress' ) ); diff --git a/wp-content/plugins/buddypress/bp-loader.php b/wp-content/plugins/buddypress/bp-loader.php index f7704c8b64759f1d3afe4ced897b12b750af661a..9bc6a745fb94e9ab1d5098f91a282f2bab3193b6 100644 --- a/wp-content/plugins/buddypress/bp-loader.php +++ b/wp-content/plugins/buddypress/bp-loader.php @@ -15,7 +15,7 @@ * Description: BuddyPress adds community features to WordPress. Member Profiles, Activity Streams, Direct Messaging, Notifications, and more! * Author: The BuddyPress Community * Author URI: https://buddypress.org/ - * Version: 4.2.0 + * Version: 4.3.0 * Text Domain: buddypress * Domain Path: /bp-languages/ * License: GPLv2 or later (license.txt) diff --git a/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress-functions.php b/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress-functions.php index d8595dcb0940e9c8fd00b59b00a4a4a0f77771b7..722c41d379716cff31365b69b08599c09f97971c 100644 --- a/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress-functions.php +++ b/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress-functions.php @@ -1056,8 +1056,14 @@ function bp_legacy_theme_new_activity_comment() { exit( '-1<div id="message" class="error bp-ajax-message"><p>' . esc_html( $feedback ) . '</p></div>' ); } + $activity_id = (int) $_POST['form_id']; + $activity_item = new BP_Activity_Activity( $activity_id ); + if ( ! bp_activity_user_can_read( $activity_item ) ) { + exit( '-1<div id="message" class="error bp-ajax-message"><p>' . esc_html( $feedback ) . '</p></div>' ); + } + $comment_id = bp_activity_new_comment( array( - 'activity_id' => $_POST['form_id'], + 'activity_id' => $activity_id, 'content' => $_POST['content'], 'parent_id' => $_POST['comment_id'], 'error_type' => 'wp_error' @@ -1242,6 +1248,12 @@ function bp_legacy_theme_mark_activity_favorite() { return; } + $activity_id = (int) $_POST['id']; + $activity_item = new BP_Activity_Activity( $activity_id ); + if ( ! bp_activity_user_can_read( $activity_item, bp_loggedin_user_id() ) ) { + return; + } + if ( bp_activity_add_user_favorite( $_POST['id'] ) ) _e( 'Remove Favorite', 'buddypress' ); else diff --git a/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/groups/create.php b/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/groups/create.php index 3a662309f918288f299b935b62dd09eb6eb04250..cb85eeb7105a4e05bcf6c45f23ec62e585bb5ad6 100644 --- a/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/groups/create.php +++ b/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/groups/create.php @@ -73,7 +73,7 @@ do_action( 'bp_before_create_group_page' ); ?> <div> <label for="group-name"><?php _e( 'Group Name (required)', 'buddypress' ); ?></label> - <input type="text" name="group-name" id="group-name" aria-required="true" value="<?php bp_new_group_name(); ?>" /> + <input type="text" name="group-name" id="group-name" aria-required="true" value="<?php echo esc_attr( bp_get_new_group_name() ); ?>" /> </div> <div> diff --git a/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/groups/single/admin/edit-details.php b/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/groups/single/admin/edit-details.php index bd89c4c29d481648ecf441336908e2a492fdd064..23854d62d0c106e23b9ccb868daa245f854c6abd 100644 --- a/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/groups/single/admin/edit-details.php +++ b/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/groups/single/admin/edit-details.php @@ -21,7 +21,7 @@ do_action( 'bp_before_group_details_admin' ); ?> <label for="group-name"><?php _e( 'Group Name (required)', 'buddypress' ); ?></label> -<input type="text" name="group-name" id="group-name" value="<?php bp_group_name(); ?>" aria-required="true" /> +<input type="text" name="group-name" id="group-name" value="<?php echo esc_attr( bp_get_group_name() ); ?>" aria-required="true" /> <label for="group-desc"><?php _e( 'Group Description (required)', 'buddypress' ); ?></label> <textarea name="group-desc" id="group-desc" aria-required="true"><?php bp_group_description_editable(); ?></textarea> diff --git a/wp-content/plugins/buddypress/bp-templates/bp-legacy/js/buddypress.js b/wp-content/plugins/buddypress/bp-templates/bp-legacy/js/buddypress.js index 06a88359081e76df63c51e3ca20bd0946784841c..67338ed075d5ef30144a57dbcf8ec6e319e5bd19 100644 --- a/wp-content/plugins/buddypress/bp-templates/bp-legacy/js/buddypress.js +++ b/wp-content/plugins/buddypress/bp-templates/bp-legacy/js/buddypress.js @@ -1869,7 +1869,7 @@ function bp_filter_request( object, filter, scope, target, search_terms, page, e // Get directory preferences (called "cookie" for legacy reasons). var cookies = {}; cookies['bp-' + object + '-filter'] = bp_get_directory_preference( object, 'filter' ); - cookies['bp' + object + '-scope'] = bp_get_directory_preference( object, 'scope' ); + cookies['bp-' + object + '-scope'] = bp_get_directory_preference( object, 'scope' ); var cookie = encodeURIComponent( jq.param( cookies ) ); diff --git a/wp-content/plugins/buddypress/bp-templates/bp-legacy/js/buddypress.min.js b/wp-content/plugins/buddypress/bp-templates/bp-legacy/js/buddypress.min.js index dfc650cb80046cf2bcfd1682da1226dac1a346d8..0ca39c071ad341317393fa860f3cfb47ac645994 100644 --- a/wp-content/plugins/buddypress/bp-templates/bp-legacy/js/buddypress.min.js +++ b/wp-content/plugins/buddypress/bp-templates/bp-legacy/js/buddypress.min.js @@ -1 +1 @@ -function bp_get_directory_preference(e,t){var i={filter:"",scope:"",extras:""};if(!directoryPreferences.hasOwnProperty(e)){var a={};for(var s in i)i.hasOwnProperty(s)&&(a[s]=i[s]);directoryPreferences[e]=a}return BP_DTheme.store_filter_settings&&(directoryPreferences[e][t]=jq.cookie("bp-"+e+"-"+t)),directoryPreferences[e][t]}function bp_set_directory_preference(e,t,i){var a={filter:"",scope:"",extras:""};if(!directoryPreferences.hasOwnProperty(e)){var s={};for(var r in a)a.hasOwnProperty(r)&&(s[r]=a[r]);directoryPreferences[e]=s}BP_DTheme.store_filter_settings&&jq.cookie("bp-"+e+"-"+t,i,{path:"/",secure:"https:"===window.location.protocol}),directoryPreferences[e][t]=i}function bp_init_activity(){var e=bp_get_directory_preference("activity","scope"),t=bp_get_directory_preference("activity","filter");void 0!==t&&jq("#activity-filter-select").length&&jq('#activity-filter-select select option[value="'+t+'"]').prop("selected",!0),void 0!==e&&jq(".activity-type-tabs").length&&(jq(".activity-type-tabs li").each(function(){jq(this).removeClass("selected")}),jq("#activity-"+e+", .item-list-tabs li.current").addClass("selected"))}function bp_init_objects(e){jq(e).each(function(t){var i=bp_get_directory_preference(e[t],"scope"),a=bp_get_directory_preference(e[t],"filter");void 0!==a&&jq("#"+e[t]+"-order-select select").length&&jq("#"+e[t]+'-order-select select option[value="'+a+'"]').prop("selected",!0),void 0!==i&&jq("div."+e[t]).length&&(jq(".item-list-tabs li").each(function(){jq(this).removeClass("selected")}),jq("#"+e[t]+"-"+i+", #object-nav li.current").addClass("selected"))})}function bp_filter_request(e,t,i,a,s,r,n,o,c){if("activity"===e)return!1;null===i&&(i="all"),bp_set_directory_preference(e,"scope",i),bp_set_directory_preference(e,"filter",t),bp_set_directory_preference(e,"extras",n),jq(".item-list-tabs li").each(function(){jq(this).removeClass("selected")}),jq("#"+e+"-"+i+", #object-nav li.current").addClass("selected"),jq(".item-list-tabs li.selected").addClass("loading"),jq('.item-list-tabs select option[value="'+t+'"]').prop("selected",!0),"friends"!==e&&"group_members"!==e||(e="members"),bp_ajax_request&&bp_ajax_request.abort();var l={};l["bp-"+e+"-filter"]=bp_get_directory_preference(e,"filter"),l["bp"+e+"-scope"]=bp_get_directory_preference(e,"scope");var d=encodeURIComponent(jq.param(l));bp_ajax_request=jq.post(ajaxurl,{action:e+"_filter",cookie:d,object:e,filter:t,search_terms:s,scope:i,page:r,extras:n,template:c},function(e){if("pag-bottom"===o&&jq("#subnav").length){var t=jq("#subnav").parent();jq("html,body").animate({scrollTop:t.offset().top},"slow",function(){jq(a).fadeOut(100,function(){jq(this).html(e),jq(this).fadeIn(100)})})}else jq(a).fadeOut(100,function(){jq(this).html(e),jq(this).fadeIn(100)});jq(".item-list-tabs li.selected").removeClass("loading")})}function bp_activity_request(e,t){bp_set_directory_preference("activity","scope",e),bp_set_directory_preference("activity","filter",t),jq(".item-list-tabs li").each(function(){jq(this).removeClass("selected loading")}),jq("#activity-"+e+", .item-list-tabs li.current").addClass("selected"),jq("#object-nav.item-list-tabs li.selected, div.activity-type-tabs li.selected").addClass("loading"),jq('#activity-filter-select select option[value="'+t+'"]').prop("selected",!0),jq(".widget_bp_activity_widget h2 span.ajax-loader").show(),bp_ajax_request&&bp_ajax_request.abort();var i={"bp-activity-filter":bp_get_directory_preference("activity","filter"),"bp-activity-scope":bp_get_directory_preference("activity","scope")},a=encodeURIComponent(jq.param(i));bp_ajax_request=jq.post(ajaxurl,{action:"activity_widget_filter",cookie:a,_wpnonce_activity_filter:jq("#_wpnonce_activity_filter").val(),scope:e,filter:t},function(e){jq(".widget_bp_activity_widget h2 span.ajax-loader").hide(),jq("div.activity").fadeOut(100,function(){jq(this).html(e.contents),jq(this).fadeIn(100),bp_legacy_theme_hide_comments()}),void 0!==e.feed_url&&jq(".directory #subnav li.feed a, .home-page #subnav li.feed a").attr("href",e.feed_url),jq(".item-list-tabs li.selected").removeClass("loading")},"json")}function bp_legacy_theme_hide_comments(){var e,t,i,a=jq("div.activity-comments");if(!a.length)return!1;a.each(function(){jq(this).children("ul").children("li").length<5||(comments_div=jq(this),e=comments_div.parents("#activity-stream > li"),t=jq(this).children("ul").children("li"),i=" ",jq("#"+e.attr("id")+" li").length&&(i=jq("#"+e.attr("id")+" li").length),t.each(function(a){a<t.length-5&&(jq(this).hide(),a||jq(this).before('<li class="show-all"><a href="#'+e.attr("id")+'/show-all/">'+BP_DTheme.show_x_comments.replace("%d",i)+"</a></li>"))}))})}function checkAll(){var e,t=document.getElementsByTagName("input");for(e=0;e<t.length;e++)"checkbox"===t[e].type&&(""===$("check_all").checked?t[e].checked="":t[e].checked="checked")}function clear(e){if(e=document.getElementById(e)){var t=e.getElementsByTagName("INPUT"),i=e.getElementsByTagName("OPTION"),a=0;if(t)for(a=0;a<t.length;a++)t[a].checked="";if(i)for(a=0;a<i.length;a++)i[a].selected=!1}}function bp_get_cookies(){var e,t,i,a,s,r=document.cookie.split(";"),n={};for(e=0;e<r.length;e++)i=(t=r[e]).indexOf("="),a=jq.trim(unescape(t.slice(0,i))),s=unescape(t.slice(i+1)),0===a.indexOf("bp-")&&(n[a]=s);return encodeURIComponent(jq.param(n))}function bp_get_query_var(e,t){var i={};return(t=void 0===t?location.search.substr(1).split("&"):t.split("?")[1].split("&")).forEach(function(e){i[e.split("=")[0]]=e.split("=")[1]&&decodeURIComponent(e.split("=")[1])}),!(!i.hasOwnProperty(e)||null==i[e])&&i[e]}var jq=jQuery,bp_ajax_request=null,newest_activities="",activity_last_recorded=0,directoryPreferences={};jq(document).ready(function(){var e=1;bp_init_activity();var t=["members","groups","blogs","group_members"],i=jq("#whats-new");if(bp_init_objects(t),i.length&&bp_get_querystring("r")){var a=i.val();jq("#whats-new-options").slideDown(),i.animate({height:"3.8em"}),jq.scrollTo(i,500,{offset:-125,easing:"swing"}),i.val("").focus().val(a)}else jq("#whats-new-options").hide();if(i.focus(function(){jq("#whats-new-options").slideDown(),jq(this).animate({height:"3.8em"}),jq("#aw-whats-new-submit").prop("disabled",!1),jq(this).parent().addClass("active"),jq("#whats-new-content").addClass("active");var e=jq("form#whats-new-form"),t=jq("#activity-all");e.hasClass("submitted")&&e.removeClass("submitted"),t.length&&(t.hasClass("selected")?"-1"!==jq("#activity-filter-select select").val()&&(jq("#activity-filter-select select").val("-1"),jq("#activity-filter-select select").trigger("change")):(jq("#activity-filter-select select").val("-1"),t.children("a").trigger("click")))}),jq("#whats-new-form").on("focusout",function(e){var t=jq(this);setTimeout(function(){if(!t.find(":hover").length){if(""!==i.val())return;i.animate({height:"2.2em"}),jq("#whats-new-options").slideUp(),jq("#aw-whats-new-submit").prop("disabled",!0),jq("#whats-new-content").removeClass("active"),i.parent().removeClass("active")}},0)}),jq("#aw-whats-new-submit").on("click",function(){var e,t=0,i=jq(this),a=i.closest("form#whats-new-form"),s={};return jq.each(a.serializeArray(),function(e,t){"_"!==t.name.substr(0,1)&&"whats-new"!==t.name.substr(0,9)&&(s[t.name]?jq.isArray(s[t.name])?s[t.name].push(t.value):s[t.name]=new Array(s[t.name],t.value):s[t.name]=t.value)}),a.find("*").each(function(){(jq.nodeName(this,"textarea")||jq.nodeName(this,"input"))&&jq(this).prop("disabled",!0)}),jq("div.error").remove(),i.addClass("loading"),i.prop("disabled",!0),a.addClass("submitted"),object="",item_id=jq("#whats-new-post-in").val(),content=jq("#whats-new").val(),firstrow=jq("#buddypress ul.activity-list li").first(),activity_row=firstrow,timestamp=null,firstrow.length&&(activity_row.hasClass("load-newest")&&(activity_row=firstrow.next()),timestamp=activity_row.prop("class").match(/date-recorded-([0-9]+)/)),timestamp&&(t=timestamp[1]),item_id>0&&(object=jq("#whats-new-post-object").val()),e=jq.extend({action:"post_update",cookie:bp_get_cookies(),_wpnonce_post_update:jq("#_wpnonce_post_update").val(),content:content,object:object,item_id:item_id,since:t,_bp_as_nonce:jq("#_bp_as_nonce").val()||""},s),jq.post(ajaxurl,e,function(e){if(a.find("*").each(function(){(jq.nodeName(this,"textarea")||jq.nodeName(this,"input"))&&jq(this).prop("disabled",!1)}),e[0]+e[1]==="-1")a.prepend(e.substr(2,e.length)),jq("#"+a.attr("id")+" div.error").hide().fadeIn(200);else{if(0===jq("ul.activity-list").length&&(jq("div.error").slideUp(100).remove(),jq("#message").slideUp(100).remove(),jq("div.activity").append('<ul id="activity-stream" class="activity-list item-list">')),firstrow.hasClass("load-newest")&&firstrow.remove(),jq("#activity-stream").prepend(e),t||jq("#activity-stream li:first").addClass("new-update just-posted"),0!==jq("#latest-update").length){var i=jq("#activity-stream li.new-update .activity-content .activity-inner p").html(),s=jq("#activity-stream li.new-update .activity-content .activity-header p a.view").attr("href"),r="";""!==jq("#activity-stream li.new-update .activity-content .activity-inner p").text()&&(r=i+" "),r+='<a href="'+s+'" rel="nofollow">'+BP_DTheme.view+"</a>",jq("#latest-update").slideUp(300,function(){jq("#latest-update").html(r),jq("#latest-update").slideDown(300)})}jq("li.new-update").hide().slideDown(300),jq("li.new-update").removeClass("new-update"),jq("#whats-new").val(""),a.get(0).reset(),newest_activities="",activity_last_recorded=0}jq("#whats-new-options").slideUp(),jq("#whats-new-form textarea").animate({height:"2.2em"}),jq("#aw-whats-new-submit").prop("disabled",!0).removeClass("loading"),jq("#whats-new-content").removeClass("active")}),!1}),jq("div.activity-type-tabs").on("click",function(e){var t,i,a=jq(e.target).parent();if("STRONG"===e.target.nodeName||"SPAN"===e.target.nodeName)a=a.parent();else if("A"!==e.target.nodeName)return!1;return t=a.attr("id").substr(9,a.attr("id").length),i=jq("#activity-filter-select select").val(),"mentions"===t&&jq("#"+a.attr("id")+" a strong").remove(),bp_activity_request(t,i),!1}),jq("#activity-filter-select select").change(function(){var e,t=jq("div.activity-type-tabs li.selected"),i=jq(this).val();return e=t.length?t.attr("id").substr(9,t.attr("id").length):null,bp_activity_request(e,i),!1}),jq("div.activity").on("click",function(t){var i,a,s,r,n,o,c,l,d,p,u=jq(t.target);return u.hasClass("fav")||u.hasClass("unfav")?!u.hasClass("loading")&&(i=u.hasClass("fav")?"fav":"unfav",a=u.closest(".activity-item"),s=a.attr("id").substr(9,a.attr("id").length),c=bp_get_query_var("_wpnonce",u.attr("href")),u.addClass("loading"),jq.post(ajaxurl,{action:"activity_mark_"+i,cookie:bp_get_cookies(),id:s,nonce:c},function(e){u.removeClass("loading"),u.fadeOut(200,function(){jq(this).html(e),jq(this).attr("title","fav"===i?BP_DTheme.remove_fav:BP_DTheme.mark_as_fav),jq(this).fadeIn(200)}),"fav"===i?(jq(".item-list-tabs #activity-favs-personal-li").length||(jq(".item-list-tabs #activity-favorites").length||jq(".item-list-tabs ul #activity-mentions").before('<li id="activity-favorites"><a href="#">'+BP_DTheme.my_favs+" <span>0</span></a></li>"),jq(".item-list-tabs ul #activity-favorites span").html(Number(jq(".item-list-tabs ul #activity-favorites span").html())+1)),u.removeClass("fav"),u.addClass("unfav")):(u.removeClass("unfav"),u.addClass("fav"),jq(".item-list-tabs ul #activity-favorites span").html(Number(jq(".item-list-tabs ul #activity-favorites span").html())-1),Number(jq(".item-list-tabs ul #activity-favorites span").html())||(jq(".item-list-tabs ul #activity-favorites").hasClass("selected")&&bp_activity_request(null,null),jq(".item-list-tabs ul #activity-favorites").remove())),"activity-favorites"===jq(".item-list-tabs li.selected").attr("id")&&u.closest(".activity-item").slideUp(100)}),!1):u.hasClass("delete-activity")?(r=u.parents("div.activity ul li"),n=r.attr("id").substr(9,r.attr("id").length),o=u.attr("href"),c=o.split("_wpnonce="),l=r.prop("class").match(/date-recorded-([0-9]+)/),c=c[1],u.addClass("loading"),jq.post(ajaxurl,{action:"delete_activity",cookie:bp_get_cookies(),id:n,_wpnonce:c},function(e){e[0]+e[1]==="-1"?(r.prepend(e.substr(2,e.length)),r.children("#message").hide().fadeIn(300)):(r.slideUp(300),l&&activity_last_recorded===l[1]&&(newest_activities="",activity_last_recorded=0))}),!1):u.hasClass("spam-activity")?(r=u.parents("div.activity ul li"),l=r.prop("class").match(/date-recorded-([0-9]+)/),u.addClass("loading"),jq.post(ajaxurl,{action:"bp_spam_activity",cookie:encodeURIComponent(document.cookie),id:r.attr("id").substr(9,r.attr("id").length),_wpnonce:u.attr("href").split("_wpnonce=")[1]},function(e){e[0]+e[1]==="-1"?(r.prepend(e.substr(2,e.length)),r.children("#message").hide().fadeIn(300)):(r.slideUp(300),l&&activity_last_recorded===l[1]&&(newest_activities="",activity_last_recorded=0))}),!1):u.parent().hasClass("load-more")?(bp_ajax_request&&bp_ajax_request.abort(),jq("#buddypress li.load-more").addClass("loading"),d=e+1,p=[],jq(".activity-list li.just-posted").each(function(){p.push(jq(this).attr("id").replace("activity-",""))}),load_more_args={action:"activity_get_older_updates",cookie:bp_get_cookies(),page:d,exclude_just_posted:p.join(",")},load_more_search=bp_get_querystring("s"),load_more_search&&(load_more_args.search_terms=load_more_search),bp_ajax_request=jq.post(ajaxurl,load_more_args,function(t){jq("#buddypress li.load-more").removeClass("loading"),e=d,jq("#buddypress ul.activity-list").append(t.contents),u.parent().hide()},"json"),!1):void(u.parent().hasClass("load-newest")&&(t.preventDefault(),u.parent().hide(),activity_html=jq.parseHTML(newest_activities),jq.each(activity_html,function(e,t){"LI"===t.nodeName&&jq(t).hasClass("just-posted")&&jq("#"+jq(t).attr("id")).length&&jq("#"+jq(t).attr("id")).remove()}),jq("#buddypress ul.activity-list").prepend(newest_activities),newest_activities=""))}),jq("div.activity").on("click",".activity-read-more a",function(e){var t,i,a=jq(e.target),s=a.parent().attr("id").split("-"),r=s[3],n=s[0];return t="acomment"===n?"acomment-content":"activity-inner",i=jq("#"+n+"-"+r+" ."+t+":first"),jq(a).addClass("loading"),jq.post(ajaxurl,{action:"get_single_activity_content",activity_id:r},function(e){jq(i).slideUp(300).html(e).slideDown(300)}),!1}),jq("form.ac-form").hide(),jq(".activity-comments").length&&bp_legacy_theme_hide_comments(),jq("div.activity").on("click",function(e){var t,i,a,s,r,n,o,c,l,d,p,u,m,h,_,v=jq(e.target);return v.hasClass("acomment-reply")||v.parent().hasClass("acomment-reply")?(v.parent().hasClass("acomment-reply")&&(v=v.parent()),t=v.attr("id"),i=t.split("-"),a=i[2],s=v.attr("href").substr(10,v.attr("href").length),(r=jq("#ac-form-"+a)).css("display","none"),r.removeClass("root"),jq(".ac-form").hide(),r.children("div").each(function(){jq(this).hasClass("error")&&jq(this).hide()}),"comment"!==i[1]?jq("#acomment-"+s).append(r):jq("#activity-"+a+" .activity-comments").append(r),r.parent().hasClass("activity-comments")&&r.addClass("root"),r.slideDown(200),jq.scrollTo(r,500,{offset:-100,easing:"swing"}),jq("#ac-form-"+i[2]+" textarea").focus(),!1):"ac_form_submit"===v.attr("name")?(r=v.parents("form"),n=r.parent(),o=r.attr("id").split("-"),c=n.hasClass("activity-comments")?o[2]:n.attr("id").split("-")[1],content=jq("#"+r.attr("id")+" textarea"),jq("#"+r.attr("id")+" div.error").hide(),v.addClass("loading").prop("disabled",!0),content.addClass("loading").prop("disabled",!0),l={action:"new_activity_comment",cookie:bp_get_cookies(),_wpnonce_new_activity_comment:jq("#_wpnonce_new_activity_comment").val(),comment_id:c,form_id:o[2],content:content.val()},(d=jq("#_bp_as_nonce_"+c).val())&&(l["_bp_as_nonce_"+c]=d),jq.post(ajaxurl,l,function(e){if(v.removeClass("loading"),content.removeClass("loading"),e[0]+e[1]==="-1")r.append(jq(e.substr(2,e.length)).hide().fadeIn(200));else{var t=r.parent();r.fadeOut(200,function(){0===t.children("ul").length&&(t.hasClass("activity-comments")?t.prepend("<ul></ul>"):t.append("<ul></ul>"));var i=jq.trim(e);t.children("ul").append(jq(i).hide().fadeIn(200)),r.children("textarea").val(""),t.parent().addClass("has-comments")}),jq("#"+r.attr("id")+" textarea").val(""),u=Number(jq("#activity-"+o[2]+" a.acomment-reply span").html())+1,jq("#activity-"+o[2]+" a.acomment-reply span").html(u),(p=t.parents(".activity-comments").find(".show-all a"))&&p.html(BP_DTheme.show_x_comments.replace("%d",u))}jq(v).prop("disabled",!1),jq(content).prop("disabled",!1)}),!1):v.hasClass("acomment-delete")?(m=v.attr("href"),h=v.parent().parent(),r=h.parents("div.activity-comments").children("form"),_=m.split("_wpnonce="),_=_[1],c=m.split("cid="),c=c[1].split("&"),c=c[0],v.addClass("loading"),jq(".activity-comments ul .error").remove(),h.parents(".activity-comments").append(r),jq.post(ajaxurl,{action:"delete_activity_comment",cookie:bp_get_cookies(),_wpnonce:_,id:c},function(e){if(e[0]+e[1]==="-1")h.prepend(jq(e.substr(2,e.length)).hide().fadeIn(200));else{var t,i,a,s=jq("#"+h.attr("id")+" ul").children("li"),r=0;jq(s).each(function(){jq(this).is(":hidden")||r++}),h.fadeOut(200,function(){h.remove()}),i=(t=jq("#"+h.parents("#activity-stream > li").attr("id")+" a.acomment-reply span")).html()-(1+r),t.html(i),(a=h.parents(".activity-comments").find(".show-all a"))&&a.html(BP_DTheme.show_x_comments.replace("%d",i)),0===i&&jq(h.parents("#activity-stream > li")).removeClass("has-comments")}}),!1):v.hasClass("spam-activity-comment")?(m=v.attr("href"),h=v.parent().parent(),v.addClass("loading"),jq(".activity-comments ul div.error").remove(),h.parents(".activity-comments").append(h.parents(".activity-comments").children("form")),jq.post(ajaxurl,{action:"bp_spam_activity_comment",cookie:encodeURIComponent(document.cookie),_wpnonce:m.split("_wpnonce=")[1],id:m.split("cid=")[1].split("&")[0]},function(e){if(e[0]+e[1]==="-1")h.prepend(jq(e.substr(2,e.length)).hide().fadeIn(200));else{var t,i=jq("#"+h.attr("id")+" ul").children("li"),a=0;jq(i).each(function(){jq(this).is(":hidden")||a++}),h.fadeOut(200),t=h.parents("#activity-stream > li"),jq("#"+t.attr("id")+" a.acomment-reply span").html(jq("#"+t.attr("id")+" a.acomment-reply span").html()-(1+a))}}),!1):v.parent().hasClass("show-all")?(v.parent().addClass("loading"),setTimeout(function(){v.parent().parent().children("li").fadeIn(200,function(){v.parent().remove()})},600),!1):v.hasClass("ac-reply-cancel")?(jq(v).closest(".ac-form").slideUp(200),!1):void 0}),jq(document).keydown(function(e){(e=e||window.event).target?element=e.target:e.srcElement&&(element=e.srcElement),3===element.nodeType&&(element=element.parentNode),!0!==e.ctrlKey&&!0!==e.altKey&&!0!==e.metaKey&&27===(e.keyCode?e.keyCode:e.which)&&"TEXTAREA"===element.tagName&&jq(element).hasClass("ac-input")&&jq(element).parent().parent().parent().slideUp(200)}),jq(".dir-search, .groups-members-search").on("click",function(e){if(!jq(this).hasClass("no-ajax")){var t,i,a,s=jq(e.target);if("submit"===s.attr("type")){t=jq(".item-list-tabs li.selected").attr("id").split("-")[0],i=null,a=s.parent().find("#"+t+"_search").val(),"groups-members-search"===e.currentTarget.className&&(t="group_members",i="groups/single/members");var r=bp_get_directory_preference(t,"scope");return bp_filter_request(t,bp_get_directory_preference(t,"filter"),r,"div."+t,a,1,bp_get_directory_preference(t,"extras"),null,i),!1}}}),jq("div.item-list-tabs").on("click",function(e){if(jq("body").hasClass("type")&&jq("body").hasClass("directory")&&jq(this).addClass("no-ajax"),!jq(this).hasClass("no-ajax")&&!jq(e.target).hasClass("no-ajax")){var t,i,a,s="SPAN"===e.target.nodeName?e.target.parentNode:e.target,r=jq(s).parent();return"LI"!==r[0].nodeName||r.hasClass("last")?void 0:(t=r.attr("id").split("-"),"activity"!==(i=t[0])&&(a=t[1],bp_filter_request(i,jq("#"+i+"-order-select select").val(),a,"div."+i,jq("#"+i+"_search").val(),1,bp_get_directory_preference(i,"extras")),!1))}}),jq("li.filter select").change(function(){var e,t,i,a,s,r,n;return t=(e=jq(jq(".item-list-tabs li.selected").length?".item-list-tabs li.selected":this).attr("id").split("-"))[0],i=e[1],a=jq(this).val(),s=!1,r=null,jq(".dir-search input").length&&(s=jq(".dir-search input").val()),(n=jq(".groups-members-search input")).length&&(s=n.val(),t="members",i="groups"),"members"===t&&"groups"===i&&(t="group_members",r="groups/single/members"),"friends"===t&&(t="members"),bp_filter_request(t,a,i,"div."+t,s,1,bp_get_directory_preference(t,"extras"),null,r),!1}),jq("#buddypress").on("click",function(e){var t,i,a,s,r,n,o,c,l=jq(e.target);if(l.hasClass("button"))return!0;if(l.parent().parent().hasClass("pagination")&&!l.parent().parent().hasClass("no-ajax")){if(l.hasClass("dots")||l.hasClass("current"))return!1;i=(t=jq(jq(".item-list-tabs li.selected").length?".item-list-tabs li.selected":"li.filter select").attr("id").split("-"))[0],a=!1,s=jq(l).closest(".pagination-links").attr("id"),r=null,jq("div.dir-search input").length&&(a=!(a=jq(".dir-search input")).val()&&bp_get_querystring(a.attr("name"))?jq(".dir-search input").prop("placeholder"):a.val()),n=jq(l).hasClass("next")||jq(l).hasClass("prev")?jq(".pagination span.current").html():jq(l).html(),n=Number(n.replace(/\D/g,"")),jq(l).hasClass("next")?n++:jq(l).hasClass("prev")&&n--,(o=jq(".groups-members-search input")).length&&(a=o.val(),i="members"),"members"===i&&"groups"===t[1]&&(i="group_members",r="groups/single/members"),"admin"===i&&jq("body").hasClass("membership-requests")&&(i="requests"),c=-1!==s.indexOf("pag-bottom")?"pag-bottom":null;var d=bp_get_directory_preference(i,"scope");return bp_filter_request(i,bp_get_directory_preference(i,"filter"),d,"div."+i,a,n,bp_get_directory_preference(i,"extras"),c,r),!1}}),jq("#send-invite-form").on("click","#invite-list input",function(){var e,t,i=jq("#send-invite-form > .invite").length;jq(".ajax-loader").toggle(),i&&jq(this).parents("ul").find("input").prop("disabled",!0),e=jq(this).val(),t=!0===jq(this).prop("checked")?"invite":"uninvite",i||jq(".item-list-tabs li.selected").addClass("loading"),jq.post(ajaxurl,{action:"groups_invite_user",friend_action:t,cookie:bp_get_cookies(),_wpnonce:jq("#_wpnonce_invite_uninvite_user").val(),friend_id:e,group_id:jq("#group_id").val()},function(a){jq("#message")&&jq("#message").hide(),i?bp_filter_request("invite","bp-invite-filter","bp-invite-scope","div.invite",!1,1,"","",""):(jq(".ajax-loader").toggle(),"invite"===t?jq("#friend-list").append(a):"uninvite"===t&&jq("#friend-list li#uid-"+e).remove(),jq(".item-list-tabs li.selected").removeClass("loading"))})}),jq("#send-invite-form").on("click","a.remove",function(){var e=jq("#send-invite-form > .invite").length,t=jq(this).attr("id");return jq(".ajax-loader").toggle(),t=t.split("-"),t=t[1],jq.post(ajaxurl,{action:"groups_invite_user",friend_action:"uninvite",cookie:bp_get_cookies(),_wpnonce:jq("#_wpnonce_invite_uninvite_user").val(),friend_id:t,group_id:jq("#group_id").val()},function(i){e?bp_filter_request("invite","bp-invite-filter","bp-invite-scope","div.invite",!1,1,"","",""):(jq(".ajax-loader").toggle(),jq("#friend-list #uid-"+t).remove(),jq("#invite-list #f-"+t).prop("checked",!1))}),!1}),jq(".visibility-toggle-link").on("click",function(e){e.preventDefault(),jq(this).attr("aria-expanded","true").parent().hide().addClass("field-visibility-settings-hide").siblings(".field-visibility-settings").show().addClass("field-visibility-settings-open")}),jq(".field-visibility-settings-close").on("click",function(e){e.preventDefault(),jq(".visibility-toggle-link").attr("aria-expanded","false");var t=jq(this).parent(),i=t.find("input:checked").parent().text();t.hide().removeClass("field-visibility-settings-open").siblings(".field-visibility-settings-toggle").children(".current-visibility-level").text(i).end().show().removeClass("field-visibility-settings-hide")}),jq("#profile-edit-form input:not(:submit), #profile-edit-form textarea, #profile-edit-form select, #signup_form input:not(:submit), #signup_form textarea, #signup_form select").change(function(){var e=!0;jq("#profile-edit-form input:submit, #signup_form input:submit").on("click",function(){e=!1}),window.onbeforeunload=function(t){if(e)return BP_DTheme.unsaved_changes}}),jq("#friend-list a.accept, #friend-list a.reject").on("click",function(){var e,t=jq(this),i=jq(this).parents("#friend-list li"),a=jq(this).parents("li div.action"),s=i.attr("id").substr(11,i.attr("id").length),r=t.attr("href").split("_wpnonce=")[1];return!jq(this).hasClass("accepted")&&!jq(this).hasClass("rejected")&&(jq(this).hasClass("accept")?(e="accept_friendship",a.children("a.reject").css("visibility","hidden")):(e="reject_friendship",a.children("a.accept").css("visibility","hidden")),t.addClass("loading"),jq.post(ajaxurl,{action:e,cookie:bp_get_cookies(),id:s,_wpnonce:r},function(e){t.removeClass("loading"),e[0]+e[1]==="-1"?(i.prepend(e.substr(2,e.length)),i.children("#message").hide().fadeIn(200)):t.fadeOut(100,function(){jq(this).hasClass("accept")?(a.children("a.reject").hide(),jq(this).html(BP_DTheme.accepted).contents().unwrap()):(a.children("a.accept").hide(),jq(this).html(BP_DTheme.rejected).contents().unwrap())})}),!1)}),jq("#members-dir-list, #members-group-list, #item-header").on("click",".friendship-button a",function(){jq(this).parent().addClass("loading");var e=jq(this).attr("id"),t=jq(this).attr("href"),i=jq(this);return e=e.split("-"),e=e[1],t=t.split("?_wpnonce="),t=t[1].split("&"),t=t[0],jq.post(ajaxurl,{action:"addremove_friend",cookie:bp_get_cookies(),fid:e,_wpnonce:t},function(e){var t=i.attr("rel");parentdiv=i.parent(),"add"===t?jq(parentdiv).fadeOut(200,function(){parentdiv.removeClass("add_friend"),parentdiv.removeClass("loading"),parentdiv.addClass("pending_friend"),parentdiv.fadeIn(200).html(e)}):"remove"===t&&jq(parentdiv).fadeOut(200,function(){parentdiv.removeClass("remove_friend"),parentdiv.removeClass("loading"),parentdiv.addClass("add"),parentdiv.fadeIn(200).html(e)})}),!1}),jq("#buddypress").on("click",".group-button .leave-group",function(){if(!1===confirm(BP_DTheme.leave_group_confirm))return!1}),jq("#groups-dir-list").on("click",".group-button a",function(){var e=jq(this).parent().attr("id"),t=jq(this).attr("href"),i=jq(this);return e=e.split("-"),e=e[1],t=t.split("?_wpnonce="),t=t[1].split("&"),t=t[0],(!i.hasClass("leave-group")||!1!==confirm(BP_DTheme.leave_group_confirm))&&(jq.post(ajaxurl,{action:"joinleave_group",cookie:bp_get_cookies(),gid:e,_wpnonce:t},function(e){var t=i.parent();jq("body.directory").length?jq(t).fadeOut(200,function(){t.fadeIn(200).html(e);var a=jq("#groups-personal span"),s=1;i.hasClass("leave-group")?(t.hasClass("hidden")&&t.closest("li").slideUp(200),s=0):i.hasClass("request-membership")&&(s=!1),a.length&&!1!==s&&(s?a.text(1+(a.text()>>0)):a.text((a.text()>>0)-1))}):window.location.reload()}),!1)}),jq("#groups-list li.hidden").each(function(){"none"===jq(this).css("display")&&jq(this).css("cssText","display: list-item !important")}),jq("#buddypress").on("click",".pending",function(){return!1}),jq("body").hasClass("register")){var s=jq("#signup_with_blog");s.prop("checked")||jq("#blog-details").toggle(),s.change(function(){jq("#blog-details").toggle()})}jq(".message-search").on("click",function(e){if(!jq(this).hasClass("no-ajax")){var t,i=jq(e.target);if("submit"===i.attr("type")||"button"===i.attr("type")){var a=bp_get_directory_preference(t="messages","scope"),s=bp_get_directory_preference(t,"filter"),r=bp_get_directory_preference(t,"extras");return bp_filter_request(t,s,a,"div."+t,jq("#messages_search").val(),1,r),!1}}}),jq("#send_reply_button").click(function(){var e=jq("#messages_order").val()||"ASC",t=jq("#message-recipients").offset(),i=jq("#send_reply_button");return jq(i).addClass("loading").prop("disabled",!0),jq.post(ajaxurl,{action:"messages_send_reply",cookie:bp_get_cookies(),_wpnonce:jq("#send_message_nonce").val(),content:jq("#message_content").val(),send_to:jq("#send_to").val(),subject:jq("#subject").val(),thread_id:jq("#thread_id").val()},function(a){a[0]+a[1]==="-1"?jq("#send-reply").prepend(a.substr(2,a.length)):(jq("#send-reply #message").remove(),jq("#message_content").val(""),"ASC"===e?jq("#send-reply").before(a):(jq("#message-recipients").after(a),jq(window).scrollTop(t.top)),jq(".new-message").hide().slideDown(200,function(){jq(".new-message").removeClass("new-message")})),jq(i).removeClass("loading").prop("disabled",!1)}),!1}),jq("body.messages #item-body div.messages").on("change","#message-type-select",function(){var e=this.value,t=jq('td input[type="checkbox"]'),i="checked";switch(t.each(function(e){t[e].checked=""}),e){case"unread":t=jq('tr.unread td input[type="checkbox"]');break;case"read":t=jq('tr.read td input[type="checkbox"]');break;case"":i=""}t.each(function(e){t[e].checked=i})}),jq("#select-all-messages").click(function(e){this.checked?jq(".message-check").each(function(){this.checked=!0}):jq(".message-check").each(function(){this.checked=!1})}),jq("#messages-bulk-manage").attr("disabled","disabled"),jq("#messages-select").on("change",function(){jq("#messages-bulk-manage").attr("disabled",jq(this).val().length<=0)}),starAction=function(){var e=jq(this);return jq.post(ajaxurl,{action:"messages_star",message_id:e.data("message-id"),star_status:e.data("star-status"),nonce:e.data("star-nonce"),bulk:e.data("star-bulk")},function(t){1===parseInt(t,10)&&("unstar"===e.data("star-status")?(e.data("star-status","star"),e.removeClass("message-action-unstar").addClass("message-action-star"),e.find(".bp-screen-reader-text").text(BP_PM_Star.strings.text_star),1===BP_PM_Star.is_single_thread?e.attr("data-bp-tooltip",BP_PM_Star.strings.title_star):e.attr("data-bp-tooltip",BP_PM_Star.strings.title_star_thread)):(e.data("star-status","unstar"),e.removeClass("message-action-star").addClass("message-action-unstar"),e.find(".bp-screen-reader-text").text(BP_PM_Star.strings.text_unstar),1===BP_PM_Star.is_single_thread?e.attr("data-bp-tooltip",BP_PM_Star.strings.title_unstar):e.attr("data-bp-tooltip",BP_PM_Star.strings.title_unstar_thread)))}),!1},jq("#message-threads").on("click","td.thread-star a",starAction),jq("#message-thread").on("click",".message-star-actions a",starAction),jq("#message-threads td.bulk-select-check :checkbox").on("change",function(){var e=jq(this),t=e.closest("tr").find(".thread-star a");e.prop("checked")?"unstar"===t.data("star-status")?BP_PM_Star.star_counter++:BP_PM_Star.unstar_counter++:"unstar"===t.data("star-status")?BP_PM_Star.star_counter--:BP_PM_Star.unstar_counter--,BP_PM_Star.star_counter>0&&0===parseInt(BP_PM_Star.unstar_counter,10)?jq('option[value="star"]').hide():jq('option[value="star"]').show(),BP_PM_Star.unstar_counter>0&&0===parseInt(BP_PM_Star.star_counter,10)?jq('option[value="unstar"]').hide():jq('option[value="unstar"]').show()}),jq("#select-all-notifications").click(function(e){this.checked?jq(".notification-check").each(function(){this.checked=!0}):jq(".notification-check").each(function(){this.checked=!1})}),jq("#notification-bulk-manage").attr("disabled","disabled"),jq("#notification-select").on("change",function(){jq("#notification-bulk-manage").attr("disabled",jq(this).val().length<=0)}),jq("#close-notice").on("click",function(){return jq(this).addClass("loading"),jq("#sidebar div.error").remove(),jq.post(ajaxurl,{action:"messages_close_notice",notice_id:jq(".notice").attr("rel").substr(2,jq(".notice").attr("rel").length),nonce:jq("#close-notice-nonce").val()},function(e){jq("#close-notice").removeClass("loading"),e[0]+e[1]==="-1"?(jq(".notice").prepend(e.substr(2,e.length)),jq("#sidebar div.error").hide().fadeIn(200)):jq(".notice").slideUp(100)}),!1}),jq("#wp-admin-bar ul.main-nav li, #nav li").mouseover(function(){jq(this).addClass("sfhover")}),jq("#wp-admin-bar ul.main-nav li, #nav li").mouseout(function(){jq(this).removeClass("sfhover")}),jq("#wp-admin-bar-logout, a.logout").on("click",function(){jq.removeCookie("bp-activity-scope",{path:"/",secure:"https:"===window.location.protocol}),jq.removeCookie("bp-activity-filter",{path:"/",secure:"https:"===window.location.protocol}),jq.removeCookie("bp-activity-oldestpage",{path:"/",secure:"https:"===window.location.protocol});var e=["members","groups","blogs","forums"];jq(e).each(function(t){jq.removeCookie("bp-"+e[t]+"-scope",{path:"/",secure:"https:"===window.location.protocol}),jq.removeCookie("bp-"+e[t]+"-filter",{path:"/",secure:"https:"===window.location.protocol}),jq.removeCookie("bp-"+e[t]+"-extras",{path:"/",secure:"https:"===window.location.protocol})})}),jq("body").hasClass("no-js")&&jq("body").attr("class",jq("body").attr("class").replace(/no-js/,"js")),"undefined"!=typeof wp&&void 0!==wp.heartbeat&&void 0!==BP_DTheme.pulse&&(wp.heartbeat.interval(Number(BP_DTheme.pulse)),jq.fn.extend({"heartbeat-send":function(){return this.bind("heartbeat-send.buddypress")}}));var r=0;jq(document).on("heartbeat-send.buddypress",function(e,t){r=0,jq("#buddypress ul.activity-list li").first().prop("id")&&(timestamp=jq("#buddypress ul.activity-list li").first().prop("class").match(/date-recorded-([0-9]+)/),timestamp&&(r=timestamp[1])),(0===activity_last_recorded||Number(r)>activity_last_recorded)&&(activity_last_recorded=Number(r)),t.bp_activity_last_recorded=activity_last_recorded,last_recorded_search=bp_get_querystring("s"),last_recorded_search&&(t.bp_activity_last_recorded_search_terms=last_recorded_search)}),jq(document).on("heartbeat-tick",function(e,t){t.bp_activity_newest_activities&&(newest_activities=t.bp_activity_newest_activities.activities+newest_activities,activity_last_recorded=Number(t.bp_activity_newest_activities.last_recorded),jq("#buddypress ul.activity-list li").first().hasClass("load-newest")||jq("#buddypress ul.activity-list").prepend('<li class="load-newest"><a href="#newest">'+BP_DTheme.newest+"</a></li>"))})}); \ No newline at end of file +function bp_get_directory_preference(e,t){var i={filter:"",scope:"",extras:""};if(!directoryPreferences.hasOwnProperty(e)){var a={};for(var s in i)i.hasOwnProperty(s)&&(a[s]=i[s]);directoryPreferences[e]=a}return BP_DTheme.store_filter_settings&&(directoryPreferences[e][t]=jq.cookie("bp-"+e+"-"+t)),directoryPreferences[e][t]}function bp_set_directory_preference(e,t,i){var a={filter:"",scope:"",extras:""};if(!directoryPreferences.hasOwnProperty(e)){var s={};for(var r in a)a.hasOwnProperty(r)&&(s[r]=a[r]);directoryPreferences[e]=s}BP_DTheme.store_filter_settings&&jq.cookie("bp-"+e+"-"+t,i,{path:"/",secure:"https:"===window.location.protocol}),directoryPreferences[e][t]=i}function bp_init_activity(){var e=bp_get_directory_preference("activity","scope"),t=bp_get_directory_preference("activity","filter");void 0!==t&&jq("#activity-filter-select").length&&jq('#activity-filter-select select option[value="'+t+'"]').prop("selected",!0),void 0!==e&&jq(".activity-type-tabs").length&&(jq(".activity-type-tabs li").each(function(){jq(this).removeClass("selected")}),jq("#activity-"+e+", .item-list-tabs li.current").addClass("selected"))}function bp_init_objects(e){jq(e).each(function(t){var i=bp_get_directory_preference(e[t],"scope"),a=bp_get_directory_preference(e[t],"filter");void 0!==a&&jq("#"+e[t]+"-order-select select").length&&jq("#"+e[t]+'-order-select select option[value="'+a+'"]').prop("selected",!0),void 0!==i&&jq("div."+e[t]).length&&(jq(".item-list-tabs li").each(function(){jq(this).removeClass("selected")}),jq("#"+e[t]+"-"+i+", #object-nav li.current").addClass("selected"))})}function bp_filter_request(e,t,i,a,s,r,n,o,c){if("activity"===e)return!1;null===i&&(i="all"),bp_set_directory_preference(e,"scope",i),bp_set_directory_preference(e,"filter",t),bp_set_directory_preference(e,"extras",n),jq(".item-list-tabs li").each(function(){jq(this).removeClass("selected")}),jq("#"+e+"-"+i+", #object-nav li.current").addClass("selected"),jq(".item-list-tabs li.selected").addClass("loading"),jq('.item-list-tabs select option[value="'+t+'"]').prop("selected",!0),"friends"!==e&&"group_members"!==e||(e="members"),bp_ajax_request&&bp_ajax_request.abort();var l={};l["bp-"+e+"-filter"]=bp_get_directory_preference(e,"filter"),l["bp-"+e+"-scope"]=bp_get_directory_preference(e,"scope");var d=encodeURIComponent(jq.param(l));bp_ajax_request=jq.post(ajaxurl,{action:e+"_filter",cookie:d,object:e,filter:t,search_terms:s,scope:i,page:r,extras:n,template:c},function(e){if("pag-bottom"===o&&jq("#subnav").length){var t=jq("#subnav").parent();jq("html,body").animate({scrollTop:t.offset().top},"slow",function(){jq(a).fadeOut(100,function(){jq(this).html(e),jq(this).fadeIn(100)})})}else jq(a).fadeOut(100,function(){jq(this).html(e),jq(this).fadeIn(100)});jq(".item-list-tabs li.selected").removeClass("loading")})}function bp_activity_request(e,t){bp_set_directory_preference("activity","scope",e),bp_set_directory_preference("activity","filter",t),jq(".item-list-tabs li").each(function(){jq(this).removeClass("selected loading")}),jq("#activity-"+e+", .item-list-tabs li.current").addClass("selected"),jq("#object-nav.item-list-tabs li.selected, div.activity-type-tabs li.selected").addClass("loading"),jq('#activity-filter-select select option[value="'+t+'"]').prop("selected",!0),jq(".widget_bp_activity_widget h2 span.ajax-loader").show(),bp_ajax_request&&bp_ajax_request.abort();var i={"bp-activity-filter":bp_get_directory_preference("activity","filter"),"bp-activity-scope":bp_get_directory_preference("activity","scope")},a=encodeURIComponent(jq.param(i));bp_ajax_request=jq.post(ajaxurl,{action:"activity_widget_filter",cookie:a,_wpnonce_activity_filter:jq("#_wpnonce_activity_filter").val(),scope:e,filter:t},function(e){jq(".widget_bp_activity_widget h2 span.ajax-loader").hide(),jq("div.activity").fadeOut(100,function(){jq(this).html(e.contents),jq(this).fadeIn(100),bp_legacy_theme_hide_comments()}),void 0!==e.feed_url&&jq(".directory #subnav li.feed a, .home-page #subnav li.feed a").attr("href",e.feed_url),jq(".item-list-tabs li.selected").removeClass("loading")},"json")}function bp_legacy_theme_hide_comments(){var e,t,i,a=jq("div.activity-comments");if(!a.length)return!1;a.each(function(){jq(this).children("ul").children("li").length<5||(comments_div=jq(this),e=comments_div.parents("#activity-stream > li"),t=jq(this).children("ul").children("li"),i=" ",jq("#"+e.attr("id")+" li").length&&(i=jq("#"+e.attr("id")+" li").length),t.each(function(a){a<t.length-5&&(jq(this).hide(),a||jq(this).before('<li class="show-all"><a href="#'+e.attr("id")+'/show-all/">'+BP_DTheme.show_x_comments.replace("%d",i)+"</a></li>"))}))})}function checkAll(){var e,t=document.getElementsByTagName("input");for(e=0;e<t.length;e++)"checkbox"===t[e].type&&(""===$("check_all").checked?t[e].checked="":t[e].checked="checked")}function clear(e){if(e=document.getElementById(e)){var t=e.getElementsByTagName("INPUT"),i=e.getElementsByTagName("OPTION"),a=0;if(t)for(a=0;a<t.length;a++)t[a].checked="";if(i)for(a=0;a<i.length;a++)i[a].selected=!1}}function bp_get_cookies(){var e,t,i,a,s,r=document.cookie.split(";"),n={};for(e=0;e<r.length;e++)i=(t=r[e]).indexOf("="),a=jq.trim(unescape(t.slice(0,i))),s=unescape(t.slice(i+1)),0===a.indexOf("bp-")&&(n[a]=s);return encodeURIComponent(jq.param(n))}function bp_get_query_var(e,t){var i={};return(t=void 0===t?location.search.substr(1).split("&"):t.split("?")[1].split("&")).forEach(function(e){i[e.split("=")[0]]=e.split("=")[1]&&decodeURIComponent(e.split("=")[1])}),!(!i.hasOwnProperty(e)||null==i[e])&&i[e]}var jq=jQuery,bp_ajax_request=null,newest_activities="",activity_last_recorded=0,directoryPreferences={};jq(document).ready(function(){var e=1;bp_init_activity();var t=["members","groups","blogs","group_members"],i=jq("#whats-new");if(bp_init_objects(t),i.length&&bp_get_querystring("r")){var a=i.val();jq("#whats-new-options").slideDown(),i.animate({height:"3.8em"}),jq.scrollTo(i,500,{offset:-125,easing:"swing"}),i.val("").focus().val(a)}else jq("#whats-new-options").hide();if(i.focus(function(){jq("#whats-new-options").slideDown(),jq(this).animate({height:"3.8em"}),jq("#aw-whats-new-submit").prop("disabled",!1),jq(this).parent().addClass("active"),jq("#whats-new-content").addClass("active");var e=jq("form#whats-new-form"),t=jq("#activity-all");e.hasClass("submitted")&&e.removeClass("submitted"),t.length&&(t.hasClass("selected")?"-1"!==jq("#activity-filter-select select").val()&&(jq("#activity-filter-select select").val("-1"),jq("#activity-filter-select select").trigger("change")):(jq("#activity-filter-select select").val("-1"),t.children("a").trigger("click")))}),jq("#whats-new-form").on("focusout",function(e){var t=jq(this);setTimeout(function(){if(!t.find(":hover").length){if(""!==i.val())return;i.animate({height:"2.2em"}),jq("#whats-new-options").slideUp(),jq("#aw-whats-new-submit").prop("disabled",!0),jq("#whats-new-content").removeClass("active"),i.parent().removeClass("active")}},0)}),jq("#aw-whats-new-submit").on("click",function(){var e,t=0,i=jq(this),a=i.closest("form#whats-new-form"),s={};return jq.each(a.serializeArray(),function(e,t){"_"!==t.name.substr(0,1)&&"whats-new"!==t.name.substr(0,9)&&(s[t.name]?jq.isArray(s[t.name])?s[t.name].push(t.value):s[t.name]=new Array(s[t.name],t.value):s[t.name]=t.value)}),a.find("*").each(function(){(jq.nodeName(this,"textarea")||jq.nodeName(this,"input"))&&jq(this).prop("disabled",!0)}),jq("div.error").remove(),i.addClass("loading"),i.prop("disabled",!0),a.addClass("submitted"),object="",item_id=jq("#whats-new-post-in").val(),content=jq("#whats-new").val(),firstrow=jq("#buddypress ul.activity-list li").first(),activity_row=firstrow,timestamp=null,firstrow.length&&(activity_row.hasClass("load-newest")&&(activity_row=firstrow.next()),timestamp=activity_row.prop("class").match(/date-recorded-([0-9]+)/)),timestamp&&(t=timestamp[1]),item_id>0&&(object=jq("#whats-new-post-object").val()),e=jq.extend({action:"post_update",cookie:bp_get_cookies(),_wpnonce_post_update:jq("#_wpnonce_post_update").val(),content:content,object:object,item_id:item_id,since:t,_bp_as_nonce:jq("#_bp_as_nonce").val()||""},s),jq.post(ajaxurl,e,function(e){if(a.find("*").each(function(){(jq.nodeName(this,"textarea")||jq.nodeName(this,"input"))&&jq(this).prop("disabled",!1)}),e[0]+e[1]==="-1")a.prepend(e.substr(2,e.length)),jq("#"+a.attr("id")+" div.error").hide().fadeIn(200);else{if(0===jq("ul.activity-list").length&&(jq("div.error").slideUp(100).remove(),jq("#message").slideUp(100).remove(),jq("div.activity").append('<ul id="activity-stream" class="activity-list item-list">')),firstrow.hasClass("load-newest")&&firstrow.remove(),jq("#activity-stream").prepend(e),t||jq("#activity-stream li:first").addClass("new-update just-posted"),0!==jq("#latest-update").length){var i=jq("#activity-stream li.new-update .activity-content .activity-inner p").html(),s=jq("#activity-stream li.new-update .activity-content .activity-header p a.view").attr("href"),r="";""!==jq("#activity-stream li.new-update .activity-content .activity-inner p").text()&&(r=i+" "),r+='<a href="'+s+'" rel="nofollow">'+BP_DTheme.view+"</a>",jq("#latest-update").slideUp(300,function(){jq("#latest-update").html(r),jq("#latest-update").slideDown(300)})}jq("li.new-update").hide().slideDown(300),jq("li.new-update").removeClass("new-update"),jq("#whats-new").val(""),a.get(0).reset(),newest_activities="",activity_last_recorded=0}jq("#whats-new-options").slideUp(),jq("#whats-new-form textarea").animate({height:"2.2em"}),jq("#aw-whats-new-submit").prop("disabled",!0).removeClass("loading"),jq("#whats-new-content").removeClass("active")}),!1}),jq("div.activity-type-tabs").on("click",function(e){var t,i,a=jq(e.target).parent();if("STRONG"===e.target.nodeName||"SPAN"===e.target.nodeName)a=a.parent();else if("A"!==e.target.nodeName)return!1;return t=a.attr("id").substr(9,a.attr("id").length),i=jq("#activity-filter-select select").val(),"mentions"===t&&jq("#"+a.attr("id")+" a strong").remove(),bp_activity_request(t,i),!1}),jq("#activity-filter-select select").change(function(){var e,t=jq("div.activity-type-tabs li.selected"),i=jq(this).val();return e=t.length?t.attr("id").substr(9,t.attr("id").length):null,bp_activity_request(e,i),!1}),jq("div.activity").on("click",function(t){var i,a,s,r,n,o,c,l,d,p,u=jq(t.target);return u.hasClass("fav")||u.hasClass("unfav")?!u.hasClass("loading")&&(i=u.hasClass("fav")?"fav":"unfav",a=u.closest(".activity-item"),s=a.attr("id").substr(9,a.attr("id").length),c=bp_get_query_var("_wpnonce",u.attr("href")),u.addClass("loading"),jq.post(ajaxurl,{action:"activity_mark_"+i,cookie:bp_get_cookies(),id:s,nonce:c},function(e){u.removeClass("loading"),u.fadeOut(200,function(){jq(this).html(e),jq(this).attr("title","fav"===i?BP_DTheme.remove_fav:BP_DTheme.mark_as_fav),jq(this).fadeIn(200)}),"fav"===i?(jq(".item-list-tabs #activity-favs-personal-li").length||(jq(".item-list-tabs #activity-favorites").length||jq(".item-list-tabs ul #activity-mentions").before('<li id="activity-favorites"><a href="#">'+BP_DTheme.my_favs+" <span>0</span></a></li>"),jq(".item-list-tabs ul #activity-favorites span").html(Number(jq(".item-list-tabs ul #activity-favorites span").html())+1)),u.removeClass("fav"),u.addClass("unfav")):(u.removeClass("unfav"),u.addClass("fav"),jq(".item-list-tabs ul #activity-favorites span").html(Number(jq(".item-list-tabs ul #activity-favorites span").html())-1),Number(jq(".item-list-tabs ul #activity-favorites span").html())||(jq(".item-list-tabs ul #activity-favorites").hasClass("selected")&&bp_activity_request(null,null),jq(".item-list-tabs ul #activity-favorites").remove())),"activity-favorites"===jq(".item-list-tabs li.selected").attr("id")&&u.closest(".activity-item").slideUp(100)}),!1):u.hasClass("delete-activity")?(r=u.parents("div.activity ul li"),n=r.attr("id").substr(9,r.attr("id").length),o=u.attr("href"),c=o.split("_wpnonce="),l=r.prop("class").match(/date-recorded-([0-9]+)/),c=c[1],u.addClass("loading"),jq.post(ajaxurl,{action:"delete_activity",cookie:bp_get_cookies(),id:n,_wpnonce:c},function(e){e[0]+e[1]==="-1"?(r.prepend(e.substr(2,e.length)),r.children("#message").hide().fadeIn(300)):(r.slideUp(300),l&&activity_last_recorded===l[1]&&(newest_activities="",activity_last_recorded=0))}),!1):u.hasClass("spam-activity")?(r=u.parents("div.activity ul li"),l=r.prop("class").match(/date-recorded-([0-9]+)/),u.addClass("loading"),jq.post(ajaxurl,{action:"bp_spam_activity",cookie:encodeURIComponent(document.cookie),id:r.attr("id").substr(9,r.attr("id").length),_wpnonce:u.attr("href").split("_wpnonce=")[1]},function(e){e[0]+e[1]==="-1"?(r.prepend(e.substr(2,e.length)),r.children("#message").hide().fadeIn(300)):(r.slideUp(300),l&&activity_last_recorded===l[1]&&(newest_activities="",activity_last_recorded=0))}),!1):u.parent().hasClass("load-more")?(bp_ajax_request&&bp_ajax_request.abort(),jq("#buddypress li.load-more").addClass("loading"),d=e+1,p=[],jq(".activity-list li.just-posted").each(function(){p.push(jq(this).attr("id").replace("activity-",""))}),load_more_args={action:"activity_get_older_updates",cookie:bp_get_cookies(),page:d,exclude_just_posted:p.join(",")},load_more_search=bp_get_querystring("s"),load_more_search&&(load_more_args.search_terms=load_more_search),bp_ajax_request=jq.post(ajaxurl,load_more_args,function(t){jq("#buddypress li.load-more").removeClass("loading"),e=d,jq("#buddypress ul.activity-list").append(t.contents),u.parent().hide()},"json"),!1):void(u.parent().hasClass("load-newest")&&(t.preventDefault(),u.parent().hide(),activity_html=jq.parseHTML(newest_activities),jq.each(activity_html,function(e,t){"LI"===t.nodeName&&jq(t).hasClass("just-posted")&&jq("#"+jq(t).attr("id")).length&&jq("#"+jq(t).attr("id")).remove()}),jq("#buddypress ul.activity-list").prepend(newest_activities),newest_activities=""))}),jq("div.activity").on("click",".activity-read-more a",function(e){var t,i,a=jq(e.target),s=a.parent().attr("id").split("-"),r=s[3],n=s[0];return t="acomment"===n?"acomment-content":"activity-inner",i=jq("#"+n+"-"+r+" ."+t+":first"),jq(a).addClass("loading"),jq.post(ajaxurl,{action:"get_single_activity_content",activity_id:r},function(e){jq(i).slideUp(300).html(e).slideDown(300)}),!1}),jq("form.ac-form").hide(),jq(".activity-comments").length&&bp_legacy_theme_hide_comments(),jq("div.activity").on("click",function(e){var t,i,a,s,r,n,o,c,l,d,p,u,m,h,_,v=jq(e.target);return v.hasClass("acomment-reply")||v.parent().hasClass("acomment-reply")?(v.parent().hasClass("acomment-reply")&&(v=v.parent()),t=v.attr("id"),i=t.split("-"),a=i[2],s=v.attr("href").substr(10,v.attr("href").length),(r=jq("#ac-form-"+a)).css("display","none"),r.removeClass("root"),jq(".ac-form").hide(),r.children("div").each(function(){jq(this).hasClass("error")&&jq(this).hide()}),"comment"!==i[1]?jq("#acomment-"+s).append(r):jq("#activity-"+a+" .activity-comments").append(r),r.parent().hasClass("activity-comments")&&r.addClass("root"),r.slideDown(200),jq.scrollTo(r,500,{offset:-100,easing:"swing"}),jq("#ac-form-"+i[2]+" textarea").focus(),!1):"ac_form_submit"===v.attr("name")?(r=v.parents("form"),n=r.parent(),o=r.attr("id").split("-"),c=n.hasClass("activity-comments")?o[2]:n.attr("id").split("-")[1],content=jq("#"+r.attr("id")+" textarea"),jq("#"+r.attr("id")+" div.error").hide(),v.addClass("loading").prop("disabled",!0),content.addClass("loading").prop("disabled",!0),l={action:"new_activity_comment",cookie:bp_get_cookies(),_wpnonce_new_activity_comment:jq("#_wpnonce_new_activity_comment").val(),comment_id:c,form_id:o[2],content:content.val()},(d=jq("#_bp_as_nonce_"+c).val())&&(l["_bp_as_nonce_"+c]=d),jq.post(ajaxurl,l,function(e){if(v.removeClass("loading"),content.removeClass("loading"),e[0]+e[1]==="-1")r.append(jq(e.substr(2,e.length)).hide().fadeIn(200));else{var t=r.parent();r.fadeOut(200,function(){0===t.children("ul").length&&(t.hasClass("activity-comments")?t.prepend("<ul></ul>"):t.append("<ul></ul>"));var i=jq.trim(e);t.children("ul").append(jq(i).hide().fadeIn(200)),r.children("textarea").val(""),t.parent().addClass("has-comments")}),jq("#"+r.attr("id")+" textarea").val(""),u=Number(jq("#activity-"+o[2]+" a.acomment-reply span").html())+1,jq("#activity-"+o[2]+" a.acomment-reply span").html(u),(p=t.parents(".activity-comments").find(".show-all a"))&&p.html(BP_DTheme.show_x_comments.replace("%d",u))}jq(v).prop("disabled",!1),jq(content).prop("disabled",!1)}),!1):v.hasClass("acomment-delete")?(m=v.attr("href"),h=v.parent().parent(),r=h.parents("div.activity-comments").children("form"),_=m.split("_wpnonce="),_=_[1],c=m.split("cid="),c=c[1].split("&"),c=c[0],v.addClass("loading"),jq(".activity-comments ul .error").remove(),h.parents(".activity-comments").append(r),jq.post(ajaxurl,{action:"delete_activity_comment",cookie:bp_get_cookies(),_wpnonce:_,id:c},function(e){if(e[0]+e[1]==="-1")h.prepend(jq(e.substr(2,e.length)).hide().fadeIn(200));else{var t,i,a,s=jq("#"+h.attr("id")+" ul").children("li"),r=0;jq(s).each(function(){jq(this).is(":hidden")||r++}),h.fadeOut(200,function(){h.remove()}),i=(t=jq("#"+h.parents("#activity-stream > li").attr("id")+" a.acomment-reply span")).html()-(1+r),t.html(i),(a=h.parents(".activity-comments").find(".show-all a"))&&a.html(BP_DTheme.show_x_comments.replace("%d",i)),0===i&&jq(h.parents("#activity-stream > li")).removeClass("has-comments")}}),!1):v.hasClass("spam-activity-comment")?(m=v.attr("href"),h=v.parent().parent(),v.addClass("loading"),jq(".activity-comments ul div.error").remove(),h.parents(".activity-comments").append(h.parents(".activity-comments").children("form")),jq.post(ajaxurl,{action:"bp_spam_activity_comment",cookie:encodeURIComponent(document.cookie),_wpnonce:m.split("_wpnonce=")[1],id:m.split("cid=")[1].split("&")[0]},function(e){if(e[0]+e[1]==="-1")h.prepend(jq(e.substr(2,e.length)).hide().fadeIn(200));else{var t,i=jq("#"+h.attr("id")+" ul").children("li"),a=0;jq(i).each(function(){jq(this).is(":hidden")||a++}),h.fadeOut(200),t=h.parents("#activity-stream > li"),jq("#"+t.attr("id")+" a.acomment-reply span").html(jq("#"+t.attr("id")+" a.acomment-reply span").html()-(1+a))}}),!1):v.parent().hasClass("show-all")?(v.parent().addClass("loading"),setTimeout(function(){v.parent().parent().children("li").fadeIn(200,function(){v.parent().remove()})},600),!1):v.hasClass("ac-reply-cancel")?(jq(v).closest(".ac-form").slideUp(200),!1):void 0}),jq(document).keydown(function(e){(e=e||window.event).target?element=e.target:e.srcElement&&(element=e.srcElement),3===element.nodeType&&(element=element.parentNode),!0!==e.ctrlKey&&!0!==e.altKey&&!0!==e.metaKey&&27===(e.keyCode?e.keyCode:e.which)&&"TEXTAREA"===element.tagName&&jq(element).hasClass("ac-input")&&jq(element).parent().parent().parent().slideUp(200)}),jq(".dir-search, .groups-members-search").on("click",function(e){if(!jq(this).hasClass("no-ajax")){var t,i,a,s=jq(e.target);if("submit"===s.attr("type")){t=jq(".item-list-tabs li.selected").attr("id").split("-")[0],i=null,a=s.parent().find("#"+t+"_search").val(),"groups-members-search"===e.currentTarget.className&&(t="group_members",i="groups/single/members");var r=bp_get_directory_preference(t,"scope");return bp_filter_request(t,bp_get_directory_preference(t,"filter"),r,"div."+t,a,1,bp_get_directory_preference(t,"extras"),null,i),!1}}}),jq("div.item-list-tabs").on("click",function(e){if(jq("body").hasClass("type")&&jq("body").hasClass("directory")&&jq(this).addClass("no-ajax"),!jq(this).hasClass("no-ajax")&&!jq(e.target).hasClass("no-ajax")){var t,i,a,s="SPAN"===e.target.nodeName?e.target.parentNode:e.target,r=jq(s).parent();return"LI"!==r[0].nodeName||r.hasClass("last")?void 0:(t=r.attr("id").split("-"),"activity"!==(i=t[0])&&(a=t[1],bp_filter_request(i,jq("#"+i+"-order-select select").val(),a,"div."+i,jq("#"+i+"_search").val(),1,bp_get_directory_preference(i,"extras")),!1))}}),jq("li.filter select").change(function(){var e,t,i,a,s,r,n;return t=(e=jq(jq(".item-list-tabs li.selected").length?".item-list-tabs li.selected":this).attr("id").split("-"))[0],i=e[1],a=jq(this).val(),s=!1,r=null,jq(".dir-search input").length&&(s=jq(".dir-search input").val()),(n=jq(".groups-members-search input")).length&&(s=n.val(),t="members",i="groups"),"members"===t&&"groups"===i&&(t="group_members",r="groups/single/members"),"friends"===t&&(t="members"),bp_filter_request(t,a,i,"div."+t,s,1,bp_get_directory_preference(t,"extras"),null,r),!1}),jq("#buddypress").on("click",function(e){var t,i,a,s,r,n,o,c,l=jq(e.target);if(l.hasClass("button"))return!0;if(l.parent().parent().hasClass("pagination")&&!l.parent().parent().hasClass("no-ajax")){if(l.hasClass("dots")||l.hasClass("current"))return!1;i=(t=jq(jq(".item-list-tabs li.selected").length?".item-list-tabs li.selected":"li.filter select").attr("id").split("-"))[0],a=!1,s=jq(l).closest(".pagination-links").attr("id"),r=null,jq("div.dir-search input").length&&(a=!(a=jq(".dir-search input")).val()&&bp_get_querystring(a.attr("name"))?jq(".dir-search input").prop("placeholder"):a.val()),n=jq(l).hasClass("next")||jq(l).hasClass("prev")?jq(".pagination span.current").html():jq(l).html(),n=Number(n.replace(/\D/g,"")),jq(l).hasClass("next")?n++:jq(l).hasClass("prev")&&n--,(o=jq(".groups-members-search input")).length&&(a=o.val(),i="members"),"members"===i&&"groups"===t[1]&&(i="group_members",r="groups/single/members"),"admin"===i&&jq("body").hasClass("membership-requests")&&(i="requests"),c=-1!==s.indexOf("pag-bottom")?"pag-bottom":null;var d=bp_get_directory_preference(i,"scope");return bp_filter_request(i,bp_get_directory_preference(i,"filter"),d,"div."+i,a,n,bp_get_directory_preference(i,"extras"),c,r),!1}}),jq("#send-invite-form").on("click","#invite-list input",function(){var e,t,i=jq("#send-invite-form > .invite").length;jq(".ajax-loader").toggle(),i&&jq(this).parents("ul").find("input").prop("disabled",!0),e=jq(this).val(),t=!0===jq(this).prop("checked")?"invite":"uninvite",i||jq(".item-list-tabs li.selected").addClass("loading"),jq.post(ajaxurl,{action:"groups_invite_user",friend_action:t,cookie:bp_get_cookies(),_wpnonce:jq("#_wpnonce_invite_uninvite_user").val(),friend_id:e,group_id:jq("#group_id").val()},function(a){jq("#message")&&jq("#message").hide(),i?bp_filter_request("invite","bp-invite-filter","bp-invite-scope","div.invite",!1,1,"","",""):(jq(".ajax-loader").toggle(),"invite"===t?jq("#friend-list").append(a):"uninvite"===t&&jq("#friend-list li#uid-"+e).remove(),jq(".item-list-tabs li.selected").removeClass("loading"))})}),jq("#send-invite-form").on("click","a.remove",function(){var e=jq("#send-invite-form > .invite").length,t=jq(this).attr("id");return jq(".ajax-loader").toggle(),t=t.split("-"),t=t[1],jq.post(ajaxurl,{action:"groups_invite_user",friend_action:"uninvite",cookie:bp_get_cookies(),_wpnonce:jq("#_wpnonce_invite_uninvite_user").val(),friend_id:t,group_id:jq("#group_id").val()},function(i){e?bp_filter_request("invite","bp-invite-filter","bp-invite-scope","div.invite",!1,1,"","",""):(jq(".ajax-loader").toggle(),jq("#friend-list #uid-"+t).remove(),jq("#invite-list #f-"+t).prop("checked",!1))}),!1}),jq(".visibility-toggle-link").on("click",function(e){e.preventDefault(),jq(this).attr("aria-expanded","true").parent().hide().addClass("field-visibility-settings-hide").siblings(".field-visibility-settings").show().addClass("field-visibility-settings-open")}),jq(".field-visibility-settings-close").on("click",function(e){e.preventDefault(),jq(".visibility-toggle-link").attr("aria-expanded","false");var t=jq(this).parent(),i=t.find("input:checked").parent().text();t.hide().removeClass("field-visibility-settings-open").siblings(".field-visibility-settings-toggle").children(".current-visibility-level").text(i).end().show().removeClass("field-visibility-settings-hide")}),jq("#profile-edit-form input:not(:submit), #profile-edit-form textarea, #profile-edit-form select, #signup_form input:not(:submit), #signup_form textarea, #signup_form select").change(function(){var e=!0;jq("#profile-edit-form input:submit, #signup_form input:submit").on("click",function(){e=!1}),window.onbeforeunload=function(t){if(e)return BP_DTheme.unsaved_changes}}),jq("#friend-list a.accept, #friend-list a.reject").on("click",function(){var e,t=jq(this),i=jq(this).parents("#friend-list li"),a=jq(this).parents("li div.action"),s=i.attr("id").substr(11,i.attr("id").length),r=t.attr("href").split("_wpnonce=")[1];return!jq(this).hasClass("accepted")&&!jq(this).hasClass("rejected")&&(jq(this).hasClass("accept")?(e="accept_friendship",a.children("a.reject").css("visibility","hidden")):(e="reject_friendship",a.children("a.accept").css("visibility","hidden")),t.addClass("loading"),jq.post(ajaxurl,{action:e,cookie:bp_get_cookies(),id:s,_wpnonce:r},function(e){t.removeClass("loading"),e[0]+e[1]==="-1"?(i.prepend(e.substr(2,e.length)),i.children("#message").hide().fadeIn(200)):t.fadeOut(100,function(){jq(this).hasClass("accept")?(a.children("a.reject").hide(),jq(this).html(BP_DTheme.accepted).contents().unwrap()):(a.children("a.accept").hide(),jq(this).html(BP_DTheme.rejected).contents().unwrap())})}),!1)}),jq("#members-dir-list, #members-group-list, #item-header").on("click",".friendship-button a",function(){jq(this).parent().addClass("loading");var e=jq(this).attr("id"),t=jq(this).attr("href"),i=jq(this);return e=e.split("-"),e=e[1],t=t.split("?_wpnonce="),t=t[1].split("&"),t=t[0],jq.post(ajaxurl,{action:"addremove_friend",cookie:bp_get_cookies(),fid:e,_wpnonce:t},function(e){var t=i.attr("rel");parentdiv=i.parent(),"add"===t?jq(parentdiv).fadeOut(200,function(){parentdiv.removeClass("add_friend"),parentdiv.removeClass("loading"),parentdiv.addClass("pending_friend"),parentdiv.fadeIn(200).html(e)}):"remove"===t&&jq(parentdiv).fadeOut(200,function(){parentdiv.removeClass("remove_friend"),parentdiv.removeClass("loading"),parentdiv.addClass("add"),parentdiv.fadeIn(200).html(e)})}),!1}),jq("#buddypress").on("click",".group-button .leave-group",function(){if(!1===confirm(BP_DTheme.leave_group_confirm))return!1}),jq("#groups-dir-list").on("click",".group-button a",function(){var e=jq(this).parent().attr("id"),t=jq(this).attr("href"),i=jq(this);return e=e.split("-"),e=e[1],t=t.split("?_wpnonce="),t=t[1].split("&"),t=t[0],(!i.hasClass("leave-group")||!1!==confirm(BP_DTheme.leave_group_confirm))&&(jq.post(ajaxurl,{action:"joinleave_group",cookie:bp_get_cookies(),gid:e,_wpnonce:t},function(e){var t=i.parent();jq("body.directory").length?jq(t).fadeOut(200,function(){t.fadeIn(200).html(e);var a=jq("#groups-personal span"),s=1;i.hasClass("leave-group")?(t.hasClass("hidden")&&t.closest("li").slideUp(200),s=0):i.hasClass("request-membership")&&(s=!1),a.length&&!1!==s&&(s?a.text(1+(a.text()>>0)):a.text((a.text()>>0)-1))}):window.location.reload()}),!1)}),jq("#groups-list li.hidden").each(function(){"none"===jq(this).css("display")&&jq(this).css("cssText","display: list-item !important")}),jq("#buddypress").on("click",".pending",function(){return!1}),jq("body").hasClass("register")){var s=jq("#signup_with_blog");s.prop("checked")||jq("#blog-details").toggle(),s.change(function(){jq("#blog-details").toggle()})}jq(".message-search").on("click",function(e){if(!jq(this).hasClass("no-ajax")){var t,i=jq(e.target);if("submit"===i.attr("type")||"button"===i.attr("type")){var a=bp_get_directory_preference(t="messages","scope"),s=bp_get_directory_preference(t,"filter"),r=bp_get_directory_preference(t,"extras");return bp_filter_request(t,s,a,"div."+t,jq("#messages_search").val(),1,r),!1}}}),jq("#send_reply_button").click(function(){var e=jq("#messages_order").val()||"ASC",t=jq("#message-recipients").offset(),i=jq("#send_reply_button");return jq(i).addClass("loading").prop("disabled",!0),jq.post(ajaxurl,{action:"messages_send_reply",cookie:bp_get_cookies(),_wpnonce:jq("#send_message_nonce").val(),content:jq("#message_content").val(),send_to:jq("#send_to").val(),subject:jq("#subject").val(),thread_id:jq("#thread_id").val()},function(a){a[0]+a[1]==="-1"?jq("#send-reply").prepend(a.substr(2,a.length)):(jq("#send-reply #message").remove(),jq("#message_content").val(""),"ASC"===e?jq("#send-reply").before(a):(jq("#message-recipients").after(a),jq(window).scrollTop(t.top)),jq(".new-message").hide().slideDown(200,function(){jq(".new-message").removeClass("new-message")})),jq(i).removeClass("loading").prop("disabled",!1)}),!1}),jq("body.messages #item-body div.messages").on("change","#message-type-select",function(){var e=this.value,t=jq('td input[type="checkbox"]'),i="checked";switch(t.each(function(e){t[e].checked=""}),e){case"unread":t=jq('tr.unread td input[type="checkbox"]');break;case"read":t=jq('tr.read td input[type="checkbox"]');break;case"":i=""}t.each(function(e){t[e].checked=i})}),jq("#select-all-messages").click(function(e){this.checked?jq(".message-check").each(function(){this.checked=!0}):jq(".message-check").each(function(){this.checked=!1})}),jq("#messages-bulk-manage").attr("disabled","disabled"),jq("#messages-select").on("change",function(){jq("#messages-bulk-manage").attr("disabled",jq(this).val().length<=0)}),starAction=function(){var e=jq(this);return jq.post(ajaxurl,{action:"messages_star",message_id:e.data("message-id"),star_status:e.data("star-status"),nonce:e.data("star-nonce"),bulk:e.data("star-bulk")},function(t){1===parseInt(t,10)&&("unstar"===e.data("star-status")?(e.data("star-status","star"),e.removeClass("message-action-unstar").addClass("message-action-star"),e.find(".bp-screen-reader-text").text(BP_PM_Star.strings.text_star),1===BP_PM_Star.is_single_thread?e.attr("data-bp-tooltip",BP_PM_Star.strings.title_star):e.attr("data-bp-tooltip",BP_PM_Star.strings.title_star_thread)):(e.data("star-status","unstar"),e.removeClass("message-action-star").addClass("message-action-unstar"),e.find(".bp-screen-reader-text").text(BP_PM_Star.strings.text_unstar),1===BP_PM_Star.is_single_thread?e.attr("data-bp-tooltip",BP_PM_Star.strings.title_unstar):e.attr("data-bp-tooltip",BP_PM_Star.strings.title_unstar_thread)))}),!1},jq("#message-threads").on("click","td.thread-star a",starAction),jq("#message-thread").on("click",".message-star-actions a",starAction),jq("#message-threads td.bulk-select-check :checkbox").on("change",function(){var e=jq(this),t=e.closest("tr").find(".thread-star a");e.prop("checked")?"unstar"===t.data("star-status")?BP_PM_Star.star_counter++:BP_PM_Star.unstar_counter++:"unstar"===t.data("star-status")?BP_PM_Star.star_counter--:BP_PM_Star.unstar_counter--,BP_PM_Star.star_counter>0&&0===parseInt(BP_PM_Star.unstar_counter,10)?jq('option[value="star"]').hide():jq('option[value="star"]').show(),BP_PM_Star.unstar_counter>0&&0===parseInt(BP_PM_Star.star_counter,10)?jq('option[value="unstar"]').hide():jq('option[value="unstar"]').show()}),jq("#select-all-notifications").click(function(e){this.checked?jq(".notification-check").each(function(){this.checked=!0}):jq(".notification-check").each(function(){this.checked=!1})}),jq("#notification-bulk-manage").attr("disabled","disabled"),jq("#notification-select").on("change",function(){jq("#notification-bulk-manage").attr("disabled",jq(this).val().length<=0)}),jq("#close-notice").on("click",function(){return jq(this).addClass("loading"),jq("#sidebar div.error").remove(),jq.post(ajaxurl,{action:"messages_close_notice",notice_id:jq(".notice").attr("rel").substr(2,jq(".notice").attr("rel").length),nonce:jq("#close-notice-nonce").val()},function(e){jq("#close-notice").removeClass("loading"),e[0]+e[1]==="-1"?(jq(".notice").prepend(e.substr(2,e.length)),jq("#sidebar div.error").hide().fadeIn(200)):jq(".notice").slideUp(100)}),!1}),jq("#wp-admin-bar ul.main-nav li, #nav li").mouseover(function(){jq(this).addClass("sfhover")}),jq("#wp-admin-bar ul.main-nav li, #nav li").mouseout(function(){jq(this).removeClass("sfhover")}),jq("#wp-admin-bar-logout, a.logout").on("click",function(){jq.removeCookie("bp-activity-scope",{path:"/",secure:"https:"===window.location.protocol}),jq.removeCookie("bp-activity-filter",{path:"/",secure:"https:"===window.location.protocol}),jq.removeCookie("bp-activity-oldestpage",{path:"/",secure:"https:"===window.location.protocol});var e=["members","groups","blogs","forums"];jq(e).each(function(t){jq.removeCookie("bp-"+e[t]+"-scope",{path:"/",secure:"https:"===window.location.protocol}),jq.removeCookie("bp-"+e[t]+"-filter",{path:"/",secure:"https:"===window.location.protocol}),jq.removeCookie("bp-"+e[t]+"-extras",{path:"/",secure:"https:"===window.location.protocol})})}),jq("body").hasClass("no-js")&&jq("body").attr("class",jq("body").attr("class").replace(/no-js/,"js")),"undefined"!=typeof wp&&void 0!==wp.heartbeat&&void 0!==BP_DTheme.pulse&&(wp.heartbeat.interval(Number(BP_DTheme.pulse)),jq.fn.extend({"heartbeat-send":function(){return this.bind("heartbeat-send.buddypress")}}));var r=0;jq(document).on("heartbeat-send.buddypress",function(e,t){r=0,jq("#buddypress ul.activity-list li").first().prop("id")&&(timestamp=jq("#buddypress ul.activity-list li").first().prop("class").match(/date-recorded-([0-9]+)/),timestamp&&(r=timestamp[1])),(0===activity_last_recorded||Number(r)>activity_last_recorded)&&(activity_last_recorded=Number(r)),t.bp_activity_last_recorded=activity_last_recorded,last_recorded_search=bp_get_querystring("s"),last_recorded_search&&(t.bp_activity_last_recorded_search_terms=last_recorded_search)}),jq(document).on("heartbeat-tick",function(e,t){t.bp_activity_newest_activities&&(newest_activities=t.bp_activity_newest_activities.activities+newest_activities,activity_last_recorded=Number(t.bp_activity_newest_activities.last_recorded),jq("#buddypress ul.activity-list li").first().hasClass("load-newest")||jq("#buddypress ul.activity-list").prepend('<li class="load-newest"><a href="#newest">'+BP_DTheme.newest+"</a></li>"))})}); \ No newline at end of file diff --git a/wp-content/plugins/buddypress/bp-templates/bp-nouveau/buddypress/blogs/blogs-loop.php b/wp-content/plugins/buddypress/bp-templates/bp-nouveau/buddypress/blogs/blogs-loop.php index 88263a31601416ee222cf2ee14b688708defb622..e53098704a84a2da4c71884d6a9fdaef3a904967 100644 --- a/wp-content/plugins/buddypress/bp-templates/bp-nouveau/buddypress/blogs/blogs-loop.php +++ b/wp-content/plugins/buddypress/bp-templates/bp-nouveau/buddypress/blogs/blogs-loop.php @@ -4,6 +4,7 @@ * * @since 3.0.0 * @version 3.0.0 + * @version 4.3.0 */ bp_nouveau_before_loop(); ?> @@ -63,7 +64,7 @@ bp_nouveau_before_loop(); ?> <?php else : ?> - bp_nouveau_user_feedback( 'blogs-loop-none' ); + <?php bp_nouveau_user_feedback( 'blogs-loop-none' ); ?> <?php endif; ?> diff --git a/wp-content/plugins/buddypress/bp-templates/bp-nouveau/buddypress/groups/single/admin/edit-details.php b/wp-content/plugins/buddypress/bp-templates/bp-nouveau/buddypress/groups/single/admin/edit-details.php index 09e6233eefefd7dbaaa877393ec144138abf9f58..6f085f7ce381db6a824f1bf501429e24629b8911 100644 --- a/wp-content/plugins/buddypress/bp-templates/bp-nouveau/buddypress/groups/single/admin/edit-details.php +++ b/wp-content/plugins/buddypress/bp-templates/bp-nouveau/buddypress/groups/single/admin/edit-details.php @@ -23,7 +23,7 @@ <?php endif; ?> <label for="group-name"><?php esc_html_e( 'Group Name (required)', 'buddypress' ); ?></label> -<input type="text" name="group-name" id="group-name" value="<?php bp_is_group_create() ? bp_new_group_name() : bp_group_name(); ?>" aria-required="true" /> +<input type="text" name="group-name" id="group-name" value="<?php if ( bp_is_group_create() ) : echo esc_attr( bp_get_new_group_name() ); else : echo esc_attr( bp_get_group_name() ); endif; ?>" aria-required="true" /> <label for="group-desc"><?php esc_html_e( 'Group Description (required)', 'buddypress' ); ?></label> <textarea name="group-desc" id="group-desc" aria-required="true"><?php bp_is_group_create() ? bp_new_group_description() : bp_group_description_editable(); ?></textarea> diff --git a/wp-content/plugins/buddypress/bp-templates/bp-nouveau/includes/activity/ajax.php b/wp-content/plugins/buddypress/bp-templates/bp-nouveau/includes/activity/ajax.php index 7ca517cb352f24670c7a1d3a5c60b74016d2c21f..18a4c826a8b58b1a909c363d7405739c016a2ac3 100644 --- a/wp-content/plugins/buddypress/bp-templates/bp-nouveau/includes/activity/ajax.php +++ b/wp-content/plugins/buddypress/bp-templates/bp-nouveau/includes/activity/ajax.php @@ -101,6 +101,12 @@ function bp_nouveau_ajax_mark_activity_favorite() { wp_send_json_error(); } + $activity_id = (int) $_POST['id']; + $activity_item = new BP_Activity_Activity( $activity_id ); + if ( ! bp_activity_user_can_read( $activity_item, bp_loggedin_user_id() ) ) { + wp_send_json_error(); + } + if ( bp_activity_add_user_favorite( $_POST['id'] ) ) { $response = array( 'content' => __( 'Remove Favorite', 'buddypress' ) ); @@ -354,6 +360,12 @@ function bp_nouveau_ajax_new_activity_comment() { wp_send_json_error( $response ); } + $activity_id = (int) $_POST['form_id']; + $activity_item = new BP_Activity_Activity( $activity_id ); + if ( ! bp_activity_user_can_read( $activity_item ) ) { + wp_send_json_error( $response ); + } + $comment_id = bp_activity_new_comment( array( 'activity_id' => $_POST['form_id'], 'content' => $_POST['content'], diff --git a/wp-content/plugins/buddypress/bp-templates/bp-nouveau/includes/groups/ajax.php b/wp-content/plugins/buddypress/bp-templates/bp-nouveau/includes/groups/ajax.php index 8896f0e758c15c7da72cfc653c9ddaa0b57b4913..e14c856c0e926b97dd8a587cfaf6146d3eddea57 100644 --- a/wp-content/plugins/buddypress/bp-templates/bp-nouveau/includes/groups/ajax.php +++ b/wp-content/plugins/buddypress/bp-templates/bp-nouveau/includes/groups/ajax.php @@ -97,6 +97,10 @@ function bp_nouveau_ajax_joinleave_group() { switch ( $_POST['action'] ) { case 'groups_accept_invite': + if ( ! groups_check_user_has_invite( bp_loggedin_user_id(), $group_id ) ) { + wp_send_json_error( $response ); + } + if ( ! groups_accept_invite( bp_loggedin_user_id(), $group_id ) ) { $response = array( 'feedback' => sprintf( @@ -444,14 +448,30 @@ function bp_nouveau_ajax_remove_group_invite() { $user_id = (int) $_POST['user']; $group_id = bp_get_current_group_id(); + $response = array( + 'feedback' => __( 'Group invitation could not be removed.', 'buddypress' ), + 'type' => 'error', + ); + // Verify nonce if ( empty( $_POST['_wpnonce'] ) || ! wp_verify_nonce( $_POST['_wpnonce'], 'groups_invite_uninvite_user' ) ) { - wp_send_json_error( - array( - 'feedback' => __( 'Group invitation could not be removed.', 'buddypress' ), - 'type' => 'error', - ) - ); + wp_send_json_error( $response ); + } + + // Verify pending invite. + $invites_args = array( + 'is_confirmed' => false, + 'is_banned' => null, + 'is_admin' => null, + 'is_mod' => null, + ); + $invites = bp_get_user_groups( $user_id, $invites_args ); + if ( empty( $invites ) ) { + wp_send_json_error( $response ); + } + + if ( ! groups_is_user_admin( bp_loggedin_user_id(), $group_id ) ) { + wp_send_json_error( $response ); } if ( BP_Groups_Member::check_for_membership_request( $user_id, $group_id ) ) { diff --git a/wp-content/plugins/buddypress/bp-templates/bp-nouveau/includes/groups/functions.php b/wp-content/plugins/buddypress/bp-templates/bp-nouveau/includes/groups/functions.php index d02a1be494ff1aec687dcb12f0de1c8b71eb0388..e0f18356c1ee453aeaccff4689982b8049118edc 100644 --- a/wp-content/plugins/buddypress/bp-templates/bp-nouveau/includes/groups/functions.php +++ b/wp-content/plugins/buddypress/bp-templates/bp-nouveau/includes/groups/functions.php @@ -258,6 +258,12 @@ function bp_nouveau_get_group_potential_invites( $args = array() ) { return false; } + // Check the current user's access to the group. + $group = groups_get_group( $r['group_id'] ); + if ( ! $group->user_has_access && ! bp_current_user_can( 'bp_moderate' ) ) { + return false; + } + /* * If it's not a friend request and users can restrict invites to friends, * make sure they are not displayed in results. diff --git a/wp-content/plugins/buddypress/bp-templates/bp-nouveau/includes/messages/ajax.php b/wp-content/plugins/buddypress/bp-templates/bp-nouveau/includes/messages/ajax.php index 757ca5117abeb41f80cd9c347239a25147df6d1b..d27365d03a31a288b0099ada3ba94c6706d0934a 100644 --- a/wp-content/plugins/buddypress/bp-templates/bp-nouveau/includes/messages/ajax.php +++ b/wp-content/plugins/buddypress/bp-templates/bp-nouveau/includes/messages/ajax.php @@ -415,7 +415,12 @@ function bp_nouveau_ajax_get_thread_messages() { wp_send_json_error( $response ); } - $thread_id = (int) $_POST['id']; + $thread_id = (int) $_POST['id']; + + if ( ! messages_is_valid_thread( $thread_id ) || ( ! messages_check_thread_access( $thread_id ) && ! bp_current_user_can( 'bp_moderate' ) ) ) { + wp_send_json_error(); + } + $bp = buddypress(); $reset_action = $bp->current_action; diff --git a/wp-content/plugins/buddypress/bp-templates/bp-nouveau/js/buddypress-activity.js b/wp-content/plugins/buddypress/bp-templates/bp-nouveau/js/buddypress-activity.js index f7c3178f5809d30fc5253b20b3fe9ccce0ba8f9d..ce7584b26b1a41f810ff6aff8b7d1965d37d9fba 100644 --- a/wp-content/plugins/buddypress/bp-templates/bp-nouveau/js/buddypress-activity.js +++ b/wp-content/plugins/buddypress/bp-templates/bp-nouveau/js/buddypress-activity.js @@ -345,7 +345,11 @@ window.bp = window.bp || {}; // Prepend a link to display all if ( ! i ) { - $( item ).before( '<li class="show-all"><button class="text-button" type="button" data-bp-show-comments-id="#' + activity_item.prop( 'id' ) + '/show-all/"><span class="icon dashicons dashicons-visibility" aria-hidden="true"></span> ' + BP_Nouveau.show_x_comments.replace( '%d', comment_count ) + '</button></li>' ); + var activity_id = activity_item.data( 'bpActivityId' ); + if ( 'undefined' !== typeof activity_id ) { + activity_id = parseInt( activity_id, 10 ); + $( item ).before( '<li class="show-all"><button class="text-button" type="button" data-bp-show-comments-id="#activity-' + activity_id + '/show-all/"><span class="icon dashicons dashicons-visibility" aria-hidden="true"></span> ' + BP_Nouveau.show_x_comments.replace( '%d', comment_count ) + '</button></li>' ); + } } } } ); diff --git a/wp-content/plugins/buddypress/bp-templates/bp-nouveau/js/buddypress-activity.min.js b/wp-content/plugins/buddypress/bp-templates/bp-nouveau/js/buddypress-activity.min.js index 3e957949be348953262c758a0c51158d7c6758de..b267f2e5fdb4ef7ad5894f480a9783a08d62090d 100644 --- a/wp-content/plugins/buddypress/bp-templates/bp-nouveau/js/buddypress-activity.min.js +++ b/wp-content/plugins/buddypress/bp-templates/bp-nouveau/js/buddypress-activity.min.js @@ -1 +1 @@ -window.bp=window.bp||{},function(t,a){"undefined"!=typeof BP_Nouveau&&(bp.Nouveau=bp.Nouveau||{},bp.Nouveau.Activity={start:function(){this.setupGlobals(),this.addListeners()},setupGlobals:function(){this.just_posted=[],this.current_page=1,this.mentions_count=Number(a(bp.Nouveau.objectNavParent+' [data-bp-scope="mentions"]').find("a span").html())||0,this.heartbeat_data={newest:"",highlights:{},last_recorded:0,first_recorded:0,document_title:a(document).prop("title")}},addListeners:function(){a("#buddypress").on("bp_heartbeat_send",this.heartbeatSend.bind(this)),a("#buddypress").on("bp_heartbeat_tick",this.heartbeatTick.bind(this)),a('#buddypress [data-bp-list="activity"]').on("click","li.load-newest, li.load-more",this.injectActivities.bind(this)),a("#buddypress").on("bp_ajax_request",'[data-bp-list="activity"]',this.scopeLoaded.bind(this)),a('#buddypress [data-bp-list="activity"]').on("bp_ajax_append",this.hideComments),a('#buddypress [data-bp-list="activity"]').on("click",".show-all",this.showComments),a('#buddypress [data-bp-list="activity"]').on("click",".activity-item",bp.Nouveau,this.activityActions),a(document).keydown(this.commentFormAction)},heartbeatSend:function(t,e){this.heartbeat_data.first_recorded=a("#buddypress [data-bp-list] [data-bp-activity-id]").first().data("bp-timestamp")||0,(0===this.heartbeat_data.last_recorded||this.heartbeat_data.first_recorded>this.heartbeat_data.last_recorded)&&(this.heartbeat_data.last_recorded=this.heartbeat_data.first_recorded),e.bp_activity_last_recorded=this.heartbeat_data.last_recorded,a("#buddypress .dir-search input[type=search]").length&&(e.bp_activity_last_recorded_search_terms=a("#buddypress .dir-search input[type=search]").val()),a.extend(e,{bp_heartbeat:bp.Nouveau.getStorage("bp-activity")})},heartbeatTick:function(t,e){var i,s,n=bp.Nouveau.objects,d=bp.Nouveau.getStorage("bp-activity","scope"),o=this;if(void 0!==e&&e.bp_activity_newest_activities){if(this.heartbeat_data.newest=a.trim(e.bp_activity_newest_activities.activities)+this.heartbeat_data.newest,this.heartbeat_data.last_recorded=Number(e.bp_activity_newest_activities.last_recorded),s=a(this.heartbeat_data.newest).filter(".activity-item"),i=Number(s.length),n.push("mentions"),"all"===d){a.each(s,function(t,e){e=a(e),a.each(n,function(t,i){-1!==a.inArray("bp-my-"+i,e.get(0).classList)&&(void 0===o.heartbeat_data.highlights[i]?o.heartbeat_data.highlights[i]=[e.data("bp-activity-id")]:-1===a.inArray(e.data("bp-activity-id"),o.heartbeat_data.highlights[i])&&o.heartbeat_data.highlights[i].push(e.data("bp-activity-id")))})});var r=new RegExp("bp-my-("+n.join("|")+")","g");this.heartbeat_data.newest=this.heartbeat_data.newest.replace(r,""),a(bp.Nouveau.objectNavParent+' [data-bp-scope="all"]').find("a span").html(i)}else this.heartbeat_data.highlights[d]=[],a.each(s,function(t,e){o.heartbeat_data.highlights[d].push(a(e).data("bp-activity-id"))});if(a.each(n,function(t,e){if(void 0!==o.heartbeat_data.highlights[e]&&o.heartbeat_data.highlights[e].length){var i=0;"mentions"===e&&(i=o.mentions_count),a(bp.Nouveau.objectNavParent+' [data-bp-scope="'+e+'"]').find("a span").html(Number(o.heartbeat_data.highlights[e].length)+i)}}),n.pop(),a(document).prop("title","("+i+") "+this.heartbeat_data.document_title),a('#buddypress [data-bp-list="activity"] li').first().hasClass("load-newest")){var c=a('#buddypress [data-bp-list="activity"] .load-newest a').html();a('#buddypress [data-bp-list="activity"] .load-newest a').html(c.replace(/([0-9]+)/,i))}else a('#buddypress [data-bp-list="activity"] ul.activity-list').prepend('<li class="load-newest"><a href="#newest">'+BP_Nouveau.newest+" ("+i+")</a></li>");a('#buddypress [data-bp-list="activity"]').trigger("bp_heartbeat_pending",this.heartbeat_data)}},injectActivities:function(t){var e=bp.Nouveau.getStorage("bp-activity"),i=e.scope||null,s=e.filter||null;if(a(t.currentTarget).hasClass("load-newest")){t.preventDefault(),a(t.currentTarget).remove();var n=a.parseHTML(this.heartbeat_data.newest);a.each(n,function(t,e){"LI"===e.nodeName&&a(e).hasClass("just-posted")&&a("#"+a(e).prop("id")).length&&a("#"+a(e).prop("id")).remove()}),a(t.delegateTarget).find(".activity-list").prepend(this.heartbeat_data.newest).trigger("bp_heartbeat_prepend",this.heartbeat_data),this.heartbeat_data.newest="","all"===i&&a(bp.Nouveau.objectNavParent+' [data-bp-scope="all"]').find("a span").html(""),"mentions"===i&&(bp.Nouveau.ajax({action:"activity_clear_new_mentions"},"activity"),this.mentions_count=0),a(bp.Nouveau.objectNavParent+' [data-bp-scope="'+i+'"]').find("a span").html(""),void 0!==this.heartbeat_data.highlights[i]&&(this.heartbeat_data.highlights[i]=[]),setTimeout(function(){a(t.delegateTarget).find("[data-bp-activity-id]").removeClass("newest_"+i+"_activity")},3e3),a(document).prop("title",this.heartbeat_data.document_title)}else if(a(t.currentTarget).hasClass("load-more")){var d=1*Number(this.current_page)+1,o=this,r="";t.preventDefault(),a(t.currentTarget).find("a").first().addClass("loading"),this.just_posted=[],a(t.delegateTarget).children(".just-posted").each(function(){o.just_posted.push(a(this).data("bp-activity-id"))}),a("#buddypress .dir-search input[type=search]").length&&(r=a("#buddypress .dir-search input[type=search]").val()),bp.Nouveau.objectRequest({object:"activity",scope:i,filter:s,search_terms:r,page:d,method:"append",exclude_just_posted:this.just_posted.join(","),target:"#buddypress [data-bp-list] ul.bp-list"}).done(function(e){!0===e.success&&(a(t.currentTarget).remove(),o.current_page=d)})}},hideComments:function(t){var e,i,s,n,d=a(t.target).find(".activity-comments");d.length&&d.each(function(t,d){n=a(d).children("ul"),(i=a(n).find("li")).length&&(e=a(d).closest(".activity-item"),s=a("#acomment-comment-"+e.data("bp-activity-id")+" span.comment-count").html()||" ",i.each(function(t,n){t<i.length-5&&(a(n).addClass("bp-hidden").hide(),t||a(n).before('<li class="show-all"><button class="text-button" type="button" data-bp-show-comments-id="#'+e.prop("id")+'/show-all/"><span class="icon dashicons dashicons-visibility" aria-hidden="true"></span> '+BP_Nouveau.show_x_comments.replace("%d",s)+"</button></li>"))}),a(n).children(".bp-hidden").length===a(n).children("li").length-1&&a(n).find("li.show-all").length&&a(n).children("li").removeClass("bp-hidden").toggle())})},showComments:function(t){t.preventDefault(),a(t.target).addClass("loading"),setTimeout(function(){a(t.target).closest("ul").find("li").removeClass("bp-hidden").fadeIn(300,function(){a(t.target).parent("li").remove()})},600)},scopeLoaded:function(t,e){this.hideComments(t),this.current_page=1,"mentions"===e.scope&&void 0!==e.response.new_mentions?(a.each(e.response.new_mentions,function(t,e){a("#buddypress #activity-stream").find('[data-bp-activity-id="'+e+'"]').addClass("newest_mentions_activity")}),this.mentions_count=0):void 0!==this.heartbeat_data.highlights[e.scope]&&this.heartbeat_data.highlights[e.scope].length&&a.each(this.heartbeat_data.highlights[e.scope],function(t,i){a("#buddypress #activity-stream").find('[data-bp-activity-id="'+i+'"]').length&&a("#buddypress #activity-stream").find('[data-bp-activity-id="'+i+'"]').addClass("newest_"+e.scope+"_activity")}),this.heartbeat_data.newest="",a.each(a(bp.Nouveau.objectNavParent+" [data-bp-scope]").find("a span"),function(t,e){0===parseInt(a(e).html(),10)&&a(e).html("")}),void 0!==this.heartbeat_data.highlights[e.scope]&&(this.heartbeat_data.highlights[e.scope]=[]),a(document).prop("title",this.heartbeat_data.document_title),setTimeout(function(){a("#buddypress #activity-stream .activity-item").removeClass("newest_"+e.scope+"_activity")},3e3)},activityActions:function(t){var e,i,s=t.data,n=a(t.target),d=a(t.currentTarget),o=d.data("bp-activity-id"),r=a(t.delegateTarget);if(a(n).is("span")&&(n=a(n).closest("a")),n.hasClass("fav")||n.hasClass("unfav")){var c=n.hasClass("fav")?"fav":"unfav";t.preventDefault(),n.addClass("loading"),s.ajax({action:"activity_mark_"+c,id:o},"activity").done(function(t){if(n.removeClass("loading"),!1!==t.success)if(n.fadeOut(200,function(){a(this).find("span").first().length?a(this).find("span").first().html(t.data.content):a(this).html(t.data.content),a(this).prop("title",t.data.content),"false"===a(this).attr("aria-pressed")?a(this).attr("aria-pressed","true"):a(this).attr("aria-pressed","false"),a(this).fadeIn(200)}),"fav"===c)void 0!==t.data.directory_tab&&(a(s.objectNavParent+' [data-bp-scope="favorites"]').length||a(s.objectNavParent+' [data-bp-scope="all"]').after(t.data.directory_tab)),n.removeClass("fav"),n.addClass("unfav");else if("unfav"===c){var e=a('[data-bp-user-scope="favorites"]').hasClass("selected")||a(s.objectNavParent+' [data-bp-scope="favorites"]').hasClass("selected");e&&d.remove(),void 0!==t.data.no_favorite&&(a(s.objectNavParent+' [data-bp-scope="all"]').length&&a(s.objectNavParent+' [data-bp-scope="all"]').hasClass("selected")?a(s.objectNavParent+' [data-bp-scope="favorites"]').remove():e&&r.append(t.data.no_favorite)),n.removeClass("unfav"),n.addClass("fav")}})}if(n.hasClass("delete-activity")||n.hasClass("acomment-delete")||n.hasClass("spam-activity")||n.hasClass("spam-activity-comment")){var l,p,h,b,m=n.closest("[data-bp-activity-comment-id]"),u=m.data("bp-activity-comment-id"),v=0;if(t.preventDefault(),void 0!==BP_Nouveau.confirm&&!1===window.confirm(BP_Nouveau.confirm))return!1;n.addClass("loading");var _={action:"delete_activity",id:o,_wpnonce:s.getLinkParams(n.prop("href"),"_wpnonce"),is_single:n.closest("[data-bp-single]").length};(n.hasClass("spam-activity")||n.hasClass("spam-activity-comment"))&&(_.action="bp_spam_activity"),l=d,u&&(delete _.is_single,_.id=u,_.is_comment=!0,l=m),s.ajax(_,"activity").done(function(t){if(n.removeClass("loading"),!1===t.success)l.prepend(t.data.feedback),l.find(".bp-feedback").hide().fadeIn(300);else{if(t.data.redirect)return window.location.href=t.data.redirect;u&&(v=1,d.append(m.find("form")),a.each(m.find("li"),function(){v+=1}),p=d.find(".acomment-reply span.comment-count"),h=Number(p.html()-v),p.html(h),(b=d.find("li.show-all a")).length&&b.html(BP_Nouveau.show_x_comments.replace("%d",h)),0===h&&d.removeClass("has-comments")),l.slideUp(300,function(){l.remove()}),u||d.data("bp-timestamp")!==s.Activity.heartbeat_data.last_recorded||(s.Activity.heartbeat_data.newest="",s.Activity.heartbeat_data.last_recorded=0)}})}if(n.closest("span").hasClass("activity-read-more")){var f=n.closest("div"),y=n.closest("span");if(e=null,a(f).hasClass("activity-inner")?e=o:a(f).hasClass("acomment-content")&&(e=n.closest("li").data("bp-activity-comment-id")),!e)return t;t.preventDefault(),a(y).addClass("loading"),s.ajax({action:"get_single_activity_content",id:e},"activity").done(function(t){a(y).removeClass("loading"),f.parent().find(".bp-feedback").length&&f.parent().find(".bp-feedback").remove(),!1===t.success?(f.after(t.data.feedback),f.parent().find(".bp-feedback").hide().fadeIn(300)):a(f).slideUp(300).html(t.data.contents).slideDown(300)})}if(n.hasClass("acomment-reply")||n.parent().hasClass("acomment-reply")){i=a("#ac-form-"+o),e=o,t.preventDefault(),n.parent().hasClass("acomment-reply")&&n.parent(),n.closest("li").data("bp-activity-comment-id")&&(e=n.closest("li").data("bp-activity-comment-id")),i.removeClass("root"),a(".ac-form").hide(),a.each(i.children("div"),function(t,e){a(e).hasClass("error")&&a(e).remove()}),e===o?(a('[data-bp-activity-id="'+e+'"] .activity-comments').append(i),i.addClass("root")):a('[data-bp-activity-comment-id="'+e+'"]').append(i),i.slideDown(200),n.attr("aria-expanded","true"),a.scrollTo(i,500,{offset:-100,easing:"swing"}),a("#ac-form-"+o+" textarea").focus()}if(n.hasClass("ac-reply-cancel")&&(a(n).closest(".ac-form").slideUp(200),a(".acomment-reply").attr("aria-expanded","false"),t.preventDefault()),"ac_form_submit"===n.prop("name")){var g,w;i=n.closest("form"),e=o,t.preventDefault(),n.closest("li").data("bp-activity-comment-id")&&(e=n.closest("li").data("bp-activity-comment-id")),g=a(i).find("textarea").first(),n.addClass("loading").prop("disabled",!0),g.addClass("loading").prop("disabled",!0),w={action:"new_activity_comment",_wpnonce_new_activity_comment:a("#_wpnonce_new_activity_comment").val(),comment_id:e,form_id:o,content:g.val()},a("#_bp_as_nonce_"+o).val()&&(w["_bp_as_nonce_"+o]=a("#_bp_as_nonce_"+o).val()),s.ajax(w,"activity").done(function(t){if(n.removeClass("loading"),g.removeClass("loading"),a(".acomment-reply").attr("aria-expanded","false"),!1===t.success)i.append(a(t.data.feedback).hide().fadeIn(200));else{var e=i.parent(),s=a.trim(t.data.contents);i.fadeOut(200,function(){0===e.children("ul").length&&(e.hasClass("activity-comments")?e.prepend("<ul></ul>"):e.append("<ul></ul>")),e.children("ul").append(a(s).hide().fadeIn(200)),a(i).find("textarea").first().val(""),e.parent().addClass("has-comments")}),h=Number(a(d).find("a span.comment-count").html()||0)+1,a(d).find("a span.comment-count").html(h),(b=a(d).find(".show-all a"))&&b.html(BP_Nouveau.show_x_comments.replace("%d",h))}n.prop("disabled",!1),g.prop("disabled",!1)})}},commentFormAction:function(t){var e,i;return(t=t||window.event).target?e=t.target:t.srcElement&&(e=t.srcElement),3===e.nodeType&&(e=e.parentNode),!0===t.altKey||!0===t.metaKey?t:"TEXTAREA"===e.tagName&&a(e).hasClass("ac-input")?void(27===(i=t.keyCode?t.keyCode:t.which)&&!1===t.ctrlKey?"TEXTAREA"===e.tagName&&a(e).closest("form").slideUp(200):t.ctrlKey&&13===i&&a(e).val()&&a(e).closest("form").find("[type=submit]").first().trigger("click")):t}},bp.Nouveau.Activity.start())}(bp,jQuery); \ No newline at end of file +window.bp=window.bp||{},function(t,a){"undefined"!=typeof BP_Nouveau&&(bp.Nouveau=bp.Nouveau||{},bp.Nouveau.Activity={start:function(){this.setupGlobals(),this.addListeners()},setupGlobals:function(){this.just_posted=[],this.current_page=1,this.mentions_count=Number(a(bp.Nouveau.objectNavParent+' [data-bp-scope="mentions"]').find("a span").html())||0,this.heartbeat_data={newest:"",highlights:{},last_recorded:0,first_recorded:0,document_title:a(document).prop("title")}},addListeners:function(){a("#buddypress").on("bp_heartbeat_send",this.heartbeatSend.bind(this)),a("#buddypress").on("bp_heartbeat_tick",this.heartbeatTick.bind(this)),a('#buddypress [data-bp-list="activity"]').on("click","li.load-newest, li.load-more",this.injectActivities.bind(this)),a("#buddypress").on("bp_ajax_request",'[data-bp-list="activity"]',this.scopeLoaded.bind(this)),a('#buddypress [data-bp-list="activity"]').on("bp_ajax_append",this.hideComments),a('#buddypress [data-bp-list="activity"]').on("click",".show-all",this.showComments),a('#buddypress [data-bp-list="activity"]').on("click",".activity-item",bp.Nouveau,this.activityActions),a(document).keydown(this.commentFormAction)},heartbeatSend:function(t,e){this.heartbeat_data.first_recorded=a("#buddypress [data-bp-list] [data-bp-activity-id]").first().data("bp-timestamp")||0,(0===this.heartbeat_data.last_recorded||this.heartbeat_data.first_recorded>this.heartbeat_data.last_recorded)&&(this.heartbeat_data.last_recorded=this.heartbeat_data.first_recorded),e.bp_activity_last_recorded=this.heartbeat_data.last_recorded,a("#buddypress .dir-search input[type=search]").length&&(e.bp_activity_last_recorded_search_terms=a("#buddypress .dir-search input[type=search]").val()),a.extend(e,{bp_heartbeat:bp.Nouveau.getStorage("bp-activity")})},heartbeatTick:function(t,e){var i,s,n=bp.Nouveau.objects,d=bp.Nouveau.getStorage("bp-activity","scope"),o=this;if(void 0!==e&&e.bp_activity_newest_activities){if(this.heartbeat_data.newest=a.trim(e.bp_activity_newest_activities.activities)+this.heartbeat_data.newest,this.heartbeat_data.last_recorded=Number(e.bp_activity_newest_activities.last_recorded),s=a(this.heartbeat_data.newest).filter(".activity-item"),i=Number(s.length),n.push("mentions"),"all"===d){a.each(s,function(t,e){e=a(e),a.each(n,function(t,i){-1!==a.inArray("bp-my-"+i,e.get(0).classList)&&(void 0===o.heartbeat_data.highlights[i]?o.heartbeat_data.highlights[i]=[e.data("bp-activity-id")]:-1===a.inArray(e.data("bp-activity-id"),o.heartbeat_data.highlights[i])&&o.heartbeat_data.highlights[i].push(e.data("bp-activity-id")))})});var r=new RegExp("bp-my-("+n.join("|")+")","g");this.heartbeat_data.newest=this.heartbeat_data.newest.replace(r,""),a(bp.Nouveau.objectNavParent+' [data-bp-scope="all"]').find("a span").html(i)}else this.heartbeat_data.highlights[d]=[],a.each(s,function(t,e){o.heartbeat_data.highlights[d].push(a(e).data("bp-activity-id"))});if(a.each(n,function(t,e){if(void 0!==o.heartbeat_data.highlights[e]&&o.heartbeat_data.highlights[e].length){var i=0;"mentions"===e&&(i=o.mentions_count),a(bp.Nouveau.objectNavParent+' [data-bp-scope="'+e+'"]').find("a span").html(Number(o.heartbeat_data.highlights[e].length)+i)}}),n.pop(),a(document).prop("title","("+i+") "+this.heartbeat_data.document_title),a('#buddypress [data-bp-list="activity"] li').first().hasClass("load-newest")){var c=a('#buddypress [data-bp-list="activity"] .load-newest a').html();a('#buddypress [data-bp-list="activity"] .load-newest a').html(c.replace(/([0-9]+)/,i))}else a('#buddypress [data-bp-list="activity"] ul.activity-list').prepend('<li class="load-newest"><a href="#newest">'+BP_Nouveau.newest+" ("+i+")</a></li>");a('#buddypress [data-bp-list="activity"]').trigger("bp_heartbeat_pending",this.heartbeat_data)}},injectActivities:function(t){var e=bp.Nouveau.getStorage("bp-activity"),i=e.scope||null,s=e.filter||null;if(a(t.currentTarget).hasClass("load-newest")){t.preventDefault(),a(t.currentTarget).remove();var n=a.parseHTML(this.heartbeat_data.newest);a.each(n,function(t,e){"LI"===e.nodeName&&a(e).hasClass("just-posted")&&a("#"+a(e).prop("id")).length&&a("#"+a(e).prop("id")).remove()}),a(t.delegateTarget).find(".activity-list").prepend(this.heartbeat_data.newest).trigger("bp_heartbeat_prepend",this.heartbeat_data),this.heartbeat_data.newest="","all"===i&&a(bp.Nouveau.objectNavParent+' [data-bp-scope="all"]').find("a span").html(""),"mentions"===i&&(bp.Nouveau.ajax({action:"activity_clear_new_mentions"},"activity"),this.mentions_count=0),a(bp.Nouveau.objectNavParent+' [data-bp-scope="'+i+'"]').find("a span").html(""),void 0!==this.heartbeat_data.highlights[i]&&(this.heartbeat_data.highlights[i]=[]),setTimeout(function(){a(t.delegateTarget).find("[data-bp-activity-id]").removeClass("newest_"+i+"_activity")},3e3),a(document).prop("title",this.heartbeat_data.document_title)}else if(a(t.currentTarget).hasClass("load-more")){var d=1*Number(this.current_page)+1,o=this,r="";t.preventDefault(),a(t.currentTarget).find("a").first().addClass("loading"),this.just_posted=[],a(t.delegateTarget).children(".just-posted").each(function(){o.just_posted.push(a(this).data("bp-activity-id"))}),a("#buddypress .dir-search input[type=search]").length&&(r=a("#buddypress .dir-search input[type=search]").val()),bp.Nouveau.objectRequest({object:"activity",scope:i,filter:s,search_terms:r,page:d,method:"append",exclude_just_posted:this.just_posted.join(","),target:"#buddypress [data-bp-list] ul.bp-list"}).done(function(e){!0===e.success&&(a(t.currentTarget).remove(),o.current_page=d)})}},hideComments:function(t){var e,i,s,n,d=a(t.target).find(".activity-comments");d.length&&d.each(function(t,d){n=a(d).children("ul"),(i=a(n).find("li")).length&&(e=a(d).closest(".activity-item"),s=a("#acomment-comment-"+e.data("bp-activity-id")+" span.comment-count").html()||" ",i.each(function(t,n){if(t<i.length-5&&(a(n).addClass("bp-hidden").hide(),!t)){var d=e.data("bpActivityId");void 0!==d&&(d=parseInt(d,10),a(n).before('<li class="show-all"><button class="text-button" type="button" data-bp-show-comments-id="#activity-'+d+'/show-all/"><span class="icon dashicons dashicons-visibility" aria-hidden="true"></span> '+BP_Nouveau.show_x_comments.replace("%d",s)+"</button></li>"))}}),a(n).children(".bp-hidden").length===a(n).children("li").length-1&&a(n).find("li.show-all").length&&a(n).children("li").removeClass("bp-hidden").toggle())})},showComments:function(t){t.preventDefault(),a(t.target).addClass("loading"),setTimeout(function(){a(t.target).closest("ul").find("li").removeClass("bp-hidden").fadeIn(300,function(){a(t.target).parent("li").remove()})},600)},scopeLoaded:function(t,e){this.hideComments(t),this.current_page=1,"mentions"===e.scope&&void 0!==e.response.new_mentions?(a.each(e.response.new_mentions,function(t,e){a("#buddypress #activity-stream").find('[data-bp-activity-id="'+e+'"]').addClass("newest_mentions_activity")}),this.mentions_count=0):void 0!==this.heartbeat_data.highlights[e.scope]&&this.heartbeat_data.highlights[e.scope].length&&a.each(this.heartbeat_data.highlights[e.scope],function(t,i){a("#buddypress #activity-stream").find('[data-bp-activity-id="'+i+'"]').length&&a("#buddypress #activity-stream").find('[data-bp-activity-id="'+i+'"]').addClass("newest_"+e.scope+"_activity")}),this.heartbeat_data.newest="",a.each(a(bp.Nouveau.objectNavParent+" [data-bp-scope]").find("a span"),function(t,e){0===parseInt(a(e).html(),10)&&a(e).html("")}),void 0!==this.heartbeat_data.highlights[e.scope]&&(this.heartbeat_data.highlights[e.scope]=[]),a(document).prop("title",this.heartbeat_data.document_title),setTimeout(function(){a("#buddypress #activity-stream .activity-item").removeClass("newest_"+e.scope+"_activity")},3e3)},activityActions:function(t){var e,i,s=t.data,n=a(t.target),d=a(t.currentTarget),o=d.data("bp-activity-id"),r=a(t.delegateTarget);if(a(n).is("span")&&(n=a(n).closest("a")),n.hasClass("fav")||n.hasClass("unfav")){var c=n.hasClass("fav")?"fav":"unfav";t.preventDefault(),n.addClass("loading"),s.ajax({action:"activity_mark_"+c,id:o},"activity").done(function(t){if(n.removeClass("loading"),!1!==t.success)if(n.fadeOut(200,function(){a(this).find("span").first().length?a(this).find("span").first().html(t.data.content):a(this).html(t.data.content),a(this).prop("title",t.data.content),"false"===a(this).attr("aria-pressed")?a(this).attr("aria-pressed","true"):a(this).attr("aria-pressed","false"),a(this).fadeIn(200)}),"fav"===c)void 0!==t.data.directory_tab&&(a(s.objectNavParent+' [data-bp-scope="favorites"]').length||a(s.objectNavParent+' [data-bp-scope="all"]').after(t.data.directory_tab)),n.removeClass("fav"),n.addClass("unfav");else if("unfav"===c){var e=a('[data-bp-user-scope="favorites"]').hasClass("selected")||a(s.objectNavParent+' [data-bp-scope="favorites"]').hasClass("selected");e&&d.remove(),void 0!==t.data.no_favorite&&(a(s.objectNavParent+' [data-bp-scope="all"]').length&&a(s.objectNavParent+' [data-bp-scope="all"]').hasClass("selected")?a(s.objectNavParent+' [data-bp-scope="favorites"]').remove():e&&r.append(t.data.no_favorite)),n.removeClass("unfav"),n.addClass("fav")}})}if(n.hasClass("delete-activity")||n.hasClass("acomment-delete")||n.hasClass("spam-activity")||n.hasClass("spam-activity-comment")){var l,p,h,b,v=n.closest("[data-bp-activity-comment-id]"),m=v.data("bp-activity-comment-id"),u=0;if(t.preventDefault(),void 0!==BP_Nouveau.confirm&&!1===window.confirm(BP_Nouveau.confirm))return!1;n.addClass("loading");var f={action:"delete_activity",id:o,_wpnonce:s.getLinkParams(n.prop("href"),"_wpnonce"),is_single:n.closest("[data-bp-single]").length};(n.hasClass("spam-activity")||n.hasClass("spam-activity-comment"))&&(f.action="bp_spam_activity"),l=d,m&&(delete f.is_single,f.id=m,f.is_comment=!0,l=v),s.ajax(f,"activity").done(function(t){if(n.removeClass("loading"),!1===t.success)l.prepend(t.data.feedback),l.find(".bp-feedback").hide().fadeIn(300);else{if(t.data.redirect)return window.location.href=t.data.redirect;m&&(u=1,d.append(v.find("form")),a.each(v.find("li"),function(){u+=1}),p=d.find(".acomment-reply span.comment-count"),h=Number(p.html()-u),p.html(h),(b=d.find("li.show-all a")).length&&b.html(BP_Nouveau.show_x_comments.replace("%d",h)),0===h&&d.removeClass("has-comments")),l.slideUp(300,function(){l.remove()}),m||d.data("bp-timestamp")!==s.Activity.heartbeat_data.last_recorded||(s.Activity.heartbeat_data.newest="",s.Activity.heartbeat_data.last_recorded=0)}})}if(n.closest("span").hasClass("activity-read-more")){var _=n.closest("div"),y=n.closest("span");if(e=null,a(_).hasClass("activity-inner")?e=o:a(_).hasClass("acomment-content")&&(e=n.closest("li").data("bp-activity-comment-id")),!e)return t;t.preventDefault(),a(y).addClass("loading"),s.ajax({action:"get_single_activity_content",id:e},"activity").done(function(t){a(y).removeClass("loading"),_.parent().find(".bp-feedback").length&&_.parent().find(".bp-feedback").remove(),!1===t.success?(_.after(t.data.feedback),_.parent().find(".bp-feedback").hide().fadeIn(300)):a(_).slideUp(300).html(t.data.contents).slideDown(300)})}if(n.hasClass("acomment-reply")||n.parent().hasClass("acomment-reply")){i=a("#ac-form-"+o),e=o,t.preventDefault(),n.parent().hasClass("acomment-reply")&&n.parent(),n.closest("li").data("bp-activity-comment-id")&&(e=n.closest("li").data("bp-activity-comment-id")),i.removeClass("root"),a(".ac-form").hide(),a.each(i.children("div"),function(t,e){a(e).hasClass("error")&&a(e).remove()}),e===o?(a('[data-bp-activity-id="'+e+'"] .activity-comments').append(i),i.addClass("root")):a('[data-bp-activity-comment-id="'+e+'"]').append(i),i.slideDown(200),n.attr("aria-expanded","true"),a.scrollTo(i,500,{offset:-100,easing:"swing"}),a("#ac-form-"+o+" textarea").focus()}if(n.hasClass("ac-reply-cancel")&&(a(n).closest(".ac-form").slideUp(200),a(".acomment-reply").attr("aria-expanded","false"),t.preventDefault()),"ac_form_submit"===n.prop("name")){var g,w;i=n.closest("form"),e=o,t.preventDefault(),n.closest("li").data("bp-activity-comment-id")&&(e=n.closest("li").data("bp-activity-comment-id")),g=a(i).find("textarea").first(),n.addClass("loading").prop("disabled",!0),g.addClass("loading").prop("disabled",!0),w={action:"new_activity_comment",_wpnonce_new_activity_comment:a("#_wpnonce_new_activity_comment").val(),comment_id:e,form_id:o,content:g.val()},a("#_bp_as_nonce_"+o).val()&&(w["_bp_as_nonce_"+o]=a("#_bp_as_nonce_"+o).val()),s.ajax(w,"activity").done(function(t){if(n.removeClass("loading"),g.removeClass("loading"),a(".acomment-reply").attr("aria-expanded","false"),!1===t.success)i.append(a(t.data.feedback).hide().fadeIn(200));else{var e=i.parent(),s=a.trim(t.data.contents);i.fadeOut(200,function(){0===e.children("ul").length&&(e.hasClass("activity-comments")?e.prepend("<ul></ul>"):e.append("<ul></ul>")),e.children("ul").append(a(s).hide().fadeIn(200)),a(i).find("textarea").first().val(""),e.parent().addClass("has-comments")}),h=Number(a(d).find("a span.comment-count").html()||0)+1,a(d).find("a span.comment-count").html(h),(b=a(d).find(".show-all a"))&&b.html(BP_Nouveau.show_x_comments.replace("%d",h))}n.prop("disabled",!1),g.prop("disabled",!1)})}},commentFormAction:function(t){var e,i;return(t=t||window.event).target?e=t.target:t.srcElement&&(e=t.srcElement),3===e.nodeType&&(e=e.parentNode),!0===t.altKey||!0===t.metaKey?t:"TEXTAREA"===e.tagName&&a(e).hasClass("ac-input")?void(27===(i=t.keyCode?t.keyCode:t.which)&&!1===t.ctrlKey?"TEXTAREA"===e.tagName&&a(e).closest("form").slideUp(200):t.ctrlKey&&13===i&&a(e).val()&&a(e).closest("form").find("[type=submit]").first().trigger("click")):t}},bp.Nouveau.Activity.start())}(bp,jQuery); \ No newline at end of file diff --git a/wp-content/plugins/buddypress/buddypress.pot b/wp-content/plugins/buddypress/buddypress.pot index b4173c726f7ccfe48e5e0f66ca965dc812f2f4aa..752700661810a9f3489285463d66eea485199f10 100644 --- a/wp-content/plugins/buddypress/buddypress.pot +++ b/wp-content/plugins/buddypress/buddypress.pot @@ -2,9 +2,9 @@ # This file is distributed under the GPLv2 or later (license.txt). msgid "" msgstr "" -"Project-Id-Version: BuddyPress 4.2.0\n" +"Project-Id-Version: BuddyPress 4.3.0\n" "Report-Msgid-Bugs-To: https://buddypress.trac.wordpress.org\n" -"POT-Creation-Date: 2019-02-20 15:34:23+00:00\n" +"POT-Creation-Date: 2019-04-25 16:09:52+00:00\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -14,7 +14,7 @@ msgstr "" "X-Generator: grunt-wp-i18n 1.0.3\n" #: bp-activity/actions/delete.php:52 -#: bp-templates/bp-nouveau/includes/activity/ajax.php:249 +#: bp-templates/bp-nouveau/includes/activity/ajax.php:255 msgid "Activity deleted successfully" msgstr "" @@ -22,11 +22,11 @@ msgstr "" msgid "There was an error when deleting that activity" msgstr "" -#: bp-activity/actions/favorite.php:25 +#: bp-activity/actions/favorite.php:30 msgid "Activity marked as favorite." msgstr "" -#: bp-activity/actions/favorite.php:27 +#: bp-activity/actions/favorite.php:32 msgid "There was an error marking that activity as a favorite. Please try again." msgstr "" @@ -94,7 +94,7 @@ msgstr "" #: bp-activity/actions/post.php:60 #: bp-templates/bp-legacy/buddypress-functions.php:960 -#: bp-templates/bp-nouveau/includes/activity/ajax.php:478 +#: bp-templates/bp-nouveau/includes/activity/ajax.php:490 msgid "Please enter some content to post." msgstr "" @@ -108,16 +108,16 @@ msgstr "" #: bp-activity/actions/reply.php:43 #: bp-templates/bp-legacy/buddypress-functions.php:1052 -#: bp-templates/bp-nouveau/includes/activity/ajax.php:349 +#: bp-templates/bp-nouveau/includes/activity/ajax.php:355 msgid "Please do not leave the comment area blank." msgstr "" -#: bp-activity/actions/reply.php:54 -msgid "Reply Posted!" +#: bp-activity/actions/reply.php:49 bp-activity/actions/reply.php:62 +msgid "There was an error posting that reply. Please try again." msgstr "" -#: bp-activity/actions/reply.php:56 -msgid "There was an error posting that reply. Please try again." +#: bp-activity/actions/reply.php:60 +msgid "Reply Posted!" msgstr "" #: bp-activity/actions/spam.php:59 @@ -486,19 +486,19 @@ msgstr "" msgid "Your browser does not support HTML5 audio" msgstr "" -#: bp-activity/bp-activity-filters.php:428 +#: bp-activity/bp-activity-filters.php:435 msgid "[Read more]" msgstr "" -#: bp-activity/bp-activity-filters.php:432 +#: bp-activity/bp-activity-filters.php:439 msgid "…" msgstr "" -#: bp-activity/bp-activity-filters.php:638 +#: bp-activity/bp-activity-filters.php:645 msgid "Load Newest" msgstr "" -#: bp-activity/bp-activity-filters.php:821 +#: bp-activity/bp-activity-filters.php:828 msgid "BuddyPress Activity Data" msgstr "" @@ -528,7 +528,7 @@ msgstr "" #: bp-activity/bp-activity-functions.php:2592 #: bp-templates/bp-legacy/buddypress-functions.php:1049 -#: bp-templates/bp-nouveau/includes/activity/ajax.php:328 +#: bp-templates/bp-nouveau/includes/activity/ajax.php:334 msgid "There was an error posting your reply. Please try again." msgstr "" @@ -2743,7 +2743,7 @@ msgid "Activate Your Account" msgstr "" #: bp-core/bp-core-template.php:3123 bp-groups/bp-groups-template.php:3394 -#: bp-templates/bp-nouveau/includes/groups/functions.php:530 +#: bp-templates/bp-nouveau/includes/groups/functions.php:536 msgid "Create a Group" msgstr "" @@ -3564,7 +3564,7 @@ msgid "You already have a pending friendship request with this user" msgstr "" #: bp-friends/actions/remove-friend.php:33 -#: bp-templates/bp-legacy/buddypress-functions.php:1433 +#: bp-templates/bp-legacy/buddypress-functions.php:1445 msgid "Friendship could not be canceled." msgstr "" @@ -3715,7 +3715,7 @@ msgid "%d friends" msgstr "" #: bp-friends/bp-friends-template.php:371 -#: bp-templates/bp-legacy/buddypress-functions.php:1445 +#: bp-templates/bp-legacy/buddypress-functions.php:1457 msgid "Cancel Friendship Request" msgstr "" @@ -3728,8 +3728,8 @@ msgid "Cancel Friendship" msgstr "" #: bp-friends/bp-friends-template.php:419 -#: bp-templates/bp-legacy/buddypress-functions.php:1435 -#: bp-templates/bp-legacy/buddypress-functions.php:1453 +#: bp-templates/bp-legacy/buddypress-functions.php:1447 +#: bp-templates/bp-legacy/buddypress-functions.php:1465 msgid "Add Friend" msgstr "" @@ -3914,7 +3914,7 @@ msgstr "" msgid "%1$s created the group %2$s" msgstr "" -#: bp-groups/bp-groups-activity.php:109 bp-groups/bp-groups-activity.php:457 +#: bp-groups/bp-groups-activity.php:109 bp-groups/bp-groups-activity.php:570 msgid "%1$s joined the group %2$s" msgstr "" @@ -4515,13 +4515,13 @@ msgid "" msgstr "" #: bp-groups/bp-groups-template.php:3277 -#: bp-templates/bp-legacy/buddypress-functions.php:1549 -#: bp-templates/bp-legacy/buddypress-functions.php:1563 +#: bp-templates/bp-legacy/buddypress-functions.php:1561 +#: bp-templates/bp-legacy/buddypress-functions.php:1575 msgid "Leave Group" msgstr "" #: bp-groups/bp-groups-template.php:3298 -#: bp-templates/bp-legacy/buddypress-functions.php:1583 +#: bp-templates/bp-legacy/buddypress-functions.php:1595 msgid "Join Group" msgstr "" @@ -4530,12 +4530,12 @@ msgid "Accept Invitation" msgstr "" #: bp-groups/bp-groups-template.php:3331 -#: bp-templates/bp-legacy/buddypress-functions.php:1573 +#: bp-templates/bp-legacy/buddypress-functions.php:1585 msgid "Request Sent" msgstr "" #: bp-groups/bp-groups-template.php:3346 -#: bp-templates/bp-legacy/buddypress-functions.php:1585 +#: bp-templates/bp-legacy/buddypress-functions.php:1597 msgid "Request Membership" msgstr "" @@ -4615,7 +4615,7 @@ msgstr "" #: bp-templates/bp-legacy/buddypress/members/single/friends.php:24 #: bp-templates/bp-legacy/buddypress/members/single/groups.php:25 #: bp-templates/bp-nouveau/includes/blogs/functions.php:108 -#: bp-templates/bp-nouveau/includes/groups/functions.php:588 +#: bp-templates/bp-nouveau/includes/groups/functions.php:594 #: bp-templates/bp-nouveau/includes/members/functions.php:102 #: bp-templates/bp-nouveau/includes/members/functions.php:120 msgid "Alphabetical" @@ -4829,11 +4829,11 @@ msgstr "" msgid "The new group profile photo was uploaded successfully." msgstr "" -#: bp-groups/screens/single/admin/group-settings.php:70 +#: bp-groups/screens/single/admin/group-settings.php:72 msgid "There was an error updating group settings. Please try again." msgstr "" -#: bp-groups/screens/single/admin/group-settings.php:72 +#: bp-groups/screens/single/admin/group-settings.php:74 msgid "Group settings were successfully updated." msgstr "" @@ -4932,12 +4932,12 @@ msgid "Group invite accepted. Visit %s." msgstr "" #: bp-groups/screens/user/invites.php:53 -#: bp-templates/bp-nouveau/includes/groups/ajax.php:140 +#: bp-templates/bp-nouveau/includes/groups/ajax.php:144 msgid "Group invite could not be rejected" msgstr "" #: bp-groups/screens/user/invites.php:55 -#: bp-templates/bp-nouveau/includes/groups/ajax.php:148 +#: bp-templates/bp-nouveau/includes/groups/ajax.php:152 msgid "Group invite rejected" msgstr "" @@ -5613,7 +5613,7 @@ msgid "Messages marked as read" msgstr "" #: bp-messages/actions/bulk-manage.php:68 -#: bp-templates/bp-nouveau/includes/messages/ajax.php:681 +#: bp-templates/bp-nouveau/includes/messages/ajax.php:686 msgid "Messages marked as unread." msgstr "" @@ -6275,7 +6275,7 @@ msgid "Load More" msgstr "" #: bp-templates/bp-legacy/buddypress/activity/activity-loop.php:48 -#: bp-templates/bp-nouveau/includes/activity/ajax.php:151 +#: bp-templates/bp-nouveau/includes/activity/ajax.php:157 #: bp-templates/bp-nouveau/includes/functions.php:961 msgid "Sorry, there was no activity found. Please try a different filter." msgstr "" @@ -6301,18 +6301,18 @@ msgstr "" #: bp-templates/bp-legacy/buddypress/activity/entry.php:76 #: bp-templates/bp-legacy/buddypress-functions.php:307 -#: bp-templates/bp-legacy/buddypress-functions.php:1248 -#: bp-templates/bp-legacy/buddypress-functions.php:1276 -#: bp-templates/bp-nouveau/includes/activity/ajax.php:145 +#: bp-templates/bp-legacy/buddypress-functions.php:1260 +#: bp-templates/bp-legacy/buddypress-functions.php:1288 +#: bp-templates/bp-nouveau/includes/activity/ajax.php:151 #: bp-templates/bp-nouveau/includes/activity/template-tags.php:378 msgid "Favorite" msgstr "" #: bp-templates/bp-legacy/buddypress/activity/entry.php:80 #: bp-templates/bp-legacy/buddypress-functions.php:310 -#: bp-templates/bp-legacy/buddypress-functions.php:1246 -#: bp-templates/bp-legacy/buddypress-functions.php:1278 -#: bp-templates/bp-nouveau/includes/activity/ajax.php:105 +#: bp-templates/bp-legacy/buddypress-functions.php:1258 +#: bp-templates/bp-legacy/buddypress-functions.php:1290 +#: bp-templates/bp-nouveau/includes/activity/ajax.php:111 #: bp-templates/bp-nouveau/includes/activity/template-tags.php:389 #: bp-templates/bp-nouveau/includes/activity/template-tags.php:390 msgid "Remove Favorite" @@ -6548,7 +6548,7 @@ msgstr "" #: bp-templates/bp-legacy/buddypress/members/single/friends.php:22 #: bp-templates/bp-legacy/buddypress/members/single/groups.php:22 #: bp-templates/bp-nouveau/includes/blogs/functions.php:106 -#: bp-templates/bp-nouveau/includes/groups/functions.php:585 +#: bp-templates/bp-nouveau/includes/groups/functions.php:591 #: bp-templates/bp-nouveau/includes/members/functions.php:97 msgid "Last Active" msgstr "" @@ -6753,7 +6753,7 @@ msgstr "" #: bp-templates/bp-legacy/buddypress/groups/create.php:379 #: bp-templates/bp-legacy/buddypress/groups/single/invites-loop.php:75 -#: bp-templates/bp-legacy/buddypress-functions.php:1379 +#: bp-templates/bp-legacy/buddypress-functions.php:1391 msgid "Remove Invite" msgstr "" @@ -6801,13 +6801,13 @@ msgstr "" #: bp-templates/bp-legacy/buddypress/groups/index.php:97 #: bp-templates/bp-legacy/buddypress/members/single/groups.php:23 -#: bp-templates/bp-nouveau/includes/groups/functions.php:586 +#: bp-templates/bp-nouveau/includes/groups/functions.php:592 msgid "Most Members" msgstr "" #: bp-templates/bp-legacy/buddypress/groups/index.php:98 #: bp-templates/bp-legacy/buddypress/members/single/groups.php:24 -#: bp-templates/bp-nouveau/includes/groups/functions.php:587 +#: bp-templates/bp-nouveau/includes/groups/functions.php:593 msgid "Newly Created" msgstr "" @@ -7150,7 +7150,7 @@ msgid "My friends" msgstr "" #: bp-templates/bp-legacy/buddypress/members/single/groups/invites.php:21 -#: bp-templates/bp-nouveau/includes/groups/functions.php:1209 +#: bp-templates/bp-nouveau/includes/groups/functions.php:1215 #. translators: accessibility text msgid "Group invitations" msgstr "" @@ -7551,7 +7551,7 @@ msgid "Are you sure you want to leave this group?" msgstr "" #: bp-templates/bp-legacy/buddypress-functions.php:308 -#: bp-templates/bp-nouveau/includes/activity/ajax.php:113 +#: bp-templates/bp-nouveau/includes/activity/ajax.php:119 #: bp-templates/bp-nouveau/includes/activity/functions.php:227 msgid "My Favorites" msgstr "" @@ -7580,75 +7580,75 @@ msgid "" msgstr "" #: bp-templates/bp-legacy/buddypress-functions.php:996 -#: bp-templates/bp-nouveau/includes/activity/ajax.php:537 +#: bp-templates/bp-nouveau/includes/activity/ajax.php:549 msgid "There was a problem posting your update. Please try again." msgstr "" -#: bp-templates/bp-legacy/buddypress-functions.php:1129 -#: bp-templates/bp-legacy/buddypress-functions.php:1169 -#: bp-templates/bp-nouveau/includes/activity/ajax.php:195 +#: bp-templates/bp-legacy/buddypress-functions.php:1135 +#: bp-templates/bp-legacy/buddypress-functions.php:1175 +#: bp-templates/bp-nouveau/includes/activity/ajax.php:201 msgid "There was a problem when deleting. Please try again." msgstr "" -#: bp-templates/bp-legacy/buddypress-functions.php:1383 +#: bp-templates/bp-legacy/buddypress-functions.php:1395 msgid "" "%s has previously requested to join this group. Sending an invitation will " "automatically add the member to the group." msgstr "" -#: bp-templates/bp-legacy/buddypress-functions.php:1425 +#: bp-templates/bp-legacy/buddypress-functions.php:1437 #: bp-templates/bp-nouveau/includes/friends/ajax.php:107 msgid "No member found by that ID." msgstr "" -#: bp-templates/bp-legacy/buddypress-functions.php:1443 +#: bp-templates/bp-legacy/buddypress-functions.php:1455 msgid " Friendship could not be requested." msgstr "" -#: bp-templates/bp-legacy/buddypress-functions.php:1455 +#: bp-templates/bp-legacy/buddypress-functions.php:1467 #: bp-templates/bp-nouveau/includes/friends/ajax.php:210 msgid "Friendship request could not be cancelled." msgstr "" -#: bp-templates/bp-legacy/buddypress-functions.php:1460 +#: bp-templates/bp-legacy/buddypress-functions.php:1472 #: bp-templates/bp-nouveau/includes/friends/ajax.php:220 msgid "Request Pending" msgstr "" -#: bp-templates/bp-legacy/buddypress-functions.php:1481 +#: bp-templates/bp-legacy/buddypress-functions.php:1493 #: bp-templates/bp-nouveau/includes/friends/ajax.php:121 msgid "There was a problem accepting that request. Please try again." msgstr "" -#: bp-templates/bp-legacy/buddypress-functions.php:1501 +#: bp-templates/bp-legacy/buddypress-functions.php:1513 #: bp-templates/bp-nouveau/includes/friends/ajax.php:145 msgid "There was a problem rejecting that request. Please try again." msgstr "" -#: bp-templates/bp-legacy/buddypress-functions.php:1541 -#: bp-templates/bp-legacy/buddypress-functions.php:1547 +#: bp-templates/bp-legacy/buddypress-functions.php:1553 +#: bp-templates/bp-legacy/buddypress-functions.php:1559 msgid "Error joining group" msgstr "" -#: bp-templates/bp-legacy/buddypress-functions.php:1555 +#: bp-templates/bp-legacy/buddypress-functions.php:1567 msgid "Error accepting invitation" msgstr "" -#: bp-templates/bp-legacy/buddypress-functions.php:1561 -#: bp-templates/bp-legacy/buddypress-functions.php:1571 +#: bp-templates/bp-legacy/buddypress-functions.php:1573 +#: bp-templates/bp-legacy/buddypress-functions.php:1583 msgid "Error requesting membership" msgstr "" -#: bp-templates/bp-legacy/buddypress-functions.php:1581 +#: bp-templates/bp-legacy/buddypress-functions.php:1593 msgid "Error leaving group" msgstr "" -#: bp-templates/bp-legacy/buddypress-functions.php:1608 +#: bp-templates/bp-legacy/buddypress-functions.php:1620 msgid "There was a problem closing the notice." msgstr "" -#: bp-templates/bp-legacy/buddypress-functions.php:1643 -#: bp-templates/bp-legacy/buddypress-functions.php:1683 +#: bp-templates/bp-legacy/buddypress-functions.php:1655 +#: bp-templates/bp-legacy/buddypress-functions.php:1695 msgid "There was a problem sending that reply. Please try again." msgstr "" @@ -8033,27 +8033,27 @@ msgstr "" msgid "Show all %d comments" msgstr "" -#: bp-templates/bp-nouveau/includes/activity/ajax.php:267 +#: bp-templates/bp-nouveau/includes/activity/ajax.php:273 msgid "There was a problem displaying the content. Please try again." msgstr "" -#: bp-templates/bp-nouveau/includes/activity/ajax.php:455 +#: bp-templates/bp-nouveau/includes/activity/ajax.php:467 msgid "No activities were found." msgstr "" -#: bp-templates/bp-nouveau/includes/activity/ajax.php:554 +#: bp-templates/bp-nouveau/includes/activity/ajax.php:566 msgid "Update posted." msgstr "" -#: bp-templates/bp-nouveau/includes/activity/ajax.php:554 +#: bp-templates/bp-nouveau/includes/activity/ajax.php:566 msgid "View activity." msgstr "" -#: bp-templates/bp-nouveau/includes/activity/ajax.php:582 +#: bp-templates/bp-nouveau/includes/activity/ajax.php:594 msgid "There was a problem marking this activity as spam. Please try again." msgstr "" -#: bp-templates/bp-nouveau/includes/activity/ajax.php:631 +#: bp-templates/bp-nouveau/includes/activity/ajax.php:643 msgid "This activity has been marked as spam and is no longer visible." msgstr "" @@ -8076,7 +8076,7 @@ msgid "All Members" msgstr "" #: bp-templates/bp-nouveau/includes/activity/functions.php:253 -#: bp-templates/bp-nouveau/includes/groups/functions.php:517 +#: bp-templates/bp-nouveau/includes/groups/functions.php:523 msgid "My Groups" msgstr "" @@ -8273,7 +8273,7 @@ msgstr "" #: bp-templates/bp-nouveau/includes/friends/ajax.php:68 #: bp-templates/bp-nouveau/includes/groups/ajax.php:47 -#: bp-templates/bp-nouveau/includes/groups/ajax.php:259 +#: bp-templates/bp-nouveau/includes/groups/ajax.php:263 msgid "There was a problem performing this action. Please try again." msgstr "" @@ -8470,89 +8470,89 @@ msgstr "" msgid "You are already a member of the group." msgstr "" -#: bp-templates/bp-nouveau/includes/groups/ajax.php:104 +#: bp-templates/bp-nouveau/includes/groups/ajax.php:108 msgid "Group invitation could not be accepted." msgstr "" -#: bp-templates/bp-nouveau/includes/groups/ajax.php:125 +#: bp-templates/bp-nouveau/includes/groups/ajax.php:129 msgid "Group invite accepted." msgstr "" -#: bp-templates/bp-nouveau/includes/groups/ajax.php:171 +#: bp-templates/bp-nouveau/includes/groups/ajax.php:175 msgid "Error joining this group." msgstr "" -#: bp-templates/bp-nouveau/includes/groups/ajax.php:192 +#: bp-templates/bp-nouveau/includes/groups/ajax.php:196 msgid "Error requesting membership." msgstr "" -#: bp-templates/bp-nouveau/includes/groups/ajax.php:213 +#: bp-templates/bp-nouveau/includes/groups/ajax.php:217 msgid "Error leaving group." msgstr "" -#: bp-templates/bp-nouveau/includes/groups/ajax.php:291 +#: bp-templates/bp-nouveau/includes/groups/ajax.php:295 msgid "" "Select members to invite by clicking the + button. Once you've made your " "selection, use the \"Send Invites\" navigation item to continue." msgstr "" -#: bp-templates/bp-nouveau/includes/groups/ajax.php:296 +#: bp-templates/bp-nouveau/includes/groups/ajax.php:300 msgid "" "Select friends to invite by clicking the + button. Once you've made your " "selection, use the \"Send Invites\" navigation item to continue." msgstr "" -#: bp-templates/bp-nouveau/includes/groups/ajax.php:303 +#: bp-templates/bp-nouveau/includes/groups/ajax.php:307 msgid "No pending group invitations found." msgstr "" -#: bp-templates/bp-nouveau/includes/groups/ajax.php:310 +#: bp-templates/bp-nouveau/includes/groups/ajax.php:314 msgid "You can view the group's pending invitations from this screen." msgstr "" -#: bp-templates/bp-nouveau/includes/groups/ajax.php:317 +#: bp-templates/bp-nouveau/includes/groups/ajax.php:321 msgid "No members were found. Try another filter." msgstr "" -#: bp-templates/bp-nouveau/includes/groups/ajax.php:323 +#: bp-templates/bp-nouveau/includes/groups/ajax.php:327 msgid "" "All your friends are already members of this group, or have already " "received an invite to join this group, or have requested to join it." msgstr "" -#: bp-templates/bp-nouveau/includes/groups/ajax.php:329 +#: bp-templates/bp-nouveau/includes/groups/ajax.php:333 msgid "You have no friends!" msgstr "" -#: bp-templates/bp-nouveau/includes/groups/ajax.php:358 +#: bp-templates/bp-nouveau/includes/groups/ajax.php:362 msgid "Invites could not be sent. Please try again." msgstr "" -#: bp-templates/bp-nouveau/includes/groups/ajax.php:374 +#: bp-templates/bp-nouveau/includes/groups/ajax.php:378 msgid "You are not allowed to send invitations for this group." msgstr "" -#: bp-templates/bp-nouveau/includes/groups/ajax.php:415 +#: bp-templates/bp-nouveau/includes/groups/ajax.php:419 #. translators: count of users affected msgid "Invitation failed for %s user." msgid_plural "Invitation failed for %s users." msgstr[0] "" msgstr[1] "" -#: bp-templates/bp-nouveau/includes/groups/ajax.php:434 +#: bp-templates/bp-nouveau/includes/groups/ajax.php:438 msgid "Invitations sent." msgstr "" -#: bp-templates/bp-nouveau/includes/groups/ajax.php:451 -#: bp-templates/bp-nouveau/includes/groups/ajax.php:471 +#: bp-templates/bp-nouveau/includes/groups/ajax.php:452 +#: bp-templates/bp-nouveau/includes/groups/ajax.php:491 msgid "Group invitation could not be removed." msgstr "" -#: bp-templates/bp-nouveau/includes/groups/ajax.php:460 +#: bp-templates/bp-nouveau/includes/groups/ajax.php:480 msgid "The member is already a member of the group." msgstr "" -#: bp-templates/bp-nouveau/includes/groups/ajax.php:480 +#: bp-templates/bp-nouveau/includes/groups/ajax.php:500 msgid "There are no more pending invitations for the group." msgstr "" @@ -8584,99 +8584,99 @@ msgstr "" msgid "Cancel invitation %s" msgstr "" -#: bp-templates/bp-nouveau/includes/groups/functions.php:472 +#: bp-templates/bp-nouveau/includes/groups/functions.php:478 msgid "Group invites preferences saved." msgstr "" -#: bp-templates/bp-nouveau/includes/groups/functions.php:474 +#: bp-templates/bp-nouveau/includes/groups/functions.php:480 msgid "You are not allowed to perform this action." msgstr "" -#: bp-templates/bp-nouveau/includes/groups/functions.php:501 +#: bp-templates/bp-nouveau/includes/groups/functions.php:507 msgid "All Groups" msgstr "" -#: bp-templates/bp-nouveau/includes/groups/functions.php:686 +#: bp-templates/bp-nouveau/includes/groups/functions.php:692 msgid "Group front page" msgstr "" -#: bp-templates/bp-nouveau/includes/groups/functions.php:689 +#: bp-templates/bp-nouveau/includes/groups/functions.php:695 msgid "Configure the default front page for groups." msgstr "" -#: bp-templates/bp-nouveau/includes/groups/functions.php:692 +#: bp-templates/bp-nouveau/includes/groups/functions.php:698 msgid "Group navigation" msgstr "" -#: bp-templates/bp-nouveau/includes/groups/functions.php:695 +#: bp-templates/bp-nouveau/includes/groups/functions.php:701 msgid "" "Customize the navigation menu for groups. See your changes by navigating to " "a group in the live-preview window." msgstr "" -#: bp-templates/bp-nouveau/includes/groups/functions.php:796 +#: bp-templates/bp-nouveau/includes/groups/functions.php:802 msgid "Enable custom front pages for groups." msgstr "" -#: bp-templates/bp-nouveau/includes/groups/functions.php:802 +#: bp-templates/bp-nouveau/includes/groups/functions.php:808 msgid "" "Enable widget region for group homepages. When enabled, the site admin can " "add widgets to group pages via the Widgets panel." msgstr "" -#: bp-templates/bp-nouveau/includes/groups/functions.php:808 +#: bp-templates/bp-nouveau/includes/groups/functions.php:814 msgid "Display the group description in the body of the group's front page." msgstr "" -#: bp-templates/bp-nouveau/includes/groups/functions.php:814 +#: bp-templates/bp-nouveau/includes/groups/functions.php:820 msgid "Display the group navigation vertically." msgstr "" -#: bp-templates/bp-nouveau/includes/groups/functions.php:820 +#: bp-templates/bp-nouveau/includes/groups/functions.php:826 msgid "Use tab styling for primary navigation." msgstr "" -#: bp-templates/bp-nouveau/includes/groups/functions.php:826 +#: bp-templates/bp-nouveau/includes/groups/functions.php:832 msgid "Use tab styling for secondary navigation." msgstr "" -#: bp-templates/bp-nouveau/includes/groups/functions.php:832 +#: bp-templates/bp-nouveau/includes/groups/functions.php:838 msgid "Use tab styling for the group creation process." msgstr "" -#: bp-templates/bp-nouveau/includes/groups/functions.php:839 +#: bp-templates/bp-nouveau/includes/groups/functions.php:845 msgid "Reorder the primary navigation for a group." msgstr "" -#: bp-templates/bp-nouveau/includes/groups/functions.php:852 +#: bp-templates/bp-nouveau/includes/groups/functions.php:858 msgid "Group > Members" msgstr "" -#: bp-templates/bp-nouveau/includes/groups/functions.php:859 +#: bp-templates/bp-nouveau/includes/groups/functions.php:865 msgid "Use column navigation for the Groups directory." msgstr "" -#: bp-templates/bp-nouveau/includes/groups/functions.php:865 +#: bp-templates/bp-nouveau/includes/groups/functions.php:871 msgid "Use tab styling for Groups directory navigation." msgstr "" -#: bp-templates/bp-nouveau/includes/groups/functions.php:1184 +#: bp-templates/bp-nouveau/includes/groups/functions.php:1190 msgid "Pending Group membership requests" msgstr "" -#: bp-templates/bp-nouveau/includes/groups/functions.php:1189 +#: bp-templates/bp-nouveau/includes/groups/functions.php:1195 msgid "Accepted Group membership requests" msgstr "" -#: bp-templates/bp-nouveau/includes/groups/functions.php:1194 +#: bp-templates/bp-nouveau/includes/groups/functions.php:1200 msgid "Rejected Group membership requests" msgstr "" -#: bp-templates/bp-nouveau/includes/groups/functions.php:1199 +#: bp-templates/bp-nouveau/includes/groups/functions.php:1205 msgid "Group Administrator promotions" msgstr "" -#: bp-templates/bp-nouveau/includes/groups/functions.php:1204 +#: bp-templates/bp-nouveau/includes/groups/functions.php:1210 msgid "Group Moderator promotions" msgstr "" @@ -8714,47 +8714,47 @@ msgstr "" msgid "Unauthorized request." msgstr "" -#: bp-templates/bp-nouveau/includes/messages/ajax.php:519 +#: bp-templates/bp-nouveau/includes/messages/ajax.php:524 msgid "There was a problem deleting your messages. Please try again." msgstr "" -#: bp-templates/bp-nouveau/includes/messages/ajax.php:542 +#: bp-templates/bp-nouveau/includes/messages/ajax.php:547 msgid "Messages deleted" msgstr "" -#: bp-templates/bp-nouveau/includes/messages/ajax.php:558 +#: bp-templates/bp-nouveau/includes/messages/ajax.php:563 msgid "There was a problem starring your messages. Please try again." msgstr "" -#: bp-templates/bp-nouveau/includes/messages/ajax.php:560 +#: bp-templates/bp-nouveau/includes/messages/ajax.php:565 msgid "There was a problem unstarring your messages. Please try again." msgstr "" -#: bp-templates/bp-nouveau/includes/messages/ajax.php:634 +#: bp-templates/bp-nouveau/includes/messages/ajax.php:639 msgid "Messages successfully starred." msgstr "" -#: bp-templates/bp-nouveau/includes/messages/ajax.php:636 +#: bp-templates/bp-nouveau/includes/messages/ajax.php:641 msgid "Messages successfully unstarred." msgstr "" -#: bp-templates/bp-nouveau/includes/messages/ajax.php:657 +#: bp-templates/bp-nouveau/includes/messages/ajax.php:662 msgid "There was a problem marking your messages as read. Please try again." msgstr "" -#: bp-templates/bp-nouveau/includes/messages/ajax.php:663 +#: bp-templates/bp-nouveau/includes/messages/ajax.php:668 msgid "There was a problem marking your messages as unread. Please try again." msgstr "" -#: bp-templates/bp-nouveau/includes/messages/ajax.php:683 +#: bp-templates/bp-nouveau/includes/messages/ajax.php:688 msgid "Messages marked as read." msgstr "" -#: bp-templates/bp-nouveau/includes/messages/ajax.php:718 +#: bp-templates/bp-nouveau/includes/messages/ajax.php:723 msgid "There was a problem dismissing the notice. Please try again." msgstr "" -#: bp-templates/bp-nouveau/includes/messages/ajax.php:752 +#: bp-templates/bp-nouveau/includes/messages/ajax.php:757 msgid "Sitewide notice dismissed" msgstr "" @@ -10825,21 +10825,21 @@ msgctxt "Customizer Panel" msgid "BuddyPress Nouveau" msgstr "" -#: bp-templates/bp-nouveau/includes/groups/functions.php:301 #: bp-templates/bp-nouveau/includes/groups/functions.php:307 -#: bp-templates/bp-nouveau/includes/groups/functions.php:327 -#: bp-templates/bp-nouveau/includes/groups/functions.php:338 +#: bp-templates/bp-nouveau/includes/groups/functions.php:313 +#: bp-templates/bp-nouveau/includes/groups/functions.php:333 +#: bp-templates/bp-nouveau/includes/groups/functions.php:344 msgctxt "Group invitations menu title" msgid "Invite" msgstr "" -#: bp-templates/bp-nouveau/includes/groups/functions.php:414 -#: bp-templates/bp-nouveau/includes/groups/functions.php:442 +#: bp-templates/bp-nouveau/includes/groups/functions.php:420 +#: bp-templates/bp-nouveau/includes/groups/functions.php:448 msgctxt "Group invitations main menu title" msgid "Group Invites" msgstr "" -#: bp-templates/bp-nouveau/includes/groups/functions.php:845 +#: bp-templates/bp-nouveau/includes/groups/functions.php:851 msgctxt "Customizer control label" msgid "Groups" msgstr "" diff --git a/wp-content/plugins/buddypress/class-buddypress.php b/wp-content/plugins/buddypress/class-buddypress.php index b86bff5afe87a362ae5f5a944acaf5004b46fd00..ed2ac220994374c4232381ed1c57147e523896fe 100644 --- a/wp-content/plugins/buddypress/class-buddypress.php +++ b/wp-content/plugins/buddypress/class-buddypress.php @@ -303,7 +303,7 @@ class BuddyPress { /** Versions **********************************************************/ - $this->version = '4.2.0'; + $this->version = '4.3.0'; $this->db_version = 11105; /** Loading ***********************************************************/ diff --git a/wp-content/plugins/buddypress/readme.txt b/wp-content/plugins/buddypress/readme.txt index 59c2321e9c690083cc319da17822a146eb0720ae..3e3d6644e429e3ed12000dc2512bb6bb2a63ffb1 100644 --- a/wp-content/plugins/buddypress/readme.txt +++ b/wp-content/plugins/buddypress/readme.txt @@ -2,9 +2,9 @@ Contributors: johnjamesjacoby, DJPaul, boonebgorges, r-a-y, imath, mercime, tw2113, dcavins, hnla, karmatosed, slaFFik, dimensionmedia, henrywright, netweb, offereins, espellcaste, modemlooper, danbp, Venutius, apeatling, shanebp Tags: user profiles, activity streams, messaging, friends, user groups, notifications, community, social networking Requires at least: 4.6 -Tested up to: 5.0 +Tested up to: 5.1 Requires PHP: 5.3 -Stable tag: 4.2.0 +Stable tag: 4.3.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -126,6 +126,9 @@ Try <a href="https://wordpress.org/plugins/bbpress/">bbPress</a>. It integrates == Upgrade Notice == += 4.3.0 = +See: https://codex.buddypress.org/releases/version-4-3-0/ + = 4.2.0 = See: https://codex.buddypress.org/releases/version-4-2-0/ @@ -137,6 +140,9 @@ See: https://codex.buddypress.org/releases/version-4-0-0/ == Changelog == += 4.3.0 = +See: https://codex.buddypress.org/releases/version-4-3-0/ + = 4.2.0 = See: https://codex.buddypress.org/releases/version-4-2-0/