BuddyPress - Version 4.3.0

Version Description

See: https://codex.buddypress.org/releases/version-4-3-0/

Download this release

Release Info

Developer boonebgorges
Plugin Icon 128x128 BuddyPress
Version 4.3.0
Comparing to
See all releases

Code changes from version 4.2.0 to 4.3.0

bp-activity/actions/favorite.php CHANGED
@@ -21,6 +21,11 @@ function bp_activity_action_mark_favorite() {
21
  // Check the nonce.
22
  check_admin_referer( 'mark_favorite' );
23
 
 
 
 
 
 
24
  if ( bp_activity_add_user_favorite( bp_action_variable( 0 ) ) )
25
  bp_core_add_message( __( 'Activity marked as favorite.', 'buddypress' ) );
26
  else
21
  // Check the nonce.
22
  check_admin_referer( 'mark_favorite' );
23
 
24
+ $activity_item = new BP_Activity_Activity( bp_action_variable( 0 ) );
25
+ if ( ! bp_activity_user_can_read( $activity_item, bp_loggedin_user_id() ) ) {
26
+ return false;
27
+ }
28
+
29
  if ( bp_activity_add_user_favorite( bp_action_variable( 0 ) ) )
30
  bp_core_add_message( __( 'Activity marked as favorite.', 'buddypress' ) );
31
  else
bp-activity/actions/reply.php CHANGED
@@ -44,6 +44,12 @@ function bp_activity_action_post_comment() {
44
  bp_core_redirect( wp_get_referer() . '#ac-form-' . $activity_id );
45
  }
46
 
 
 
 
 
 
 
47
  $comment_id = bp_activity_new_comment( array(
48
  'content' => $content,
49
  'activity_id' => $activity_id,
44
  bp_core_redirect( wp_get_referer() . '#ac-form-' . $activity_id );
45
  }
46
 
47
+ $activity_item = new BP_Activity_Activity( $activity_id );
48
+ if ( ! bp_activity_user_can_read( $activity_item ) ) {
49
+ bp_core_add_message( __( 'There was an error posting that reply. Please try again.', 'buddypress' ), 'error' );
50
+ bp_core_redirect( wp_get_referer() . '#ac-form-' . $activity_id );
51
+ }
52
+
53
  $comment_id = bp_activity_new_comment( array(
54
  'content' => $content,
55
  'activity_id' => $activity_id,
bp-activity/bp-activity-filters.php CHANGED
@@ -15,7 +15,6 @@ defined( 'ABSPATH' ) || exit;
15
  // Apply WordPress defined filters.
16
  add_filter( 'bp_get_activity_action', 'bp_activity_filter_kses', 1 );
17
  add_filter( 'bp_get_activity_content_body', 'bp_activity_filter_kses', 1 );
18
- add_filter( 'bp_get_activity_content', 'bp_activity_filter_kses', 1 );
19
  add_filter( 'bp_get_activity_parent_content', 'bp_activity_filter_kses', 1 );
20
  add_filter( 'bp_get_activity_latest_update', 'bp_activity_filter_kses', 1 );
21
  add_filter( 'bp_get_activity_latest_update_excerpt', 'bp_activity_filter_kses', 1 );
@@ -205,6 +204,14 @@ function bp_activity_check_blacklist_keys( $activity ) {
205
  * @return string $content Filtered activity content.
206
  */
207
  function bp_activity_filter_kses( $content ) {
 
 
 
 
 
 
 
 
208
  /**
209
  * Filters the allowed HTML tags for BuddyPress Activity content.
210
  *
@@ -212,7 +219,7 @@ function bp_activity_filter_kses( $content ) {
212
  *
213
  * @param array $value Array of allowed HTML tags and attributes.
214
  */
215
- $activity_allowedtags = apply_filters( 'bp_activity_allowed_tags', bp_get_allowedtags() );
216
  return wp_kses( $content, $activity_allowedtags );
217
  }
218
 
15
  // Apply WordPress defined filters.
16
  add_filter( 'bp_get_activity_action', 'bp_activity_filter_kses', 1 );
17
  add_filter( 'bp_get_activity_content_body', 'bp_activity_filter_kses', 1 );
 
18
  add_filter( 'bp_get_activity_parent_content', 'bp_activity_filter_kses', 1 );
19
  add_filter( 'bp_get_activity_latest_update', 'bp_activity_filter_kses', 1 );
20
  add_filter( 'bp_get_activity_latest_update_excerpt', 'bp_activity_filter_kses', 1 );
204
  * @return string $content Filtered activity content.
205
  */
206
  function bp_activity_filter_kses( $content ) {
207
+ $activity_allowedtags = bp_get_allowedtags();
208
+
209
+ // Don't allow 'class' or 'id'.
210
+ foreach ( $activity_allowedtags as $el => &$atts ) {
211
+ unset( $atts['class'] );
212
+ unset( $atts['id'] );
213
+ }
214
+
215
  /**
216
  * Filters the allowed HTML tags for BuddyPress Activity content.
217
  *
219
  *
220
  * @param array $value Array of allowed HTML tags and attributes.
221
  */
222
+ $activity_allowedtags = apply_filters( 'bp_activity_allowed_tags', $activity_allowedtags );
223
  return wp_kses( $content, $activity_allowedtags );
224
  }
225
 
bp-groups/bp-groups-activity.php CHANGED
@@ -297,6 +297,119 @@ function bp_groups_filter_activity_scope( $retval = array(), $filter = array() )
297
  }
298
  add_filter( 'bp_activity_set_groups_scope_args', 'bp_groups_filter_activity_scope', 10, 2 );
299
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
300
  /**
301
  * Record an activity item related to the Groups component.
302
  *
297
  }
298
  add_filter( 'bp_activity_set_groups_scope_args', 'bp_groups_filter_activity_scope', 10, 2 );
299
 
300
+ /**
301
+ * Enforces group membership restrictions on activity favorite queries.
302
+ *
303
+ * @since 4.3.0
304
+
305
+ * @param array $retval Query arguments.
306
+ * @param array $filter
307
+ * @return array
308
+ */
309
+ function bp_groups_filter_activity_favorites_scope( $retval, $filter ) {
310
+ // Only process for viewers looking at their own favorites feed.
311
+ if ( ! empty( $filter['user_id'] ) ) {
312
+ $user_id = (int) $filter['user_id'];
313
+ } else {
314
+ $user_id = bp_displayed_user_id() ? bp_displayed_user_id() : bp_loggedin_user_id();
315
+ }
316
+
317
+ if ( ! $user_id || ! is_user_logged_in() || $user_id !== bp_loggedin_user_id() ) {
318
+ return $retval;
319
+ }
320
+
321
+ $favs = bp_activity_get_user_favorites( $user_id );
322
+ if ( empty( $favs ) ) {
323
+ return $retval;
324
+ }
325
+
326
+ $user_groups = bp_get_user_groups(
327
+ $user_id,
328
+ array(
329
+ 'is_admin' => null,
330
+ 'is_mod' => null,
331
+ )
332
+ );
333
+
334
+ $retval = array(
335
+ 'relation' => 'OR',
336
+
337
+ // Allow hidden items for items unconnected to groups.
338
+ 'non_groups' => array(
339
+ 'relation' => 'AND',
340
+ array(
341
+ 'column' => 'component',
342
+ 'compare' => '!=',
343
+ 'value' => buddypress()->groups->id,
344
+ ),
345
+ array(
346
+ 'column' => 'hide_sitewide',
347
+ 'compare' => 'IN',
348
+ 'value' => array( 1, 0 ),
349
+ ),
350
+ array(
351
+ 'column' => 'id',
352
+ 'compare' => 'IN',
353
+ 'value' => $favs,
354
+ ),
355
+ ),
356
+
357
+ // Trust the favorites list for group items that are not hidden sitewide.
358
+ 'non_hidden_groups' => array(
359
+ 'relation' => 'AND',
360
+ array(
361
+ 'column' => 'component',
362
+ 'compare' => '=',
363
+ 'value' => buddypress()->groups->id,
364
+ ),
365
+ array(
366
+ 'column' => 'hide_sitewide',
367
+ 'compare' => '=',
368
+ 'value' => 0,
369
+ ),
370
+ array(
371
+ 'column' => 'id',
372
+ 'compare' => 'IN',
373
+ 'value' => $favs,
374
+ ),
375
+ ),
376
+
377
+ // For hidden group items, limit to those in the user's groups.
378
+ 'hidden_groups' => array(
379
+ 'relation' => 'AND',
380
+ array(
381
+ 'column' => 'component',
382
+ 'compare' => '=',
383
+ 'value' => buddypress()->groups->id,
384
+ ),
385
+ array(
386
+ 'column' => 'hide_sitewide',
387
+ 'compare' => '=',
388
+ 'value' => 1,
389
+ ),
390
+ array(
391
+ 'column' => 'id',
392
+ 'compare' => 'IN',
393
+ 'value' => $favs,
394
+ ),
395
+ array(
396
+ 'column' => 'item_id',
397
+ 'compare' => 'IN',
398
+ 'value' => wp_list_pluck( $user_groups, 'group_id' ),
399
+ ),
400
+ ),
401
+
402
+ 'override' => array(
403
+ 'display_comments' => true,
404
+ 'filter' => array( 'user_id' => 0 ),
405
+ 'show_hidden' => true,
406
+ ),
407
+ );
408
+
409
+ return $retval;
410
+ }
411
+ add_filter( 'bp_activity_set_favorites_scope_args', 'bp_groups_filter_activity_favorites_scope', 20, 2 );
412
+
413
  /**
414
  * Record an activity item related to the Groups component.
415
  *
bp-groups/screens/single/admin/edit-details.php CHANGED
@@ -33,7 +33,7 @@ function groups_screen_group_admin_edit_details() {
33
  if ( empty( $_POST['group-name'] ) || empty( $_POST['group-desc'] ) ) {
34
  bp_core_add_message( __( 'Groups must have a name and a description. Please try again.', 'buddypress' ), 'error' );
35
  } elseif ( ! groups_edit_base_group_details( array(
36
- 'group_id' => $_POST['group-id'],
37
  'name' => $_POST['group-name'],
38
  'slug' => null, // @TODO: Add to settings pane? If yes, editable by site admin only, or allow group admins to do this?
39
  'description' => $_POST['group-desc'],
33
  if ( empty( $_POST['group-name'] ) || empty( $_POST['group-desc'] ) ) {
34
  bp_core_add_message( __( 'Groups must have a name and a description. Please try again.', 'buddypress' ), 'error' );
35
  } elseif ( ! groups_edit_base_group_details( array(
36
+ 'group_id' => bp_get_current_group_id(),
37
  'name' => $_POST['group-name'],
38
  'slug' => null, // @TODO: Add to settings pane? If yes, editable by site admin only, or allow group admins to do this?
39
  'description' => $_POST['group-desc'],
bp-groups/screens/single/admin/group-settings.php CHANGED
@@ -40,18 +40,20 @@ function groups_screen_group_admin_settings() {
40
  if ( !check_admin_referer( 'groups_edit_group_settings' ) )
41
  return false;
42
 
 
 
43
  /*
44
  * Save group types.
45
  *
46
  * Ensure we keep types that have 'show_in_create_screen' set to false.
47
  */
48
- $current_types = bp_groups_get_group_type( bp_get_current_group_id(), false );
49
  $current_types = array_intersect( bp_groups_get_group_types( array( 'show_in_create_screen' => false ) ), (array) $current_types );
50
  if ( isset( $_POST['group-types'] ) ) {
51
  $current_types = array_merge( $current_types, $_POST['group-types'] );
52
 
53
  // Set group types.
54
- bp_groups_set_group_type( bp_get_current_group_id(), $current_types );
55
 
56
  // No group types checked, so this means we want to wipe out all group types.
57
  } else {
@@ -63,10 +65,10 @@ function groups_screen_group_admin_settings() {
63
  $current_types = empty( $current_types ) ? '' : $current_types;
64
 
65
  // Set group types.
66
- bp_groups_set_group_type( bp_get_current_group_id(), $current_types );
67
  }
68
 
69
- if ( !groups_edit_group_settings( $_POST['group-id'], $enable_forum, $status, $invite_status ) ) {
70
  bp_core_add_message( __( 'There was an error updating group settings. Please try again.', 'buddypress' ), 'error' );
71
  } else {
72
  bp_core_add_message( __( 'Group settings were successfully updated.', 'buddypress' ) );
40
  if ( !check_admin_referer( 'groups_edit_group_settings' ) )
41
  return false;
42
 
43
+ $group_id = bp_get_current_group_id();
44
+
45
  /*
46
  * Save group types.
47
  *
48
  * Ensure we keep types that have 'show_in_create_screen' set to false.
49
  */
50
+ $current_types = bp_groups_get_group_type( $group_id, false );
51
  $current_types = array_intersect( bp_groups_get_group_types( array( 'show_in_create_screen' => false ) ), (array) $current_types );
52
  if ( isset( $_POST['group-types'] ) ) {
53
  $current_types = array_merge( $current_types, $_POST['group-types'] );
54
 
55
  // Set group types.
56
+ bp_groups_set_group_type( $group_id, $current_types );
57
 
58
  // No group types checked, so this means we want to wipe out all group types.
59
  } else {
65
  $current_types = empty( $current_types ) ? '' : $current_types;
66
 
67
  // Set group types.
68
+ bp_groups_set_group_type( $group_id, $current_types );
69
  }
70
 
71
+ if ( ! groups_edit_group_settings( $group_id, $enable_forum, $status, $invite_status ) ) {
72
  bp_core_add_message( __( 'There was an error updating group settings. Please try again.', 'buddypress' ), 'error' );
73
  } else {
74
  bp_core_add_message( __( 'Group settings were successfully updated.', 'buddypress' ) );
bp-loader.php CHANGED
@@ -15,7 +15,7 @@
15
  * Description: BuddyPress adds community features to WordPress. Member Profiles, Activity Streams, Direct Messaging, Notifications, and more!
16
  * Author: The BuddyPress Community
17
  * Author URI: https://buddypress.org/
18
- * Version: 4.2.0
19
  * Text Domain: buddypress
20
  * Domain Path: /bp-languages/
21
  * License: GPLv2 or later (license.txt)
15
  * Description: BuddyPress adds community features to WordPress. Member Profiles, Activity Streams, Direct Messaging, Notifications, and more!
16
  * Author: The BuddyPress Community
17
  * Author URI: https://buddypress.org/
18
+ * Version: 4.3.0
19
  * Text Domain: buddypress
20
  * Domain Path: /bp-languages/
21
  * License: GPLv2 or later (license.txt)
bp-templates/bp-legacy/buddypress-functions.php CHANGED
@@ -1056,8 +1056,14 @@ function bp_legacy_theme_new_activity_comment() {
1056
  exit( '-1<div id="message" class="error bp-ajax-message"><p>' . esc_html( $feedback ) . '</p></div>' );
1057
  }
1058
 
 
 
 
 
 
 
1059
  $comment_id = bp_activity_new_comment( array(
1060
- 'activity_id' => $_POST['form_id'],
1061
  'content' => $_POST['content'],
1062
  'parent_id' => $_POST['comment_id'],
1063
  'error_type' => 'wp_error'
@@ -1242,6 +1248,12 @@ function bp_legacy_theme_mark_activity_favorite() {
1242
  return;
1243
  }
1244
 
 
 
 
 
 
 
1245
  if ( bp_activity_add_user_favorite( $_POST['id'] ) )
1246
  _e( 'Remove Favorite', 'buddypress' );
1247
  else
1056
  exit( '-1<div id="message" class="error bp-ajax-message"><p>' . esc_html( $feedback ) . '</p></div>' );
1057
  }
1058
 
1059
+ $activity_id = (int) $_POST['form_id'];
1060
+ $activity_item = new BP_Activity_Activity( $activity_id );
1061
+ if ( ! bp_activity_user_can_read( $activity_item ) ) {
1062
+ exit( '-1<div id="message" class="error bp-ajax-message"><p>' . esc_html( $feedback ) . '</p></div>' );
1063
+ }
1064
+
1065
  $comment_id = bp_activity_new_comment( array(
1066
+ 'activity_id' => $activity_id,
1067
  'content' => $_POST['content'],
1068
  'parent_id' => $_POST['comment_id'],
1069
  'error_type' => 'wp_error'
1248
  return;
1249
  }
1250
 
1251
+ $activity_id = (int) $_POST['id'];
1252
+ $activity_item = new BP_Activity_Activity( $activity_id );
1253
+ if ( ! bp_activity_user_can_read( $activity_item, bp_loggedin_user_id() ) ) {
1254
+ return;
1255
+ }
1256
+
1257
  if ( bp_activity_add_user_favorite( $_POST['id'] ) )
1258
  _e( 'Remove Favorite', 'buddypress' );
1259
  else
bp-templates/bp-legacy/buddypress/groups/create.php CHANGED
@@ -73,7 +73,7 @@ do_action( 'bp_before_create_group_page' ); ?>
73
 
74
  <div>
75
  <label for="group-name"><?php _e( 'Group Name (required)', 'buddypress' ); ?></label>
76
- <input type="text" name="group-name" id="group-name" aria-required="true" value="<?php bp_new_group_name(); ?>" />
77
  </div>
78
 
79
  <div>
73
 
74
  <div>
75
  <label for="group-name"><?php _e( 'Group Name (required)', 'buddypress' ); ?></label>
76
+ <input type="text" name="group-name" id="group-name" aria-required="true" value="<?php echo esc_attr( bp_get_new_group_name() ); ?>" />
77
  </div>
78
 
79
  <div>
bp-templates/bp-legacy/buddypress/groups/single/admin/edit-details.php CHANGED
@@ -21,7 +21,7 @@
21
  do_action( 'bp_before_group_details_admin' ); ?>
22
 
23
  <label for="group-name"><?php _e( 'Group Name (required)', 'buddypress' ); ?></label>
24
- <input type="text" name="group-name" id="group-name" value="<?php bp_group_name(); ?>" aria-required="true" />
25
 
26
  <label for="group-desc"><?php _e( 'Group Description (required)', 'buddypress' ); ?></label>
27
  <textarea name="group-desc" id="group-desc" aria-required="true"><?php bp_group_description_editable(); ?></textarea>
21
  do_action( 'bp_before_group_details_admin' ); ?>
22
 
23
  <label for="group-name"><?php _e( 'Group Name (required)', 'buddypress' ); ?></label>
24
+ <input type="text" name="group-name" id="group-name" value="<?php echo esc_attr( bp_get_group_name() ); ?>" aria-required="true" />
25
 
26
  <label for="group-desc"><?php _e( 'Group Description (required)', 'buddypress' ); ?></label>
27
  <textarea name="group-desc" id="group-desc" aria-required="true"><?php bp_group_description_editable(); ?></textarea>
bp-templates/bp-legacy/js/buddypress.js CHANGED
@@ -1869,7 +1869,7 @@ function bp_filter_request( object, filter, scope, target, search_terms, page, e
1869
  // Get directory preferences (called "cookie" for legacy reasons).
1870
  var cookies = {};
1871
  cookies['bp-' + object + '-filter'] = bp_get_directory_preference( object, 'filter' );
1872
- cookies['bp' + object + '-scope'] = bp_get_directory_preference( object, 'scope' );
1873
 
1874
  var cookie = encodeURIComponent( jq.param( cookies ) );
1875
 
1869
  // Get directory preferences (called "cookie" for legacy reasons).
1870
  var cookies = {};
1871
  cookies['bp-' + object + '-filter'] = bp_get_directory_preference( object, 'filter' );
1872
+ cookies['bp-' + object + '-scope'] = bp_get_directory_preference( object, 'scope' );
1873
 
1874
  var cookie = encodeURIComponent( jq.param( cookies ) );
1875
 
bp-templates/bp-legacy/js/buddypress.min.js CHANGED
@@ -1 +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>"))})});
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>"))})});
bp-templates/bp-nouveau/buddypress/blogs/blogs-loop.php CHANGED
@@ -4,6 +4,7 @@
4
  *
5
  * @since 3.0.0
6
  * @version 3.0.0
 
7
  */
8
 
9
  bp_nouveau_before_loop(); ?>
@@ -63,7 +64,7 @@ bp_nouveau_before_loop(); ?>
63
 
64
  <?php else : ?>
65
 
66
- bp_nouveau_user_feedback( 'blogs-loop-none' );
67
 
68
  <?php endif; ?>
69
 
4
  *
5
  * @since 3.0.0
6
  * @version 3.0.0
7
+ * @version 4.3.0
8
  */
9
 
10
  bp_nouveau_before_loop(); ?>
64
 
65
  <?php else : ?>
66
 
67
+ <?php bp_nouveau_user_feedback( 'blogs-loop-none' ); ?>
68
 
69
  <?php endif; ?>
70
 
bp-templates/bp-nouveau/buddypress/groups/single/admin/edit-details.php CHANGED
@@ -23,7 +23,7 @@
23
  <?php endif; ?>
24
 
25
  <label for="group-name"><?php esc_html_e( 'Group Name (required)', 'buddypress' ); ?></label>
26
- <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" />
27
 
28
  <label for="group-desc"><?php esc_html_e( 'Group Description (required)', 'buddypress' ); ?></label>
29
  <textarea name="group-desc" id="group-desc" aria-required="true"><?php bp_is_group_create() ? bp_new_group_description() : bp_group_description_editable(); ?></textarea>
23
  <?php endif; ?>
24
 
25
  <label for="group-name"><?php esc_html_e( 'Group Name (required)', 'buddypress' ); ?></label>
26
+ <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" />
27
 
28
  <label for="group-desc"><?php esc_html_e( 'Group Description (required)', 'buddypress' ); ?></label>
29
  <textarea name="group-desc" id="group-desc" aria-required="true"><?php bp_is_group_create() ? bp_new_group_description() : bp_group_description_editable(); ?></textarea>
bp-templates/bp-nouveau/includes/activity/ajax.php CHANGED
@@ -101,6 +101,12 @@ function bp_nouveau_ajax_mark_activity_favorite() {
101
  wp_send_json_error();
102
  }
103
 
 
 
 
 
 
 
104
  if ( bp_activity_add_user_favorite( $_POST['id'] ) ) {
105
  $response = array( 'content' => __( 'Remove Favorite', 'buddypress' ) );
106
 
@@ -354,6 +360,12 @@ function bp_nouveau_ajax_new_activity_comment() {
354
  wp_send_json_error( $response );
355
  }
356
 
 
 
 
 
 
 
357
  $comment_id = bp_activity_new_comment( array(
358
  'activity_id' => $_POST['form_id'],
359
  'content' => $_POST['content'],
101
  wp_send_json_error();
102
  }
103
 
104
+ $activity_id = (int) $_POST['id'];
105
+ $activity_item = new BP_Activity_Activity( $activity_id );
106
+ if ( ! bp_activity_user_can_read( $activity_item, bp_loggedin_user_id() ) ) {
107
+ wp_send_json_error();
108
+ }
109
+
110
  if ( bp_activity_add_user_favorite( $_POST['id'] ) ) {
111
  $response = array( 'content' => __( 'Remove Favorite', 'buddypress' ) );
112
 
360
  wp_send_json_error( $response );
361
  }
362
 
363
+ $activity_id = (int) $_POST['form_id'];
364
+ $activity_item = new BP_Activity_Activity( $activity_id );
365
+ if ( ! bp_activity_user_can_read( $activity_item ) ) {
366
+ wp_send_json_error( $response );
367
+ }
368
+
369
  $comment_id = bp_activity_new_comment( array(
370
  'activity_id' => $_POST['form_id'],
371
  'content' => $_POST['content'],
bp-templates/bp-nouveau/includes/groups/ajax.php CHANGED
@@ -97,6 +97,10 @@ function bp_nouveau_ajax_joinleave_group() {
97
  switch ( $_POST['action'] ) {
98
 
99
  case 'groups_accept_invite':
 
 
 
 
100
  if ( ! groups_accept_invite( bp_loggedin_user_id(), $group_id ) ) {
101
  $response = array(
102
  'feedback' => sprintf(
@@ -444,14 +448,30 @@ function bp_nouveau_ajax_remove_group_invite() {
444
  $user_id = (int) $_POST['user'];
445
  $group_id = bp_get_current_group_id();
446
 
 
 
 
 
 
447
  // Verify nonce
448
  if ( empty( $_POST['_wpnonce'] ) || ! wp_verify_nonce( $_POST['_wpnonce'], 'groups_invite_uninvite_user' ) ) {
449
- wp_send_json_error(
450
- array(
451
- 'feedback' => __( 'Group invitation could not be removed.', 'buddypress' ),
452
- 'type' => 'error',
453
- )
454
- );
 
 
 
 
 
 
 
 
 
 
 
455
  }
456
 
457
  if ( BP_Groups_Member::check_for_membership_request( $user_id, $group_id ) ) {
97
  switch ( $_POST['action'] ) {
98
 
99
  case 'groups_accept_invite':
100
+ if ( ! groups_check_user_has_invite( bp_loggedin_user_id(), $group_id ) ) {
101
+ wp_send_json_error( $response );
102
+ }
103
+
104
  if ( ! groups_accept_invite( bp_loggedin_user_id(), $group_id ) ) {
105
  $response = array(
106
  'feedback' => sprintf(
448
  $user_id = (int) $_POST['user'];
449
  $group_id = bp_get_current_group_id();
450
 
451
+ $response = array(
452
+ 'feedback' => __( 'Group invitation could not be removed.', 'buddypress' ),
453
+ 'type' => 'error',
454
+ );
455
+
456
  // Verify nonce
457
  if ( empty( $_POST['_wpnonce'] ) || ! wp_verify_nonce( $_POST['_wpnonce'], 'groups_invite_uninvite_user' ) ) {
458
+ wp_send_json_error( $response );
459
+ }
460
+
461
+ // Verify pending invite.
462
+ $invites_args = array(
463
+ 'is_confirmed' => false,
464
+ 'is_banned' => null,
465
+ 'is_admin' => null,
466
+ 'is_mod' => null,
467
+ );
468
+ $invites = bp_get_user_groups( $user_id, $invites_args );
469
+ if ( empty( $invites ) ) {
470
+ wp_send_json_error( $response );
471
+ }
472
+
473
+ if ( ! groups_is_user_admin( bp_loggedin_user_id(), $group_id ) ) {
474
+ wp_send_json_error( $response );
475
  }
476
 
477
  if ( BP_Groups_Member::check_for_membership_request( $user_id, $group_id ) ) {
bp-templates/bp-nouveau/includes/groups/functions.php CHANGED
@@ -258,6 +258,12 @@ function bp_nouveau_get_group_potential_invites( $args = array() ) {
258
  return false;
259
  }
260
 
 
 
 
 
 
 
261
  /*
262
  * If it's not a friend request and users can restrict invites to friends,
263
  * make sure they are not displayed in results.
258
  return false;
259
  }
260
 
261
+ // Check the current user's access to the group.
262
+ $group = groups_get_group( $r['group_id'] );
263
+ if ( ! $group->user_has_access && ! bp_current_user_can( 'bp_moderate' ) ) {
264
+ return false;
265
+ }
266
+
267
  /*
268
  * If it's not a friend request and users can restrict invites to friends,
269
  * make sure they are not displayed in results.
bp-templates/bp-nouveau/includes/messages/ajax.php CHANGED
@@ -415,7 +415,12 @@ function bp_nouveau_ajax_get_thread_messages() {
415
  wp_send_json_error( $response );
416
  }
417
 
418
- $thread_id = (int) $_POST['id'];
 
 
 
 
 
419
  $bp = buddypress();
420
  $reset_action = $bp->current_action;
421
 
415
  wp_send_json_error( $response );
416
  }
417
 
418
+ $thread_id = (int) $_POST['id'];
419
+
420
+ if ( ! messages_is_valid_thread( $thread_id ) || ( ! messages_check_thread_access( $thread_id ) && ! bp_current_user_can( 'bp_moderate' ) ) ) {
421
+ wp_send_json_error();
422
+ }
423
+
424
  $bp = buddypress();
425
  $reset_action = $bp->current_action;
426
 
bp-templates/bp-nouveau/js/buddypress-activity.js CHANGED
@@ -345,7 +345,11 @@ window.bp = window.bp || {};
345
 
346
  // Prepend a link to display all
347
  if ( ! i ) {
348
- $( 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>' );
 
 
 
 
349
  }
350
  }
351
  } );
345
 
346
  // Prepend a link to display all
347
  if ( ! i ) {
348
+ var activity_id = activity_item.data( 'bpActivityId' );
349
+ if ( 'undefined' !== typeof activity_id ) {
350
+ activity_id = parseInt( activity_id, 10 );
351
+ $( 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>' );
352
+ }
353
  }
354
  }
355
  } );
bp-templates/bp-nouveau/js/buddypress-activity.min.js CHANGED
@@ -1 +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);
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){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);
buddypress.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the GPLv2 or later (license.txt).
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: BuddyPress 4.2.0\n"
6
  "Report-Msgid-Bugs-To: https://buddypress.trac.wordpress.org\n"
7
- "POT-Creation-Date: 2019-02-20 15:34:23+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -14,7 +14,7 @@ msgstr ""
14
  "X-Generator: grunt-wp-i18n 1.0.3\n"
15
 
16
  #: bp-activity/actions/delete.php:52
17
- #: bp-templates/bp-nouveau/includes/activity/ajax.php:249
18
  msgid "Activity deleted successfully"
19
  msgstr ""
20
 
@@ -22,11 +22,11 @@ msgstr ""
22
  msgid "There was an error when deleting that activity"
23
  msgstr ""
24
 
25
- #: bp-activity/actions/favorite.php:25
26
  msgid "Activity marked as favorite."
27
  msgstr ""
28
 
29
- #: bp-activity/actions/favorite.php:27
30
  msgid "There was an error marking that activity as a favorite. Please try again."
31
  msgstr ""
32
 
@@ -94,7 +94,7 @@ msgstr ""
94
 
95
  #: bp-activity/actions/post.php:60
96
  #: bp-templates/bp-legacy/buddypress-functions.php:960
97
- #: bp-templates/bp-nouveau/includes/activity/ajax.php:478
98
  msgid "Please enter some content to post."
99
  msgstr ""
100
 
@@ -108,16 +108,16 @@ msgstr ""
108
 
109
  #: bp-activity/actions/reply.php:43
110
  #: bp-templates/bp-legacy/buddypress-functions.php:1052
111
- #: bp-templates/bp-nouveau/includes/activity/ajax.php:349
112
  msgid "Please do not leave the comment area blank."
113
  msgstr ""
114
 
115
- #: bp-activity/actions/reply.php:54
116
- msgid "Reply Posted!"
117
  msgstr ""
118
 
119
- #: bp-activity/actions/reply.php:56
120
- msgid "There was an error posting that reply. Please try again."
121
  msgstr ""
122
 
123
  #: bp-activity/actions/spam.php:59
@@ -486,19 +486,19 @@ msgstr ""
486
  msgid "Your browser does not support HTML5 audio"
487
  msgstr ""
488
 
489
- #: bp-activity/bp-activity-filters.php:428
490
  msgid "[Read more]"
491
  msgstr ""
492
 
493
- #: bp-activity/bp-activity-filters.php:432
494
  msgid "&hellip;"
495
  msgstr ""
496
 
497
- #: bp-activity/bp-activity-filters.php:638
498
  msgid "Load Newest"
499
  msgstr ""
500
 
501
- #: bp-activity/bp-activity-filters.php:821
502
  msgid "BuddyPress Activity Data"
503
  msgstr ""
504
 
@@ -528,7 +528,7 @@ msgstr ""
528
 
529
  #: bp-activity/bp-activity-functions.php:2592
530
  #: bp-templates/bp-legacy/buddypress-functions.php:1049
531
- #: bp-templates/bp-nouveau/includes/activity/ajax.php:328
532
  msgid "There was an error posting your reply. Please try again."
533
  msgstr ""
534
 
@@ -2743,7 +2743,7 @@ msgid "Activate Your Account"
2743
  msgstr ""
2744
 
2745
  #: bp-core/bp-core-template.php:3123 bp-groups/bp-groups-template.php:3394
2746
- #: bp-templates/bp-nouveau/includes/groups/functions.php:530
2747
  msgid "Create a Group"
2748
  msgstr ""
2749
 
@@ -3564,7 +3564,7 @@ msgid "You already have a pending friendship request with this user"
3564
  msgstr ""
3565
 
3566
  #: bp-friends/actions/remove-friend.php:33
3567
- #: bp-templates/bp-legacy/buddypress-functions.php:1433
3568
  msgid "Friendship could not be canceled."
3569
  msgstr ""
3570
 
@@ -3715,7 +3715,7 @@ msgid "%d friends"
3715
  msgstr ""
3716
 
3717
  #: bp-friends/bp-friends-template.php:371
3718
- #: bp-templates/bp-legacy/buddypress-functions.php:1445
3719
  msgid "Cancel Friendship Request"
3720
  msgstr ""
3721
 
@@ -3728,8 +3728,8 @@ msgid "Cancel Friendship"
3728
  msgstr ""
3729
 
3730
  #: bp-friends/bp-friends-template.php:419
3731
- #: bp-templates/bp-legacy/buddypress-functions.php:1435
3732
- #: bp-templates/bp-legacy/buddypress-functions.php:1453
3733
  msgid "Add Friend"
3734
  msgstr ""
3735
 
@@ -3914,7 +3914,7 @@ msgstr ""
3914
  msgid "%1$s created the group %2$s"
3915
  msgstr ""
3916
 
3917
- #: bp-groups/bp-groups-activity.php:109 bp-groups/bp-groups-activity.php:457
3918
  msgid "%1$s joined the group %2$s"
3919
  msgstr ""
3920
 
@@ -4515,13 +4515,13 @@ msgid ""
4515
  msgstr ""
4516
 
4517
  #: bp-groups/bp-groups-template.php:3277
4518
- #: bp-templates/bp-legacy/buddypress-functions.php:1549
4519
- #: bp-templates/bp-legacy/buddypress-functions.php:1563
4520
  msgid "Leave Group"
4521
  msgstr ""
4522
 
4523
  #: bp-groups/bp-groups-template.php:3298
4524
- #: bp-templates/bp-legacy/buddypress-functions.php:1583
4525
  msgid "Join Group"
4526
  msgstr ""
4527
 
@@ -4530,12 +4530,12 @@ msgid "Accept Invitation"
4530
  msgstr ""
4531
 
4532
  #: bp-groups/bp-groups-template.php:3331
4533
- #: bp-templates/bp-legacy/buddypress-functions.php:1573
4534
  msgid "Request Sent"
4535
  msgstr ""
4536
 
4537
  #: bp-groups/bp-groups-template.php:3346
4538
- #: bp-templates/bp-legacy/buddypress-functions.php:1585
4539
  msgid "Request Membership"
4540
  msgstr ""
4541
 
@@ -4615,7 +4615,7 @@ msgstr ""
4615
  #: bp-templates/bp-legacy/buddypress/members/single/friends.php:24
4616
  #: bp-templates/bp-legacy/buddypress/members/single/groups.php:25
4617
  #: bp-templates/bp-nouveau/includes/blogs/functions.php:108
4618
- #: bp-templates/bp-nouveau/includes/groups/functions.php:588
4619
  #: bp-templates/bp-nouveau/includes/members/functions.php:102
4620
  #: bp-templates/bp-nouveau/includes/members/functions.php:120
4621
  msgid "Alphabetical"
@@ -4829,11 +4829,11 @@ msgstr ""
4829
  msgid "The new group profile photo was uploaded successfully."
4830
  msgstr ""
4831
 
4832
- #: bp-groups/screens/single/admin/group-settings.php:70
4833
  msgid "There was an error updating group settings. Please try again."
4834
  msgstr ""
4835
 
4836
- #: bp-groups/screens/single/admin/group-settings.php:72
4837
  msgid "Group settings were successfully updated."
4838
  msgstr ""
4839
 
@@ -4932,12 +4932,12 @@ msgid "Group invite accepted. Visit %s."
4932
  msgstr ""
4933
 
4934
  #: bp-groups/screens/user/invites.php:53
4935
- #: bp-templates/bp-nouveau/includes/groups/ajax.php:140
4936
  msgid "Group invite could not be rejected"
4937
  msgstr ""
4938
 
4939
  #: bp-groups/screens/user/invites.php:55
4940
- #: bp-templates/bp-nouveau/includes/groups/ajax.php:148
4941
  msgid "Group invite rejected"
4942
  msgstr ""
4943
 
@@ -5613,7 +5613,7 @@ msgid "Messages marked as read"
5613
  msgstr ""
5614
 
5615
  #: bp-messages/actions/bulk-manage.php:68
5616
- #: bp-templates/bp-nouveau/includes/messages/ajax.php:681
5617
  msgid "Messages marked as unread."
5618
  msgstr ""
5619
 
@@ -6275,7 +6275,7 @@ msgid "Load More"
6275
  msgstr ""
6276
 
6277
  #: bp-templates/bp-legacy/buddypress/activity/activity-loop.php:48
6278
- #: bp-templates/bp-nouveau/includes/activity/ajax.php:151
6279
  #: bp-templates/bp-nouveau/includes/functions.php:961
6280
  msgid "Sorry, there was no activity found. Please try a different filter."
6281
  msgstr ""
@@ -6301,18 +6301,18 @@ msgstr ""
6301
 
6302
  #: bp-templates/bp-legacy/buddypress/activity/entry.php:76
6303
  #: bp-templates/bp-legacy/buddypress-functions.php:307
6304
- #: bp-templates/bp-legacy/buddypress-functions.php:1248
6305
- #: bp-templates/bp-legacy/buddypress-functions.php:1276
6306
- #: bp-templates/bp-nouveau/includes/activity/ajax.php:145
6307
  #: bp-templates/bp-nouveau/includes/activity/template-tags.php:378
6308
  msgid "Favorite"
6309
  msgstr ""
6310
 
6311
  #: bp-templates/bp-legacy/buddypress/activity/entry.php:80
6312
  #: bp-templates/bp-legacy/buddypress-functions.php:310
6313
- #: bp-templates/bp-legacy/buddypress-functions.php:1246
6314
- #: bp-templates/bp-legacy/buddypress-functions.php:1278
6315
- #: bp-templates/bp-nouveau/includes/activity/ajax.php:105
6316
  #: bp-templates/bp-nouveau/includes/activity/template-tags.php:389
6317
  #: bp-templates/bp-nouveau/includes/activity/template-tags.php:390
6318
  msgid "Remove Favorite"
@@ -6548,7 +6548,7 @@ msgstr ""
6548
  #: bp-templates/bp-legacy/buddypress/members/single/friends.php:22
6549
  #: bp-templates/bp-legacy/buddypress/members/single/groups.php:22
6550
  #: bp-templates/bp-nouveau/includes/blogs/functions.php:106
6551
- #: bp-templates/bp-nouveau/includes/groups/functions.php:585
6552
  #: bp-templates/bp-nouveau/includes/members/functions.php:97
6553
  msgid "Last Active"
6554
  msgstr ""
@@ -6753,7 +6753,7 @@ msgstr ""
6753
 
6754
  #: bp-templates/bp-legacy/buddypress/groups/create.php:379
6755
  #: bp-templates/bp-legacy/buddypress/groups/single/invites-loop.php:75
6756
- #: bp-templates/bp-legacy/buddypress-functions.php:1379
6757
  msgid "Remove Invite"
6758
  msgstr ""
6759
 
@@ -6801,13 +6801,13 @@ msgstr ""
6801
 
6802
  #: bp-templates/bp-legacy/buddypress/groups/index.php:97
6803
  #: bp-templates/bp-legacy/buddypress/members/single/groups.php:23
6804
- #: bp-templates/bp-nouveau/includes/groups/functions.php:586
6805
  msgid "Most Members"
6806
  msgstr ""
6807
 
6808
  #: bp-templates/bp-legacy/buddypress/groups/index.php:98
6809
  #: bp-templates/bp-legacy/buddypress/members/single/groups.php:24
6810
- #: bp-templates/bp-nouveau/includes/groups/functions.php:587
6811
  msgid "Newly Created"
6812
  msgstr ""
6813
 
@@ -7150,7 +7150,7 @@ msgid "My friends"
7150
  msgstr ""
7151
 
7152
  #: bp-templates/bp-legacy/buddypress/members/single/groups/invites.php:21
7153
- #: bp-templates/bp-nouveau/includes/groups/functions.php:1209
7154
  #. translators: accessibility text
7155
  msgid "Group invitations"
7156
  msgstr ""
@@ -7551,7 +7551,7 @@ msgid "Are you sure you want to leave this group?"
7551
  msgstr ""
7552
 
7553
  #: bp-templates/bp-legacy/buddypress-functions.php:308
7554
- #: bp-templates/bp-nouveau/includes/activity/ajax.php:113
7555
  #: bp-templates/bp-nouveau/includes/activity/functions.php:227
7556
  msgid "My Favorites"
7557
  msgstr ""
@@ -7580,75 +7580,75 @@ msgid ""
7580
  msgstr ""
7581
 
7582
  #: bp-templates/bp-legacy/buddypress-functions.php:996
7583
- #: bp-templates/bp-nouveau/includes/activity/ajax.php:537
7584
  msgid "There was a problem posting your update. Please try again."
7585
  msgstr ""
7586
 
7587
- #: bp-templates/bp-legacy/buddypress-functions.php:1129
7588
- #: bp-templates/bp-legacy/buddypress-functions.php:1169
7589
- #: bp-templates/bp-nouveau/includes/activity/ajax.php:195
7590
  msgid "There was a problem when deleting. Please try again."
7591
  msgstr ""
7592
 
7593
- #: bp-templates/bp-legacy/buddypress-functions.php:1383
7594
  msgid ""
7595
  "%s has previously requested to join this group. Sending an invitation will "
7596
  "automatically add the member to the group."
7597
  msgstr ""
7598
 
7599
- #: bp-templates/bp-legacy/buddypress-functions.php:1425
7600
  #: bp-templates/bp-nouveau/includes/friends/ajax.php:107
7601
  msgid "No member found by that ID."
7602
  msgstr ""
7603
 
7604
- #: bp-templates/bp-legacy/buddypress-functions.php:1443
7605
  msgid " Friendship could not be requested."
7606
  msgstr ""
7607
 
7608
- #: bp-templates/bp-legacy/buddypress-functions.php:1455
7609
  #: bp-templates/bp-nouveau/includes/friends/ajax.php:210
7610
  msgid "Friendship request could not be cancelled."
7611
  msgstr ""
7612
 
7613
- #: bp-templates/bp-legacy/buddypress-functions.php:1460
7614
  #: bp-templates/bp-nouveau/includes/friends/ajax.php:220
7615
  msgid "Request Pending"
7616
  msgstr ""
7617
 
7618
- #: bp-templates/bp-legacy/buddypress-functions.php:1481
7619
  #: bp-templates/bp-nouveau/includes/friends/ajax.php:121
7620
  msgid "There was a problem accepting that request. Please try again."
7621
  msgstr ""
7622
 
7623
- #: bp-templates/bp-legacy/buddypress-functions.php:1501
7624
  #: bp-templates/bp-nouveau/includes/friends/ajax.php:145
7625
  msgid "There was a problem rejecting that request. Please try again."
7626
  msgstr ""
7627
 
7628
- #: bp-templates/bp-legacy/buddypress-functions.php:1541
7629
- #: bp-templates/bp-legacy/buddypress-functions.php:1547
7630
  msgid "Error joining group"
7631
  msgstr ""
7632
 
7633
- #: bp-templates/bp-legacy/buddypress-functions.php:1555
7634
  msgid "Error accepting invitation"
7635
  msgstr ""
7636
 
7637
- #: bp-templates/bp-legacy/buddypress-functions.php:1561
7638
- #: bp-templates/bp-legacy/buddypress-functions.php:1571
7639
  msgid "Error requesting membership"
7640
  msgstr ""
7641
 
7642
- #: bp-templates/bp-legacy/buddypress-functions.php:1581
7643
  msgid "Error leaving group"
7644
  msgstr ""
7645
 
7646
- #: bp-templates/bp-legacy/buddypress-functions.php:1608
7647
  msgid "There was a problem closing the notice."
7648
  msgstr ""
7649
 
7650
- #: bp-templates/bp-legacy/buddypress-functions.php:1643
7651
- #: bp-templates/bp-legacy/buddypress-functions.php:1683
7652
  msgid "There was a problem sending that reply. Please try again."
7653
  msgstr ""
7654
 
@@ -8033,27 +8033,27 @@ msgstr ""
8033
  msgid "Show all %d comments"
8034
  msgstr ""
8035
 
8036
- #: bp-templates/bp-nouveau/includes/activity/ajax.php:267
8037
  msgid "There was a problem displaying the content. Please try again."
8038
  msgstr ""
8039
 
8040
- #: bp-templates/bp-nouveau/includes/activity/ajax.php:455
8041
  msgid "No activities were found."
8042
  msgstr ""
8043
 
8044
- #: bp-templates/bp-nouveau/includes/activity/ajax.php:554
8045
  msgid "Update posted."
8046
  msgstr ""
8047
 
8048
- #: bp-templates/bp-nouveau/includes/activity/ajax.php:554
8049
  msgid "View activity."
8050
  msgstr ""
8051
 
8052
- #: bp-templates/bp-nouveau/includes/activity/ajax.php:582
8053
  msgid "There was a problem marking this activity as spam. Please try again."
8054
  msgstr ""
8055
 
8056
- #: bp-templates/bp-nouveau/includes/activity/ajax.php:631
8057
  msgid "This activity has been marked as spam and is no longer visible."
8058
  msgstr ""
8059
 
@@ -8076,7 +8076,7 @@ msgid "All Members"
8076
  msgstr ""
8077
 
8078
  #: bp-templates/bp-nouveau/includes/activity/functions.php:253
8079
- #: bp-templates/bp-nouveau/includes/groups/functions.php:517
8080
  msgid "My Groups"
8081
  msgstr ""
8082
 
@@ -8273,7 +8273,7 @@ msgstr ""
8273
 
8274
  #: bp-templates/bp-nouveau/includes/friends/ajax.php:68
8275
  #: bp-templates/bp-nouveau/includes/groups/ajax.php:47
8276
- #: bp-templates/bp-nouveau/includes/groups/ajax.php:259
8277
  msgid "There was a problem performing this action. Please try again."
8278
  msgstr ""
8279
 
@@ -8470,89 +8470,89 @@ msgstr ""
8470
  msgid "You are already a member of the group."
8471
  msgstr ""
8472
 
8473
- #: bp-templates/bp-nouveau/includes/groups/ajax.php:104
8474
  msgid "Group invitation could not be accepted."
8475
  msgstr ""
8476
 
8477
- #: bp-templates/bp-nouveau/includes/groups/ajax.php:125
8478
  msgid "Group invite accepted."
8479
  msgstr ""
8480
 
8481
- #: bp-templates/bp-nouveau/includes/groups/ajax.php:171
8482
  msgid "Error joining this group."
8483
  msgstr ""
8484
 
8485
- #: bp-templates/bp-nouveau/includes/groups/ajax.php:192
8486
  msgid "Error requesting membership."
8487
  msgstr ""
8488
 
8489
- #: bp-templates/bp-nouveau/includes/groups/ajax.php:213
8490
  msgid "Error leaving group."
8491
  msgstr ""
8492
 
8493
- #: bp-templates/bp-nouveau/includes/groups/ajax.php:291
8494
  msgid ""
8495
  "Select members to invite by clicking the + button. Once you've made your "
8496
  "selection, use the \"Send Invites\" navigation item to continue."
8497
  msgstr ""
8498
 
8499
- #: bp-templates/bp-nouveau/includes/groups/ajax.php:296
8500
  msgid ""
8501
  "Select friends to invite by clicking the + button. Once you've made your "
8502
  "selection, use the \"Send Invites\" navigation item to continue."
8503
  msgstr ""
8504
 
8505
- #: bp-templates/bp-nouveau/includes/groups/ajax.php:303
8506
  msgid "No pending group invitations found."
8507
  msgstr ""
8508
 
8509
- #: bp-templates/bp-nouveau/includes/groups/ajax.php:310
8510
  msgid "You can view the group's pending invitations from this screen."
8511
  msgstr ""
8512
 
8513
- #: bp-templates/bp-nouveau/includes/groups/ajax.php:317
8514
  msgid "No members were found. Try another filter."
8515
  msgstr ""
8516
 
8517
- #: bp-templates/bp-nouveau/includes/groups/ajax.php:323
8518
  msgid ""
8519
  "All your friends are already members of this group, or have already "
8520
  "received an invite to join this group, or have requested to join it."
8521
  msgstr ""
8522
 
8523
- #: bp-templates/bp-nouveau/includes/groups/ajax.php:329
8524
  msgid "You have no friends!"
8525
  msgstr ""
8526
 
8527
- #: bp-templates/bp-nouveau/includes/groups/ajax.php:358
8528
  msgid "Invites could not be sent. Please try again."
8529
  msgstr ""
8530
 
8531
- #: bp-templates/bp-nouveau/includes/groups/ajax.php:374
8532
  msgid "You are not allowed to send invitations for this group."
8533
  msgstr ""
8534
 
8535
- #: bp-templates/bp-nouveau/includes/groups/ajax.php:415
8536
  #. translators: count of users affected
8537
  msgid "Invitation failed for %s user."
8538
  msgid_plural "Invitation failed for %s users."
8539
  msgstr[0] ""
8540
  msgstr[1] ""
8541
 
8542
- #: bp-templates/bp-nouveau/includes/groups/ajax.php:434
8543
  msgid "Invitations sent."
8544
  msgstr ""
8545
 
8546
- #: bp-templates/bp-nouveau/includes/groups/ajax.php:451
8547
- #: bp-templates/bp-nouveau/includes/groups/ajax.php:471
8548
  msgid "Group invitation could not be removed."
8549
  msgstr ""
8550
 
8551
- #: bp-templates/bp-nouveau/includes/groups/ajax.php:460
8552
  msgid "The member is already a member of the group."
8553
  msgstr ""
8554
 
8555
- #: bp-templates/bp-nouveau/includes/groups/ajax.php:480
8556
  msgid "There are no more pending invitations for the group."
8557
  msgstr ""
8558
 
@@ -8584,99 +8584,99 @@ msgstr ""
8584
  msgid "Cancel invitation %s"
8585
  msgstr ""
8586
 
8587
- #: bp-templates/bp-nouveau/includes/groups/functions.php:472
8588
  msgid "Group invites preferences saved."
8589
  msgstr ""
8590
 
8591
- #: bp-templates/bp-nouveau/includes/groups/functions.php:474
8592
  msgid "You are not allowed to perform this action."
8593
  msgstr ""
8594
 
8595
- #: bp-templates/bp-nouveau/includes/groups/functions.php:501
8596
  msgid "All Groups"
8597
  msgstr ""
8598
 
8599
- #: bp-templates/bp-nouveau/includes/groups/functions.php:686
8600
  msgid "Group front page"
8601
  msgstr ""
8602
 
8603
- #: bp-templates/bp-nouveau/includes/groups/functions.php:689
8604
  msgid "Configure the default front page for groups."
8605
  msgstr ""
8606
 
8607
- #: bp-templates/bp-nouveau/includes/groups/functions.php:692
8608
  msgid "Group navigation"
8609
  msgstr ""
8610
 
8611
- #: bp-templates/bp-nouveau/includes/groups/functions.php:695
8612
  msgid ""
8613
  "Customize the navigation menu for groups. See your changes by navigating to "
8614
  "a group in the live-preview window."
8615
  msgstr ""
8616
 
8617
- #: bp-templates/bp-nouveau/includes/groups/functions.php:796
8618
  msgid "Enable custom front pages for groups."
8619
  msgstr ""
8620
 
8621
- #: bp-templates/bp-nouveau/includes/groups/functions.php:802
8622
  msgid ""
8623
  "Enable widget region for group homepages. When enabled, the site admin can "
8624
  "add widgets to group pages via the Widgets panel."
8625
  msgstr ""
8626
 
8627
- #: bp-templates/bp-nouveau/includes/groups/functions.php:808
8628
  msgid "Display the group description in the body of the group's front page."
8629
  msgstr ""
8630
 
8631
- #: bp-templates/bp-nouveau/includes/groups/functions.php:814
8632
  msgid "Display the group navigation vertically."
8633
  msgstr ""
8634
 
8635
- #: bp-templates/bp-nouveau/includes/groups/functions.php:820
8636
  msgid "Use tab styling for primary navigation."
8637
  msgstr ""
8638
 
8639
- #: bp-templates/bp-nouveau/includes/groups/functions.php:826
8640
  msgid "Use tab styling for secondary navigation."
8641
  msgstr ""
8642
 
8643
- #: bp-templates/bp-nouveau/includes/groups/functions.php:832
8644
  msgid "Use tab styling for the group creation process."
8645
  msgstr ""
8646
 
8647
- #: bp-templates/bp-nouveau/includes/groups/functions.php:839
8648
  msgid "Reorder the primary navigation for a group."
8649
  msgstr ""
8650
 
8651
- #: bp-templates/bp-nouveau/includes/groups/functions.php:852
8652
  msgid "Group > Members"
8653
  msgstr ""
8654
 
8655
- #: bp-templates/bp-nouveau/includes/groups/functions.php:859
8656
  msgid "Use column navigation for the Groups directory."
8657
  msgstr ""
8658
 
8659
- #: bp-templates/bp-nouveau/includes/groups/functions.php:865
8660
  msgid "Use tab styling for Groups directory navigation."
8661
  msgstr ""
8662
 
8663
- #: bp-templates/bp-nouveau/includes/groups/functions.php:1184
8664
  msgid "Pending Group membership requests"
8665
  msgstr ""
8666
 
8667
- #: bp-templates/bp-nouveau/includes/groups/functions.php:1189
8668
  msgid "Accepted Group membership requests"
8669
  msgstr ""
8670
 
8671
- #: bp-templates/bp-nouveau/includes/groups/functions.php:1194
8672
  msgid "Rejected Group membership requests"
8673
  msgstr ""
8674
 
8675
- #: bp-templates/bp-nouveau/includes/groups/functions.php:1199
8676
  msgid "Group Administrator promotions"
8677
  msgstr ""
8678
 
8679
- #: bp-templates/bp-nouveau/includes/groups/functions.php:1204
8680
  msgid "Group Moderator promotions"
8681
  msgstr ""
8682
 
@@ -8714,47 +8714,47 @@ msgstr ""
8714
  msgid "Unauthorized request."
8715
  msgstr ""
8716
 
8717
- #: bp-templates/bp-nouveau/includes/messages/ajax.php:519
8718
  msgid "There was a problem deleting your messages. Please try again."
8719
  msgstr ""
8720
 
8721
- #: bp-templates/bp-nouveau/includes/messages/ajax.php:542
8722
  msgid "Messages deleted"
8723
  msgstr ""
8724
 
8725
- #: bp-templates/bp-nouveau/includes/messages/ajax.php:558
8726
  msgid "There was a problem starring your messages. Please try again."
8727
  msgstr ""
8728
 
8729
- #: bp-templates/bp-nouveau/includes/messages/ajax.php:560
8730
  msgid "There was a problem unstarring your messages. Please try again."
8731
  msgstr ""
8732
 
8733
- #: bp-templates/bp-nouveau/includes/messages/ajax.php:634
8734
  msgid "Messages successfully starred."
8735
  msgstr ""
8736
 
8737
- #: bp-templates/bp-nouveau/includes/messages/ajax.php:636
8738
  msgid "Messages successfully unstarred."
8739
  msgstr ""
8740
 
8741
- #: bp-templates/bp-nouveau/includes/messages/ajax.php:657
8742
  msgid "There was a problem marking your messages as read. Please try again."
8743
  msgstr ""
8744
 
8745
- #: bp-templates/bp-nouveau/includes/messages/ajax.php:663
8746
  msgid "There was a problem marking your messages as unread. Please try again."
8747
  msgstr ""
8748
 
8749
- #: bp-templates/bp-nouveau/includes/messages/ajax.php:683
8750
  msgid "Messages marked as read."
8751
  msgstr ""
8752
 
8753
- #: bp-templates/bp-nouveau/includes/messages/ajax.php:718
8754
  msgid "There was a problem dismissing the notice. Please try again."
8755
  msgstr ""
8756
 
8757
- #: bp-templates/bp-nouveau/includes/messages/ajax.php:752
8758
  msgid "Sitewide notice dismissed"
8759
  msgstr ""
8760
 
@@ -10825,21 +10825,21 @@ msgctxt "Customizer Panel"
10825
  msgid "BuddyPress Nouveau"
10826
  msgstr ""
10827
 
10828
- #: bp-templates/bp-nouveau/includes/groups/functions.php:301
10829
  #: bp-templates/bp-nouveau/includes/groups/functions.php:307
10830
- #: bp-templates/bp-nouveau/includes/groups/functions.php:327
10831
- #: bp-templates/bp-nouveau/includes/groups/functions.php:338
 
10832
  msgctxt "Group invitations menu title"
10833
  msgid "Invite"
10834
  msgstr ""
10835
 
10836
- #: bp-templates/bp-nouveau/includes/groups/functions.php:414
10837
- #: bp-templates/bp-nouveau/includes/groups/functions.php:442
10838
  msgctxt "Group invitations main menu title"
10839
  msgid "Group Invites"
10840
  msgstr ""
10841
 
10842
- #: bp-templates/bp-nouveau/includes/groups/functions.php:845
10843
  msgctxt "Customizer control label"
10844
  msgid "Groups"
10845
  msgstr ""
2
  # This file is distributed under the GPLv2 or later (license.txt).
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: BuddyPress 4.3.0\n"
6
  "Report-Msgid-Bugs-To: https://buddypress.trac.wordpress.org\n"
7
+ "POT-Creation-Date: 2019-04-25 16:09:52+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
14
  "X-Generator: grunt-wp-i18n 1.0.3\n"
15
 
16
  #: bp-activity/actions/delete.php:52
17
+ #: bp-templates/bp-nouveau/includes/activity/ajax.php:255
18
  msgid "Activity deleted successfully"
19
  msgstr ""
20
 
22
  msgid "There was an error when deleting that activity"
23
  msgstr ""
24
 
25
+ #: bp-activity/actions/favorite.php:30
26
  msgid "Activity marked as favorite."
27
  msgstr ""
28
 
29
+ #: bp-activity/actions/favorite.php:32
30
  msgid "There was an error marking that activity as a favorite. Please try again."
31
  msgstr ""
32
 
94
 
95
  #: bp-activity/actions/post.php:60
96
  #: bp-templates/bp-legacy/buddypress-functions.php:960
97
+ #: bp-templates/bp-nouveau/includes/activity/ajax.php:490
98
  msgid "Please enter some content to post."
99
  msgstr ""
100
 
108
 
109
  #: bp-activity/actions/reply.php:43
110
  #: bp-templates/bp-legacy/buddypress-functions.php:1052
111
+ #: bp-templates/bp-nouveau/includes/activity/ajax.php:355
112
  msgid "Please do not leave the comment area blank."
113
  msgstr ""
114
 
115
+ #: bp-activity/actions/reply.php:49 bp-activity/actions/reply.php:62
116
+ msgid "There was an error posting that reply. Please try again."
117
  msgstr ""
118
 
119
+ #: bp-activity/actions/reply.php:60
120
+ msgid "Reply Posted!"
121
  msgstr ""
122
 
123
  #: bp-activity/actions/spam.php:59
486
  msgid "Your browser does not support HTML5 audio"
487
  msgstr ""
488
 
489
+ #: bp-activity/bp-activity-filters.php:435
490
  msgid "[Read more]"
491
  msgstr ""
492
 
493
+ #: bp-activity/bp-activity-filters.php:439
494
  msgid "&hellip;"
495
  msgstr ""
496
 
497
+ #: bp-activity/bp-activity-filters.php:645
498
  msgid "Load Newest"
499
  msgstr ""
500
 
501
+ #: bp-activity/bp-activity-filters.php:828
502
  msgid "BuddyPress Activity Data"
503
  msgstr ""
504
 
528
 
529
  #: bp-activity/bp-activity-functions.php:2592
530
  #: bp-templates/bp-legacy/buddypress-functions.php:1049
531
+ #: bp-templates/bp-nouveau/includes/activity/ajax.php:334
532
  msgid "There was an error posting your reply. Please try again."
533
  msgstr ""
534
 
2743
  msgstr ""
2744
 
2745
  #: bp-core/bp-core-template.php:3123 bp-groups/bp-groups-template.php:3394
2746
+ #: bp-templates/bp-nouveau/includes/groups/functions.php:536
2747
  msgid "Create a Group"
2748
  msgstr ""
2749
 
3564
  msgstr ""
3565
 
3566
  #: bp-friends/actions/remove-friend.php:33
3567
+ #: bp-templates/bp-legacy/buddypress-functions.php:1445
3568
  msgid "Friendship could not be canceled."
3569
  msgstr ""
3570
 
3715
  msgstr ""
3716
 
3717
  #: bp-friends/bp-friends-template.php:371
3718
+ #: bp-templates/bp-legacy/buddypress-functions.php:1457
3719
  msgid "Cancel Friendship Request"
3720
  msgstr ""
3721
 
3728
  msgstr ""
3729
 
3730
  #: bp-friends/bp-friends-template.php:419
3731
+ #: bp-templates/bp-legacy/buddypress-functions.php:1447
3732
+ #: bp-templates/bp-legacy/buddypress-functions.php:1465
3733
  msgid "Add Friend"
3734
  msgstr ""
3735
 
3914
  msgid "%1$s created the group %2$s"
3915
  msgstr ""
3916
 
3917
+ #: bp-groups/bp-groups-activity.php:109 bp-groups/bp-groups-activity.php:570
3918
  msgid "%1$s joined the group %2$s"
3919
  msgstr ""
3920
 
4515
  msgstr ""
4516
 
4517
  #: bp-groups/bp-groups-template.php:3277
4518
+ #: bp-templates/bp-legacy/buddypress-functions.php:1561
4519
+ #: bp-templates/bp-legacy/buddypress-functions.php:1575
4520
  msgid "Leave Group"
4521
  msgstr ""
4522
 
4523
  #: bp-groups/bp-groups-template.php:3298
4524
+ #: bp-templates/bp-legacy/buddypress-functions.php:1595
4525
  msgid "Join Group"
4526
  msgstr ""
4527
 
4530
  msgstr ""
4531
 
4532
  #: bp-groups/bp-groups-template.php:3331
4533
+ #: bp-templates/bp-legacy/buddypress-functions.php:1585
4534
  msgid "Request Sent"
4535
  msgstr ""
4536
 
4537
  #: bp-groups/bp-groups-template.php:3346
4538
+ #: bp-templates/bp-legacy/buddypress-functions.php:1597
4539
  msgid "Request Membership"
4540
  msgstr ""
4541
 
4615
  #: bp-templates/bp-legacy/buddypress/members/single/friends.php:24
4616
  #: bp-templates/bp-legacy/buddypress/members/single/groups.php:25
4617
  #: bp-templates/bp-nouveau/includes/blogs/functions.php:108
4618
+ #: bp-templates/bp-nouveau/includes/groups/functions.php:594
4619
  #: bp-templates/bp-nouveau/includes/members/functions.php:102
4620
  #: bp-templates/bp-nouveau/includes/members/functions.php:120
4621
  msgid "Alphabetical"
4829
  msgid "The new group profile photo was uploaded successfully."
4830
  msgstr ""
4831
 
4832
+ #: bp-groups/screens/single/admin/group-settings.php:72
4833
  msgid "There was an error updating group settings. Please try again."
4834
  msgstr ""
4835
 
4836
+ #: bp-groups/screens/single/admin/group-settings.php:74
4837
  msgid "Group settings were successfully updated."
4838
  msgstr ""
4839
 
4932
  msgstr ""
4933
 
4934
  #: bp-groups/screens/user/invites.php:53
4935
+ #: bp-templates/bp-nouveau/includes/groups/ajax.php:144
4936
  msgid "Group invite could not be rejected"
4937
  msgstr ""
4938
 
4939
  #: bp-groups/screens/user/invites.php:55
4940
+ #: bp-templates/bp-nouveau/includes/groups/ajax.php:152
4941
  msgid "Group invite rejected"
4942
  msgstr ""
4943
 
5613
  msgstr ""
5614
 
5615
  #: bp-messages/actions/bulk-manage.php:68
5616
+ #: bp-templates/bp-nouveau/includes/messages/ajax.php:686
5617
  msgid "Messages marked as unread."
5618
  msgstr ""
5619
 
6275
  msgstr ""
6276
 
6277
  #: bp-templates/bp-legacy/buddypress/activity/activity-loop.php:48
6278
+ #: bp-templates/bp-nouveau/includes/activity/ajax.php:157
6279
  #: bp-templates/bp-nouveau/includes/functions.php:961
6280
  msgid "Sorry, there was no activity found. Please try a different filter."
6281
  msgstr ""
6301
 
6302
  #: bp-templates/bp-legacy/buddypress/activity/entry.php:76
6303
  #: bp-templates/bp-legacy/buddypress-functions.php:307
6304
+ #: bp-templates/bp-legacy/buddypress-functions.php:1260
6305
+ #: bp-templates/bp-legacy/buddypress-functions.php:1288
6306
+ #: bp-templates/bp-nouveau/includes/activity/ajax.php:151
6307
  #: bp-templates/bp-nouveau/includes/activity/template-tags.php:378
6308
  msgid "Favorite"
6309
  msgstr ""
6310
 
6311
  #: bp-templates/bp-legacy/buddypress/activity/entry.php:80
6312
  #: bp-templates/bp-legacy/buddypress-functions.php:310
6313
+ #: bp-templates/bp-legacy/buddypress-functions.php:1258
6314
+ #: bp-templates/bp-legacy/buddypress-functions.php:1290
6315
+ #: bp-templates/bp-nouveau/includes/activity/ajax.php:111
6316
  #: bp-templates/bp-nouveau/includes/activity/template-tags.php:389
6317
  #: bp-templates/bp-nouveau/includes/activity/template-tags.php:390
6318
  msgid "Remove Favorite"
6548
  #: bp-templates/bp-legacy/buddypress/members/single/friends.php:22
6549
  #: bp-templates/bp-legacy/buddypress/members/single/groups.php:22
6550
  #: bp-templates/bp-nouveau/includes/blogs/functions.php:106
6551
+ #: bp-templates/bp-nouveau/includes/groups/functions.php:591
6552
  #: bp-templates/bp-nouveau/includes/members/functions.php:97
6553
  msgid "Last Active"
6554
  msgstr ""
6753
 
6754
  #: bp-templates/bp-legacy/buddypress/groups/create.php:379
6755
  #: bp-templates/bp-legacy/buddypress/groups/single/invites-loop.php:75
6756
+ #: bp-templates/bp-legacy/buddypress-functions.php:1391
6757
  msgid "Remove Invite"
6758
  msgstr ""
6759
 
6801
 
6802
  #: bp-templates/bp-legacy/buddypress/groups/index.php:97
6803
  #: bp-templates/bp-legacy/buddypress/members/single/groups.php:23
6804
+ #: bp-templates/bp-nouveau/includes/groups/functions.php:592
6805
  msgid "Most Members"
6806
  msgstr ""
6807
 
6808
  #: bp-templates/bp-legacy/buddypress/groups/index.php:98
6809
  #: bp-templates/bp-legacy/buddypress/members/single/groups.php:24
6810
+ #: bp-templates/bp-nouveau/includes/groups/functions.php:593
6811
  msgid "Newly Created"
6812
  msgstr ""
6813
 
7150
  msgstr ""
7151
 
7152
  #: bp-templates/bp-legacy/buddypress/members/single/groups/invites.php:21
7153
+ #: bp-templates/bp-nouveau/includes/groups/functions.php:1215
7154
  #. translators: accessibility text
7155
  msgid "Group invitations"
7156
  msgstr ""
7551
  msgstr ""
7552
 
7553
  #: bp-templates/bp-legacy/buddypress-functions.php:308
7554
+ #: bp-templates/bp-nouveau/includes/activity/ajax.php:119
7555
  #: bp-templates/bp-nouveau/includes/activity/functions.php:227
7556
  msgid "My Favorites"
7557
  msgstr ""
7580
  msgstr ""
7581
 
7582
  #: bp-templates/bp-legacy/buddypress-functions.php:996
7583
+ #: bp-templates/bp-nouveau/includes/activity/ajax.php:549
7584
  msgid "There was a problem posting your update. Please try again."
7585
  msgstr ""
7586
 
7587
+ #: bp-templates/bp-legacy/buddypress-functions.php:1135
7588
+ #: bp-templates/bp-legacy/buddypress-functions.php:1175
7589
+ #: bp-templates/bp-nouveau/includes/activity/ajax.php:201
7590
  msgid "There was a problem when deleting. Please try again."
7591
  msgstr ""
7592
 
7593
+ #: bp-templates/bp-legacy/buddypress-functions.php:1395
7594
  msgid ""
7595
  "%s has previously requested to join this group. Sending an invitation will "
7596
  "automatically add the member to the group."
7597
  msgstr ""
7598
 
7599
+ #: bp-templates/bp-legacy/buddypress-functions.php:1437
7600
  #: bp-templates/bp-nouveau/includes/friends/ajax.php:107
7601
  msgid "No member found by that ID."
7602
  msgstr ""
7603
 
7604
+ #: bp-templates/bp-legacy/buddypress-functions.php:1455
7605
  msgid " Friendship could not be requested."
7606
  msgstr ""
7607
 
7608
+ #: bp-templates/bp-legacy/buddypress-functions.php:1467
7609
  #: bp-templates/bp-nouveau/includes/friends/ajax.php:210
7610
  msgid "Friendship request could not be cancelled."
7611
  msgstr ""
7612
 
7613
+ #: bp-templates/bp-legacy/buddypress-functions.php:1472
7614
  #: bp-templates/bp-nouveau/includes/friends/ajax.php:220
7615
  msgid "Request Pending"
7616
  msgstr ""
7617
 
7618
+ #: bp-templates/bp-legacy/buddypress-functions.php:1493
7619
  #: bp-templates/bp-nouveau/includes/friends/ajax.php:121
7620
  msgid "There was a problem accepting that request. Please try again."
7621
  msgstr ""
7622
 
7623
+ #: bp-templates/bp-legacy/buddypress-functions.php:1513
7624
  #: bp-templates/bp-nouveau/includes/friends/ajax.php:145
7625
  msgid "There was a problem rejecting that request. Please try again."
7626
  msgstr ""
7627
 
7628
+ #: bp-templates/bp-legacy/buddypress-functions.php:1553
7629
+ #: bp-templates/bp-legacy/buddypress-functions.php:1559
7630
  msgid "Error joining group"
7631
  msgstr ""
7632
 
7633
+ #: bp-templates/bp-legacy/buddypress-functions.php:1567
7634
  msgid "Error accepting invitation"
7635
  msgstr ""
7636
 
7637
+ #: bp-templates/bp-legacy/buddypress-functions.php:1573
7638
+ #: bp-templates/bp-legacy/buddypress-functions.php:1583
7639
  msgid "Error requesting membership"
7640
  msgstr ""
7641
 
7642
+ #: bp-templates/bp-legacy/buddypress-functions.php:1593
7643
  msgid "Error leaving group"
7644
  msgstr ""
7645
 
7646
+ #: bp-templates/bp-legacy/buddypress-functions.php:1620
7647
  msgid "There was a problem closing the notice."
7648
  msgstr ""
7649
 
7650
+ #: bp-templates/bp-legacy/buddypress-functions.php:1655
7651
+ #: bp-templates/bp-legacy/buddypress-functions.php:1695
7652
  msgid "There was a problem sending that reply. Please try again."
7653
  msgstr ""
7654
 
8033
  msgid "Show all %d comments"
8034
  msgstr ""
8035
 
8036
+ #: bp-templates/bp-nouveau/includes/activity/ajax.php:273
8037
  msgid "There was a problem displaying the content. Please try again."
8038
  msgstr ""
8039
 
8040
+ #: bp-templates/bp-nouveau/includes/activity/ajax.php:467
8041
  msgid "No activities were found."
8042
  msgstr ""
8043
 
8044
+ #: bp-templates/bp-nouveau/includes/activity/ajax.php:566
8045
  msgid "Update posted."
8046
  msgstr ""
8047
 
8048
+ #: bp-templates/bp-nouveau/includes/activity/ajax.php:566
8049
  msgid "View activity."
8050
  msgstr ""
8051
 
8052
+ #: bp-templates/bp-nouveau/includes/activity/ajax.php:594
8053
  msgid "There was a problem marking this activity as spam. Please try again."
8054
  msgstr ""
8055
 
8056
+ #: bp-templates/bp-nouveau/includes/activity/ajax.php:643
8057
  msgid "This activity has been marked as spam and is no longer visible."
8058
  msgstr ""
8059
 
8076
  msgstr ""
8077
 
8078
  #: bp-templates/bp-nouveau/includes/activity/functions.php:253
8079
+ #: bp-templates/bp-nouveau/includes/groups/functions.php:523
8080
  msgid "My Groups"
8081
  msgstr ""
8082
 
8273
 
8274
  #: bp-templates/bp-nouveau/includes/friends/ajax.php:68
8275
  #: bp-templates/bp-nouveau/includes/groups/ajax.php:47
8276
+ #: bp-templates/bp-nouveau/includes/groups/ajax.php:263
8277
  msgid "There was a problem performing this action. Please try again."
8278
  msgstr ""
8279
 
8470
  msgid "You are already a member of the group."
8471
  msgstr ""
8472
 
8473
+ #: bp-templates/bp-nouveau/includes/groups/ajax.php:108
8474
  msgid "Group invitation could not be accepted."
8475
  msgstr ""
8476
 
8477
+ #: bp-templates/bp-nouveau/includes/groups/ajax.php:129
8478
  msgid "Group invite accepted."
8479
  msgstr ""
8480
 
8481
+ #: bp-templates/bp-nouveau/includes/groups/ajax.php:175
8482
  msgid "Error joining this group."
8483
  msgstr ""
8484
 
8485
+ #: bp-templates/bp-nouveau/includes/groups/ajax.php:196
8486
  msgid "Error requesting membership."
8487
  msgstr ""
8488
 
8489
+ #: bp-templates/bp-nouveau/includes/groups/ajax.php:217
8490
  msgid "Error leaving group."
8491
  msgstr ""
8492
 
8493
+ #: bp-templates/bp-nouveau/includes/groups/ajax.php:295
8494
  msgid ""
8495
  "Select members to invite by clicking the + button. Once you've made your "
8496
  "selection, use the \"Send Invites\" navigation item to continue."
8497
  msgstr ""
8498
 
8499
+ #: bp-templates/bp-nouveau/includes/groups/ajax.php:300
8500
  msgid ""
8501
  "Select friends to invite by clicking the + button. Once you've made your "
8502
  "selection, use the \"Send Invites\" navigation item to continue."
8503
  msgstr ""
8504
 
8505
+ #: bp-templates/bp-nouveau/includes/groups/ajax.php:307
8506
  msgid "No pending group invitations found."
8507
  msgstr ""
8508
 
8509
+ #: bp-templates/bp-nouveau/includes/groups/ajax.php:314
8510
  msgid "You can view the group's pending invitations from this screen."
8511
  msgstr ""
8512
 
8513
+ #: bp-templates/bp-nouveau/includes/groups/ajax.php:321
8514
  msgid "No members were found. Try another filter."
8515
  msgstr ""
8516
 
8517
+ #: bp-templates/bp-nouveau/includes/groups/ajax.php:327
8518
  msgid ""
8519
  "All your friends are already members of this group, or have already "
8520
  "received an invite to join this group, or have requested to join it."
8521
  msgstr ""
8522
 
8523
+ #: bp-templates/bp-nouveau/includes/groups/ajax.php:333
8524
  msgid "You have no friends!"
8525
  msgstr ""
8526
 
8527
+ #: bp-templates/bp-nouveau/includes/groups/ajax.php:362
8528
  msgid "Invites could not be sent. Please try again."
8529
  msgstr ""
8530
 
8531
+ #: bp-templates/bp-nouveau/includes/groups/ajax.php:378
8532
  msgid "You are not allowed to send invitations for this group."
8533
  msgstr ""
8534
 
8535
+ #: bp-templates/bp-nouveau/includes/groups/ajax.php:419
8536
  #. translators: count of users affected
8537
  msgid "Invitation failed for %s user."
8538
  msgid_plural "Invitation failed for %s users."
8539
  msgstr[0] ""
8540
  msgstr[1] ""
8541
 
8542
+ #: bp-templates/bp-nouveau/includes/groups/ajax.php:438
8543
  msgid "Invitations sent."
8544
  msgstr ""
8545
 
8546
+ #: bp-templates/bp-nouveau/includes/groups/ajax.php:452
8547
+ #: bp-templates/bp-nouveau/includes/groups/ajax.php:491
8548
  msgid "Group invitation could not be removed."
8549
  msgstr ""
8550
 
8551
+ #: bp-templates/bp-nouveau/includes/groups/ajax.php:480
8552
  msgid "The member is already a member of the group."
8553
  msgstr ""
8554
 
8555
+ #: bp-templates/bp-nouveau/includes/groups/ajax.php:500
8556
  msgid "There are no more pending invitations for the group."
8557
  msgstr ""
8558
 
8584
  msgid "Cancel invitation %s"
8585
  msgstr ""
8586
 
8587
+ #: bp-templates/bp-nouveau/includes/groups/functions.php:478
8588
  msgid "Group invites preferences saved."
8589
  msgstr ""
8590
 
8591
+ #: bp-templates/bp-nouveau/includes/groups/functions.php:480
8592
  msgid "You are not allowed to perform this action."
8593
  msgstr ""
8594
 
8595
+ #: bp-templates/bp-nouveau/includes/groups/functions.php:507
8596
  msgid "All Groups"
8597
  msgstr ""
8598
 
8599
+ #: bp-templates/bp-nouveau/includes/groups/functions.php:692
8600
  msgid "Group front page"
8601
  msgstr ""
8602
 
8603
+ #: bp-templates/bp-nouveau/includes/groups/functions.php:695
8604
  msgid "Configure the default front page for groups."
8605
  msgstr ""
8606
 
8607
+ #: bp-templates/bp-nouveau/includes/groups/functions.php:698
8608
  msgid "Group navigation"
8609
  msgstr ""
8610
 
8611
+ #: bp-templates/bp-nouveau/includes/groups/functions.php:701
8612
  msgid ""
8613
  "Customize the navigation menu for groups. See your changes by navigating to "
8614
  "a group in the live-preview window."
8615
  msgstr ""
8616
 
8617
+ #: bp-templates/bp-nouveau/includes/groups/functions.php:802
8618
  msgid "Enable custom front pages for groups."
8619
  msgstr ""
8620
 
8621
+ #: bp-templates/bp-nouveau/includes/groups/functions.php:808
8622
  msgid ""
8623
  "Enable widget region for group homepages. When enabled, the site admin can "
8624
  "add widgets to group pages via the Widgets panel."
8625
  msgstr ""
8626
 
8627
+ #: bp-templates/bp-nouveau/includes/groups/functions.php:814
8628
  msgid "Display the group description in the body of the group's front page."
8629
  msgstr ""
8630
 
8631
+ #: bp-templates/bp-nouveau/includes/groups/functions.php:820
8632
  msgid "Display the group navigation vertically."
8633
  msgstr ""
8634
 
8635
+ #: bp-templates/bp-nouveau/includes/groups/functions.php:826
8636
  msgid "Use tab styling for primary navigation."
8637
  msgstr ""
8638
 
8639
+ #: bp-templates/bp-nouveau/includes/groups/functions.php:832
8640
  msgid "Use tab styling for secondary navigation."
8641
  msgstr ""
8642
 
8643
+ #: bp-templates/bp-nouveau/includes/groups/functions.php:838
8644
  msgid "Use tab styling for the group creation process."
8645
  msgstr ""
8646
 
8647
+ #: bp-templates/bp-nouveau/includes/groups/functions.php:845
8648
  msgid "Reorder the primary navigation for a group."
8649
  msgstr ""
8650
 
8651
+ #: bp-templates/bp-nouveau/includes/groups/functions.php:858
8652
  msgid "Group > Members"
8653
  msgstr ""
8654
 
8655
+ #: bp-templates/bp-nouveau/includes/groups/functions.php:865
8656
  msgid "Use column navigation for the Groups directory."
8657
  msgstr ""
8658
 
8659
+ #: bp-templates/bp-nouveau/includes/groups/functions.php:871
8660
  msgid "Use tab styling for Groups directory navigation."
8661
  msgstr ""
8662
 
8663
+ #: bp-templates/bp-nouveau/includes/groups/functions.php:1190
8664
  msgid "Pending Group membership requests"
8665
  msgstr ""
8666
 
8667
+ #: bp-templates/bp-nouveau/includes/groups/functions.php:1195
8668
  msgid "Accepted Group membership requests"
8669
  msgstr ""
8670
 
8671
+ #: bp-templates/bp-nouveau/includes/groups/functions.php:1200
8672
  msgid "Rejected Group membership requests"
8673
  msgstr ""
8674
 
8675
+ #: bp-templates/bp-nouveau/includes/groups/functions.php:1205
8676
  msgid "Group Administrator promotions"
8677
  msgstr ""
8678
 
8679
+ #: bp-templates/bp-nouveau/includes/groups/functions.php:1210
8680
  msgid "Group Moderator promotions"
8681
  msgstr ""
8682
 
8714
  msgid "Unauthorized request."
8715
  msgstr ""
8716
 
8717
+ #: bp-templates/bp-nouveau/includes/messages/ajax.php:524
8718
  msgid "There was a problem deleting your messages. Please try again."
8719
  msgstr ""
8720
 
8721
+ #: bp-templates/bp-nouveau/includes/messages/ajax.php:547
8722
  msgid "Messages deleted"
8723
  msgstr ""
8724
 
8725
+ #: bp-templates/bp-nouveau/includes/messages/ajax.php:563
8726
  msgid "There was a problem starring your messages. Please try again."
8727
  msgstr ""
8728
 
8729
+ #: bp-templates/bp-nouveau/includes/messages/ajax.php:565
8730
  msgid "There was a problem unstarring your messages. Please try again."
8731
  msgstr ""
8732
 
8733
+ #: bp-templates/bp-nouveau/includes/messages/ajax.php:639
8734
  msgid "Messages successfully starred."
8735
  msgstr ""
8736
 
8737
+ #: bp-templates/bp-nouveau/includes/messages/ajax.php:641
8738
  msgid "Messages successfully unstarred."
8739
  msgstr ""
8740
 
8741
+ #: bp-templates/bp-nouveau/includes/messages/ajax.php:662
8742
  msgid "There was a problem marking your messages as read. Please try again."
8743
  msgstr ""
8744
 
8745
+ #: bp-templates/bp-nouveau/includes/messages/ajax.php:668
8746
  msgid "There was a problem marking your messages as unread. Please try again."
8747
  msgstr ""
8748
 
8749
+ #: bp-templates/bp-nouveau/includes/messages/ajax.php:688
8750
  msgid "Messages marked as read."
8751
  msgstr ""
8752
 
8753
+ #: bp-templates/bp-nouveau/includes/messages/ajax.php:723
8754
  msgid "There was a problem dismissing the notice. Please try again."
8755
  msgstr ""
8756
 
8757
+ #: bp-templates/bp-nouveau/includes/messages/ajax.php:757
8758
  msgid "Sitewide notice dismissed"
8759
  msgstr ""
8760
 
10825
  msgid "BuddyPress Nouveau"
10826
  msgstr ""
10827
 
 
10828
  #: bp-templates/bp-nouveau/includes/groups/functions.php:307
10829
+ #: bp-templates/bp-nouveau/includes/groups/functions.php:313
10830
+ #: bp-templates/bp-nouveau/includes/groups/functions.php:333
10831
+ #: bp-templates/bp-nouveau/includes/groups/functions.php:344
10832
  msgctxt "Group invitations menu title"
10833
  msgid "Invite"
10834
  msgstr ""
10835
 
10836
+ #: bp-templates/bp-nouveau/includes/groups/functions.php:420
10837
+ #: bp-templates/bp-nouveau/includes/groups/functions.php:448
10838
  msgctxt "Group invitations main menu title"
10839
  msgid "Group Invites"
10840
  msgstr ""
10841
 
10842
+ #: bp-templates/bp-nouveau/includes/groups/functions.php:851
10843
  msgctxt "Customizer control label"
10844
  msgid "Groups"
10845
  msgstr ""
class-buddypress.php CHANGED
@@ -303,7 +303,7 @@ class BuddyPress {
303
 
304
  /** Versions **********************************************************/
305
 
306
- $this->version = '4.2.0';
307
  $this->db_version = 11105;
308
 
309
  /** Loading ***********************************************************/
303
 
304
  /** Versions **********************************************************/
305
 
306
+ $this->version = '4.3.0';
307
  $this->db_version = 11105;
308
 
309
  /** Loading ***********************************************************/
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: user profiles, activity streams, messaging, friends, user groups, notifica
4
  Requires at least: 4.6
5
  Tested up to: 5.1
6
  Requires PHP: 5.3
7
- Stable tag: 4.2.0
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -126,6 +126,9 @@ Try <a href="https://wordpress.org/plugins/bbpress/">bbPress</a>. It integrates
126
 
127
  == Upgrade Notice ==
128
 
 
 
 
129
  = 4.2.0 =
130
  See: https://codex.buddypress.org/releases/version-4-2-0/
131
 
@@ -137,6 +140,9 @@ See: https://codex.buddypress.org/releases/version-4-0-0/
137
 
138
  == Changelog ==
139
 
 
 
 
140
  = 4.2.0 =
141
  See: https://codex.buddypress.org/releases/version-4-2-0/
142
 
4
  Requires at least: 4.6
5
  Tested up to: 5.1
6
  Requires PHP: 5.3
7
+ Stable tag: 4.3.0
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
126
 
127
  == Upgrade Notice ==
128
 
129
+ = 4.3.0 =
130
+ See: https://codex.buddypress.org/releases/version-4-3-0/
131
+
132
  = 4.2.0 =
133
  See: https://codex.buddypress.org/releases/version-4-2-0/
134
 
140
 
141
  == Changelog ==
142
 
143
+ = 4.3.0 =
144
+ See: https://codex.buddypress.org/releases/version-4-3-0/
145
+
146
  = 4.2.0 =
147
  See: https://codex.buddypress.org/releases/version-4-2-0/
148