BuddyPress - Version 4.0.0-beta1

Version Description

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

Download this release

Release Info

Developer DJPaul
Plugin Icon 128x128 BuddyPress
Version 4.0.0-beta1
Comparing to
See all releases

Code changes from version 3.2.0 to 4.0.0-beta1

Files changed (142) hide show
  1. bp-activity/bp-activity-embeds.php +0 -2
  2. bp-activity/bp-activity-filters.php +20 -0
  3. bp-activity/bp-activity-functions.php +100 -0
  4. bp-blogs/bp-blogs-activity.php +6 -0
  5. bp-blogs/bp-blogs-cache.php +1 -1
  6. bp-blogs/bp-blogs-filters.php +26 -0
  7. bp-blogs/bp-blogs-functions.php +19 -6
  8. bp-blogs/classes/class-bp-blogs-component.php +2 -2
  9. bp-core/admin/css/common-rtl.css +0 -8
  10. bp-core/admin/css/common-rtl.min.css +1 -1
  11. bp-core/admin/css/common.css +0 -8
  12. bp-core/admin/css/common.min.css +1 -1
  13. bp-core/admin/css/hello-rtl.css +0 -12
  14. bp-core/admin/css/hello-rtl.min.css +1 -1
  15. bp-core/admin/css/hello.css +0 -12
  16. bp-core/admin/css/hello.min.css +1 -1
  17. bp-core/admin/js/customizer-receiver-emails.js +1 -1
  18. bp-core/admin/js/customizer-receiver-emails.min.js +1 -1
  19. bp-core/bp-core-attachments.php +2 -2
  20. bp-core/bp-core-cssjs.php +1 -23
  21. bp-core/bp-core-functions.php +21 -6
  22. bp-core/bp-core-template.php +10 -18
  23. bp-core/classes/class-bp-admin.php +65 -33
  24. bp-core/classes/class-bp-component.php +1 -1
  25. bp-core/css/admin-bar-rtl.css +0 -3
  26. bp-core/css/admin-bar-rtl.min.css +1 -1
  27. bp-core/css/admin-bar.css +0 -3
  28. bp-core/css/admin-bar.min.css +1 -1
  29. bp-core/css/avatar-rtl.css +0 -1
  30. bp-core/css/avatar-rtl.min.css +1 -1
  31. bp-core/css/avatar.css +0 -1
  32. bp-core/css/avatar.min.css +1 -1
  33. bp-core/css/buddybar-rtl.css +0 -2
  34. bp-core/css/buddybar-rtl.min.css +1 -1
  35. bp-core/css/buddybar.css +0 -2
  36. bp-core/css/buddybar.min.css +1 -1
  37. bp-core/deprecated/3.0.php +1 -1
  38. bp-core/deprecated/4.0.php +21 -0
  39. bp-friends/bp-friends-filters.php +28 -0
  40. bp-friends/bp-friends-functions.php +200 -0
  41. bp-groups/admin/js/admin.js +1 -1
  42. bp-groups/admin/js/admin.min.js +1 -1
  43. bp-groups/bp-groups-admin.php +12 -1
  44. bp-groups/bp-groups-filters.php +35 -0
  45. bp-groups/bp-groups-functions.php +299 -1
  46. bp-groups/classes/class-bp-groups-member.php +75 -0
  47. bp-loader.php +1 -1
  48. bp-members/bp-members-template.php +22 -0
  49. bp-members/classes/class-bp-members-component.php +11 -2
  50. bp-members/screens/register.php +4 -0
  51. bp-messages/bp-messages-filters.php +20 -0
  52. bp-messages/bp-messages-functions.php +98 -3
  53. bp-messages/css/autocomplete/jquery.autocompletefb-rtl.css +0 -6
  54. bp-messages/css/autocomplete/jquery.autocompletefb-rtl.min.css +1 -1
  55. bp-messages/css/autocomplete/jquery.autocompletefb.css +0 -6
  56. bp-messages/css/autocomplete/jquery.autocompletefb.min.css +1 -1
  57. bp-notifications/bp-notifications-filters.php +28 -0
  58. bp-notifications/bp-notifications-functions.php +94 -0
  59. bp-notifications/classes/class-bp-notifications-component.php +1 -0
  60. bp-settings/bp-settings-filters.php +27 -0
  61. bp-settings/bp-settings-functions.php +107 -0
  62. bp-settings/classes/class-bp-settings-component.php +1 -0
  63. bp-templates/bp-legacy/buddypress-functions.php +13 -0
  64. bp-templates/bp-legacy/css/buddypress-rtl.css +0 -41
  65. bp-templates/bp-legacy/css/buddypress-rtl.min.css +1 -1
  66. bp-templates/bp-legacy/css/buddypress.css +0 -41
  67. bp-templates/bp-legacy/css/buddypress.min.css +1 -1
  68. bp-templates/bp-legacy/css/twentyeleven-rtl.css +0 -9
  69. bp-templates/bp-legacy/css/twentyeleven-rtl.min.css +1 -1
  70. bp-templates/bp-legacy/css/twentyeleven.css +0 -9
  71. bp-templates/bp-legacy/css/twentyeleven.min.css +1 -1
  72. bp-templates/bp-legacy/css/twentyfifteen-rtl.css +0 -4
  73. bp-templates/bp-legacy/css/twentyfifteen-rtl.min.css +1 -1
  74. bp-templates/bp-legacy/css/twentyfifteen.css +0 -4
  75. bp-templates/bp-legacy/css/twentyfifteen.min.css +1 -1
  76. bp-templates/bp-legacy/css/twentyfourteen-rtl.css +0 -12
  77. bp-templates/bp-legacy/css/twentyfourteen-rtl.min.css +1 -1
  78. bp-templates/bp-legacy/css/twentyfourteen.css +0 -12
  79. bp-templates/bp-legacy/css/twentyfourteen.min.css +1 -1
  80. bp-templates/bp-legacy/css/twentyseventeen-rtl.css +0 -19
  81. bp-templates/bp-legacy/css/twentyseventeen-rtl.min.css +1 -1
  82. bp-templates/bp-legacy/css/twentyseventeen.css +0 -19
  83. bp-templates/bp-legacy/css/twentyseventeen.min.css +1 -1
  84. bp-templates/bp-legacy/css/twentysixteen-rtl.css +0 -4
  85. bp-templates/bp-legacy/css/twentysixteen-rtl.min.css +1 -1
  86. bp-templates/bp-legacy/css/twentysixteen.css +0 -4
  87. bp-templates/bp-legacy/css/twentysixteen.min.css +1 -1
  88. bp-templates/bp-legacy/css/twentyten-rtl.css +0 -19
  89. bp-templates/bp-legacy/css/twentyten-rtl.min.css +1 -1
  90. bp-templates/bp-legacy/css/twentyten.css +0 -19
  91. bp-templates/bp-legacy/css/twentyten.min.css +1 -1
  92. bp-templates/bp-legacy/css/twentythirteen-rtl.css +0 -4
  93. bp-templates/bp-legacy/css/twentythirteen-rtl.min.css +1 -1
  94. bp-templates/bp-legacy/css/twentythirteen.css +0 -4
  95. bp-templates/bp-legacy/css/twentythirteen.min.css +1 -1
  96. bp-templates/bp-legacy/css/twentytwelve-rtl.css +0 -9
  97. bp-templates/bp-legacy/css/twentytwelve-rtl.min.css +1 -1
  98. bp-templates/bp-legacy/css/twentytwelve.css +0 -9
  99. bp-templates/bp-legacy/css/twentytwelve.min.css +1 -1
  100. bp-templates/bp-legacy/js/buddypress.js +112 -42
  101. bp-templates/bp-legacy/js/buddypress.min.js +1 -1
  102. bp-templates/bp-nouveau/buddypress-functions.php +30 -17
  103. bp-templates/bp-nouveau/buddypress/members/register.php +13 -5
  104. bp-templates/bp-nouveau/buddypress/members/single/settings/delete-account.php +2 -2
  105. bp-templates/bp-nouveau/common-styles/_bp_generic_and_typography.scss +2 -2
  106. bp-templates/bp-nouveau/common-styles/_bp_tooltips.scss +2 -1
  107. bp-templates/bp-nouveau/common-styles/_bp_widgets.scss +93 -68
  108. bp-templates/bp-nouveau/css/buddypress-rtl.css +127 -240
  109. bp-templates/bp-nouveau/css/buddypress-rtl.min.css +1 -1
  110. bp-templates/bp-nouveau/css/buddypress.css +127 -240
  111. bp-templates/bp-nouveau/css/buddypress.min.css +1 -1
  112. bp-templates/bp-nouveau/includes/activity/functions.php +1 -1
  113. bp-templates/bp-nouveau/includes/activity/loader.php +1 -1
  114. bp-templates/bp-nouveau/includes/activity/template-tags.php +14 -10
  115. bp-templates/bp-nouveau/includes/activity/widgets.php +10 -6
  116. bp-templates/bp-nouveau/includes/blogs/loader.php +1 -1
  117. bp-templates/bp-nouveau/includes/classes.php +34 -17
  118. bp-templates/bp-nouveau/includes/friends/loader.php +1 -1
  119. bp-templates/bp-nouveau/includes/functions.php +20 -8
  120. bp-templates/bp-nouveau/includes/groups/ajax.php +7 -3
  121. bp-templates/bp-nouveau/includes/groups/classes.php +8 -4
  122. bp-templates/bp-nouveau/includes/groups/functions.php +1 -1
  123. bp-templates/bp-nouveau/includes/groups/loader.php +1 -1
  124. bp-templates/bp-nouveau/includes/members/template-tags.php +1 -1
  125. bp-templates/bp-nouveau/includes/messages/functions.php +1 -1
  126. bp-templates/bp-nouveau/includes/messages/loader.php +1 -1
  127. bp-templates/bp-nouveau/includes/notifications/functions.php +9 -5
  128. bp-templates/bp-nouveau/includes/template-tags.php +40 -7
  129. bp-templates/bp-nouveau/js/buddypress-group-invites.js +11 -1
  130. bp-templates/bp-nouveau/js/buddypress-group-invites.min.js +1 -1
  131. bp-templates/bp-nouveau/js/buddypress-messages.js +10 -1
  132. bp-templates/bp-nouveau/js/buddypress-messages.min.js +1 -1
  133. bp-templates/bp-nouveau/sass/buddypress.scss +1 -1
  134. bp-xprofile/admin/css/admin-rtl.css +0 -54
  135. bp-xprofile/admin/css/admin-rtl.min.css +1 -1
  136. bp-xprofile/admin/css/admin.css +0 -54
  137. bp-xprofile/admin/css/admin.min.css +1 -1
  138. bp-xprofile/bp-xprofile-filters.php +20 -0
  139. bp-xprofile/bp-xprofile-functions.php +52 -0
  140. buddypress.pot +824 -458
  141. class-buddypress.php +2 -1
  142. readme.txt +4 -4
bp-activity/bp-activity-embeds.php CHANGED
@@ -2,8 +2,6 @@
2
/**
3
* Functions related to embedding single activity items externally.
4
*
5
- * Relies on WordPress 4.5.
6
- *
7
* @since 2.6.0
8
*
9
* @package BuddyPress
2
/**
3
* Functions related to embedding single activity items externally.
4
*
5
* @since 2.6.0
6
*
7
* @package BuddyPress
bp-activity/bp-activity-filters.php CHANGED
@@ -109,6 +109,9 @@ add_filter( 'bp_get_total_mention_count_for_user', 'bp_core_number_format' );
109
110
add_filter( 'bp_activity_get_embed_excerpt', 'bp_activity_embed_excerpt_onclick_location_filter', 9 );
111
112
/* Actions *******************************************************************/
113
114
// At-name filter.
@@ -802,3 +805,20 @@ function bp_activity_filter_mentions_scope( $retval = array(), $filter = array()
802
return $retval;
803
}
804
add_filter( 'bp_activity_set_mentions_scope_args', 'bp_activity_filter_mentions_scope', 10, 2 );
109
110
add_filter( 'bp_activity_get_embed_excerpt', 'bp_activity_embed_excerpt_onclick_location_filter', 9 );
111
112
+ // Personal data export.
113
+ add_filter( 'wp_privacy_personal_data_exporters', 'bp_activity_register_personal_data_exporter' );
114
+
115
/* Actions *******************************************************************/
116
117
// At-name filter.
805
return $retval;
806
}
807
add_filter( 'bp_activity_set_mentions_scope_args', 'bp_activity_filter_mentions_scope', 10, 2 );
808
+
809
+ /**
810
+ * Registers Activity personal data exporter.
811
+ *
812
+ * @since 4.0.0
813
+ *
814
+ * @param array $exporters An array of personal data exporters.
815
+ * @return array An array of personal data exporters.
816
+ */
817
+ function bp_activity_register_personal_data_exporter( $exporters ) {
818
+ $exporters['buddypress-activity'] = array(
819
+ 'exporter_friendly_name' => __( 'BuddyPress Activity Data', 'buddypress' ),
820
+ 'callback' => 'bp_activity_personal_data_exporter',
821
+ );
822
+
823
+ return $exporters;
824
+ }
bp-activity/bp-activity-functions.php CHANGED
@@ -4164,3 +4164,103 @@ function bp_activity_transition_post_type_comment_status( $new_status, $old_stat
4164
remove_filter( 'bp_akismet_get_activity_types', $comment_akismet_history );
4165
}
4166
add_action( 'transition_comment_status', 'bp_activity_transition_post_type_comment_status', 10, 3 );
4164
remove_filter( 'bp_akismet_get_activity_types', $comment_akismet_history );
4165
}
4166
add_action( 'transition_comment_status', 'bp_activity_transition_post_type_comment_status', 10, 3 );
4167
+
4168
+ /**
4169
+ * Finds and exports personal data associated with an email address from the Activity tables.
4170
+ *
4171
+ * @since 4.0.0
4172
+ *
4173
+ * @param string $email_address The user's email address.
4174
+ * @param int $page Batch number.
4175
+ * @return array An array of personal data.
4176
+ */
4177
+ function bp_activity_personal_data_exporter( $email_address, $page ) {
4178
+ $number = 50;
4179
+
4180
+ $email_address = trim( $email_address );
4181
+
4182
+ $data_to_export = array();
4183
+
4184
+ $user = get_user_by( 'email', $email_address );
4185
+
4186
+ if ( ! $user ) {
4187
+ return array(
4188
+ 'data' => array(),
4189
+ 'done' => true,
4190
+ );
4191
+ }
4192
+
4193
+ $activities = bp_activity_get( array(
4194
+ 'display_comments' => 'stream',
4195
+ 'per_page' => $number,
4196
+ 'page' => $page,
4197
+ 'show_hidden' => true,
4198
+ 'filter' => array(
4199
+ 'user_id' => $user->ID,
4200
+ ),
4201
+ ) );
4202
+
4203
+ $user_data_to_export = array();
4204
+ $activity_actions = bp_activity_get_actions();
4205
+
4206
+ foreach ( $activities['activities'] as $activity ) {
4207
+ if ( ! empty( $activity_actions->{$activity->component}->{$activity->type}['format_callback'] ) ) {
4208
+ $description = call_user_func( $activity_actions->{$activity->component}->{$activity->type}['format_callback'], '', $activity );
4209
+ } elseif ( ! empty( $activity->action ) ) {
4210
+ $description = $activity->action;
4211
+ } else {
4212
+ $description = $activity->type;
4213
+ }
4214
+
4215
+ $item_data = array(
4216
+ array(
4217
+ 'name' => __( 'Activity Date', 'buddypress' ),
4218
+ 'value' => $activity->date_recorded,
4219
+ ),
4220
+ array(
4221
+ 'name' => __( 'Activity Description', 'buddypress' ),
4222
+ 'value' => $description,
4223
+ ),
4224
+ array(
4225
+ 'name' => __( 'Activity URL', 'buddypress' ),
4226
+ 'value' => bp_activity_get_permalink( $activity->id, $activity ),
4227
+ ),
4228
+ );
4229
+
4230
+ if ( ! empty( $activity->content ) ) {
4231
+ $item_data[] = array(
4232
+ 'name' => __( 'Activity Content', 'buddypress' ),
4233
+ 'value' => $activity->content,
4234
+ );
4235
+ }
4236
+
4237
+ /**
4238
+ * Filters the data associated with an activity item when assembled for a WP personal data export.
4239
+ *
4240
+ * Plugins that register activity types whose `action` string doesn't adequately
4241
+ * describe the activity item for the purposes of data export may filter the activity
4242
+ * item data here.
4243
+ *
4244
+ * @since 4.0.0
4245
+ *
4246
+ * @param array $item_data Array of data describing the activity item.
4247
+ * @param BP_Activity_Activity $activity Activity item.
4248
+ */
4249
+ $item_data = apply_filters( 'bp_activity_personal_data_export_item_data', $item_data, $activity );
4250
+
4251
+ $data_to_export[] = array(
4252
+ 'group_id' => 'bp_activity',
4253
+ 'group_label' => __( 'Activity', 'buddypress' ),
4254
+ 'item_id' => "bp-activity-{$activity->id}",
4255
+ 'data' => $item_data,
4256
+ );
4257
+ }
4258
+
4259
+ // Tell core if we have more items to process.
4260
+ $done = count( $activities['activities'] ) < $number;
4261
+
4262
+ return array(
4263
+ 'data' => $data_to_export,
4264
+ 'done' => $done,
4265
+ );
4266
+ }
bp-blogs/bp-blogs-activity.php CHANGED
@@ -776,6 +776,12 @@ function bp_blogs_sync_add_from_activity_comment( $comment_id, $params, $parent_
776
return;
777
}
778
779
// Get userdata.
780
if ( $params['user_id'] == bp_loggedin_user_id() ) {
781
$user = buddypress()->loggedin_user->userdata;
776
return;
777
}
778
779
+ // Check if comments are still open for parent item.
780
+ $comments_open = bp_blogs_comments_open( $parent_activity );
781
+ if ( ! $comments_open ) {
782
+ return;
783
+ }
784
+
785
// Get userdata.
786
if ( $params['user_id'] == bp_loggedin_user_id() ) {
787
$user = buddypress()->loggedin_user->userdata;
bp-blogs/bp-blogs-cache.php CHANGED
@@ -28,7 +28,7 @@ function bp_blogs_update_meta_cache( $blog_ids = false ) {
28
'object_ids' => $blog_ids,
29
'object_type' => buddypress()->blogs->id,
30
'object_column' => 'blog_id',
31
- 'cache_group' => 'blog_meta',
32
'meta_table' => buddypress()->blogs->table_name_blogmeta,
33
);
34
28
'object_ids' => $blog_ids,
29
'object_type' => buddypress()->blogs->id,
30
'object_column' => 'blog_id',
31
+ 'cache_group' => 'bp_blog_meta',
32
'meta_table' => buddypress()->blogs->table_name_blogmeta,
33
);
34
bp-blogs/bp-blogs-filters.php CHANGED
@@ -135,3 +135,29 @@ function bp_blogs_register_custom_site_icon_size( $sizes ) {
135
return $sizes;
136
}
137
add_filter( 'site_icon_image_sizes', 'bp_blogs_register_custom_site_icon_size' );
135
return $sizes;
136
}
137
add_filter( 'site_icon_image_sizes', 'bp_blogs_register_custom_site_icon_size' );
138
+
139
+ /**
140
+ * Filters the column name during blog metadata queries.
141
+ *
142
+ * This filters 'sanitize_key', which is used during various core metadata
143
+ * API functions: {@link https://core.trac.wordpress.org/browser/branches/4.9/src/wp-includes/meta.php?lines=47,160,324}.
144
+ * Due to how we are passing our meta type, we need to ensure that the correct
145
+ * DB column is referenced during blogmeta queries.
146
+ *
147
+ * @since 4.0.0
148
+ *
149
+ * @see bp_blogs_delete_blogmeta()
150
+ * @see bp_blogs_get_blogmeta()
151
+ * @see bp_blogs_update_blogmeta()
152
+ * @see bp_blogs_add_blogmeta()
153
+ *
154
+ * @param string $retval
155
+ *
156
+ * @return string
157
+ */
158
+ function bp_blogs_filter_meta_column_name( $retval ) {
159
+ if ( 'bp_blog_id' === $retval ) {
160
+ $retval = 'blog_id';
161
+ }
162
+ return $retval;
163
+ }
bp-blogs/bp-blogs-functions.php CHANGED
@@ -175,7 +175,7 @@ function bp_blogs_record_existing_blogs( $args = array() ) {
175
foreach ( (array) $blogs as $blog ) {
176
177
// Ensure that the cache is clear after the table TRUNCATE above.
178
- wp_cache_delete( $blog->blog_id, 'blog_meta' );
179
180
// Get all users.
181
$users = get_users( array(
@@ -1302,20 +1302,27 @@ function bp_blogs_delete_blogmeta( $blog_id, $meta_key = false, $meta_value = fa
1302
1303
// Legacy - if no meta_key is passed, delete all for the blog_id.
1304
if ( empty( $meta_key ) ) {
1305
- $keys = $wpdb->get_col( $wpdb->prepare( "SELECT meta_key FROM {$wpdb->blogmeta} WHERE blog_id = %d", $blog_id ) );
1306
$delete_all = false;
1307
} else {
1308
$keys = array( $meta_key );
1309
}
1310
1311
add_filter( 'query', 'bp_filter_metaid_column_name' );
1312
1313
$retval = false;
1314
foreach ( $keys as $key ) {
1315
- $retval = delete_metadata( 'blog', $blog_id, $key, $meta_value, $delete_all );
1316
}
1317
1318
remove_filter( 'query', 'bp_filter_metaid_column_name' );
1319
1320
return $retval;
1321
}
@@ -1338,7 +1345,9 @@ function bp_blogs_delete_blogmeta( $blog_id, $meta_key = false, $meta_value = fa
1338
*/
1339
function bp_blogs_get_blogmeta( $blog_id, $meta_key = '', $single = true ) {
1340
add_filter( 'query', 'bp_filter_metaid_column_name' );
1341
- $retval = get_metadata( 'blog', $blog_id, $meta_key, $single );
1342
remove_filter( 'query', 'bp_filter_metaid_column_name' );
1343
1344
return $retval;
@@ -1361,7 +1370,9 @@ function bp_blogs_get_blogmeta( $blog_id, $meta_key = '', $single = true ) {
1361
*/
1362
function bp_blogs_update_blogmeta( $blog_id, $meta_key, $meta_value, $prev_value = '' ) {
1363
add_filter( 'query', 'bp_filter_metaid_column_name' );
1364
- $retval = update_metadata( 'blog', $blog_id, $meta_key, $meta_value, $prev_value );
1365
remove_filter( 'query', 'bp_filter_metaid_column_name' );
1366
1367
return $retval;
@@ -1382,7 +1393,9 @@ function bp_blogs_update_blogmeta( $blog_id, $meta_key, $meta_value, $prev_value
1382
*/
1383
function bp_blogs_add_blogmeta( $blog_id, $meta_key, $meta_value, $unique = false ) {
1384
add_filter( 'query', 'bp_filter_metaid_column_name' );
1385
- $retval = add_metadata( 'blog', $blog_id, $meta_key, $meta_value, $unique );
1386
remove_filter( 'query', 'bp_filter_metaid_column_name' );
1387
1388
return $retval;
175
foreach ( (array) $blogs as $blog ) {
176
177
// Ensure that the cache is clear after the table TRUNCATE above.
178
+ wp_cache_delete( $blog->blog_id, 'bp_blog_meta' );
179
180
// Get all users.
181
$users = get_users( array(
1302
1303
// Legacy - if no meta_key is passed, delete all for the blog_id.
1304
if ( empty( $meta_key ) ) {
1305
+ $table_name = buddypress()->blogs->table_name_blogmeta;
1306
+ $sql = "SELECT meta_key FROM {$table_name} WHERE blog_id = %d";
1307
+ $query = $wpdb->prepare( $sql, $blog_id );
1308
+ $keys = $wpdb->get_col( $query );
1309
+
1310
+ // With no meta_key, ignore $delete_all.
1311
$delete_all = false;
1312
} else {
1313
$keys = array( $meta_key );
1314
}
1315
1316
add_filter( 'query', 'bp_filter_metaid_column_name' );
1317
+ add_filter( 'sanitize_key', 'bp_blogs_filter_meta_column_name' );
1318
1319
$retval = false;
1320
foreach ( $keys as $key ) {
1321
+ $retval = delete_metadata( 'bp_blog', $blog_id, $key, $meta_value, $delete_all );
1322
}
1323
1324
remove_filter( 'query', 'bp_filter_metaid_column_name' );
1325
+ remove_filter( 'sanitize_key', 'bp_blogs_filter_meta_column_name' );
1326
1327
return $retval;
1328
}
1345
*/
1346
function bp_blogs_get_blogmeta( $blog_id, $meta_key = '', $single = true ) {
1347
add_filter( 'query', 'bp_filter_metaid_column_name' );
1348
+ add_filter( 'sanitize_key', 'bp_blogs_filter_meta_column_name' );
1349
+ $retval = get_metadata( 'bp_blog', $blog_id, $meta_key, $single );
1350
+ remove_filter( 'sanitize_key', 'bp_blogs_filter_meta_column_name' );
1351
remove_filter( 'query', 'bp_filter_metaid_column_name' );
1352
1353
return $retval;
1370
*/
1371
function bp_blogs_update_blogmeta( $blog_id, $meta_key, $meta_value, $prev_value = '' ) {
1372
add_filter( 'query', 'bp_filter_metaid_column_name' );
1373
+ add_filter( 'sanitize_key', 'bp_blogs_filter_meta_column_name' );
1374
+ $retval = update_metadata( 'bp_blog', $blog_id, $meta_key, $meta_value, $prev_value );
1375
+ remove_filter( 'sanitize_key', 'bp_blogs_filter_meta_column_name' );
1376
remove_filter( 'query', 'bp_filter_metaid_column_name' );
1377
1378
return $retval;
1393
*/
1394
function bp_blogs_add_blogmeta( $blog_id, $meta_key, $meta_value, $unique = false ) {
1395
add_filter( 'query', 'bp_filter_metaid_column_name' );
1396
+ add_filter( 'sanitize_key', 'bp_blogs_filter_meta_column_name' );
1397
+ $retval = add_metadata( 'bp_blog', $blog_id, $meta_key, $meta_value, $unique );
1398
+ remove_filter( 'sanitize_key', 'bp_blogs_filter_meta_column_name' );
1399
remove_filter( 'query', 'bp_filter_metaid_column_name' );
1400
1401
return $retval;
bp-blogs/classes/class-bp-blogs-component.php CHANGED
@@ -63,7 +63,7 @@ class BP_Blogs_Component extends BP_Component {
63
);
64
65
$meta_tables = array(
66
- 'blog' => $bp->table_prefix . 'bp_user_blogs_blogmeta',
67
);
68
69
// Fetch the default directory title.
@@ -347,7 +347,7 @@ class BP_Blogs_Component extends BP_Component {
347
348
// Global groups.
349
wp_cache_add_global_groups( array(
350
- 'blog_meta'
351
) );
352
353
parent::setup_cache_groups();
63
);
64
65
$meta_tables = array(
66
+ 'bp_blog' => $bp->table_prefix . 'bp_user_blogs_blogmeta',
67
);
68
69
// Fetch the default directory title.
347
348
// Global groups.
349
wp_cache_add_global_groups( array(
350
+ 'bp_blog_meta'
351
) );
352
353
parent::setup_cache_groups();
bp-core/admin/css/common-rtl.css CHANGED
@@ -334,11 +334,7 @@ TABLE OF CONTENTS:
334
text-shadow: none;
335
text-transform: none;
336
top: 100%;
337
- -webkit-transform: translateX(-50%);
338
- -ms-transform: translateX(-50%);
339
transform: translateX(-50%);
340
- -webkit-transition: opacity 2s ease-out;
341
- -ms-transition: opacity 2s ease-out;
342
transition: opacity 2s ease-out;
343
white-space: pre;
344
word-wrap: break-word;
@@ -348,8 +344,6 @@ TABLE OF CONTENTS:
348
.bp-hello-close .bp-tooltip:after {
349
left: 0;
350
text-align: left;
351
- -webkit-transform: translateX(0);
352
- -ms-transform: translateX(0);
353
transform: translateX(0);
354
}
355
@@ -358,8 +352,6 @@ TABLE OF CONTENTS:
358
margin-bottom: 20px;
359
margin-top: 0;
360
top: auto;
361
- -webkit-transform: translateX(-15%);
362
- -ms-transform: translateX(-15%);
363
transform: translateX(-15%);
364
}
365
334
text-shadow: none;
335
text-transform: none;
336
top: 100%;
337
transform: translateX(-50%);
338
transition: opacity 2s ease-out;
339
white-space: pre;
340
word-wrap: break-word;
344
.bp-hello-close .bp-tooltip:after {
345
left: 0;
346
text-align: left;
347
transform: translateX(0);
348
}
349
352
margin-bottom: 20px;
353
margin-top: 0;
354
top: auto;
355
transform: translateX(-15%);
356
}
357
bp-core/admin/css/common-rtl.min.css CHANGED
@@ -1 +1 @@
1
- .bp-badge{color:#d84800;display:inline-block;font:400 150px/1 dashicons!important}.bp-badge:before{content:"\f448"}.index_page_bp-about code,.settings_page_bp-credits code{background-color:#e0e0e0;color:#636363;font-size:1em}.bp-about-wrap{position:relative;max-width:1050px;font-size:15px}.bp-about-wrap img{margin:0;max-width:100%;height:auto;vertical-align:middle}.bp-about-wrap p{line-height:1.5;font-size:14px}.bp-about-wrap h2{margin:40px 0 .6em;font-size:2.7em;line-height:1.3;font-weight:300;text-align:center}.bp-about-wrap h3{margin:1.25em 0 .6em;font-size:1.4em;line-height:1.5}.bp-about-wrap code{font-size:14px;font-weight:400}.bp-about-wrap .about-description{margin-top:1.4em;font-weight:400;line-height:1.6;font-size:19px}.bp-about-wrap h3.wp-people-group{margin:2.6em 0 1.33em;padding:0;font-size:16px;line-height:inherit}.bp-about-wrap .wp-people-group{padding:0 5px;margin:0 -5px 0 -15px}.bp-about-wrap .compact{margin-bottom:0}.bp-about-wrap .wp-person{display:inline-block;vertical-align:top;margin-left:10px;padding-bottom:15px;height:70px;width:280px}.bp-about-wrap .compact .wp-person{height:auto;width:180px;padding-bottom:0;margin-bottom:0}.bp-about-wrap .wp-person .gravatar{float:right;margin:0 0 10px 10px;padding:1px;width:60px;height:60px}.bp-about-wrap .compact .wp-person .gravatar{width:30px;height:30px}.bp-about-wrap .wp-person .web{margin:6px 0 2px;font-size:16px;font-weight:400;line-height:2;text-decoration:none}.bp-about-wrap .wp-person .title{display:block}.bp-about-wrap p.wp-credits-list a{white-space:nowrap}@media only screen and (max-width:500px){.bp-about-wrap{margin-left:20px;margin-right:10px}.bp-about-wrap .bp-about-wrap h1{margin-left:0}}#adminmenu #toplevel_page_bp-activity .wp-menu-image:before,#adminmenu #toplevel_page_bp-activity_network .wp-menu-image:before,#adminmenu #toplevel_page_bp-activity_user .wp-menu-image:before{content:"\f452"}#adminmenu #toplevel_page_bp-groups .wp-menu-image:before,#adminmenu #toplevel_page_bp-groups_network .wp-menu-image:before,#adminmenu #toplevel_page_bp-groups_user .wp-menu-image:before{content:"\f456"}#adminmenu #toplevel_page_bp-notifications .wp-menu-image:before,#adminmenu #toplevel_page_bp-notifications_network .wp-menu-image:before,#adminmenu #toplevel_page_bp-notifications_user .wp-menu-image:before{content:"\f439"}#adminmenu #toplevel_page_bp-messages .wp-menu-image:before,#adminmenu #toplevel_page_bp-messages_network .wp-menu-image:before,#adminmenu #toplevel_page_bp-messages_user .wp-menu-image:before{content:"\f457"}#adminmenu #toplevel_page_bp-friends .wp-menu-image:before,#adminmenu #toplevel_page_bp-friends_network .wp-menu-image:before,#adminmenu #toplevel_page_bp-friends_user .wp-menu-image:before{content:"\f454"}#adminmenu #toplevel_page_bp-settings .wp-menu-image:before,#adminmenu #toplevel_page_bp-settings_network .wp-menu-image:before,#adminmenu #toplevel_page_bp-settings_user .wp-menu-image:before{content:"\f108"}#adminmenu li.toplevel_page_bp-components .wp-menu-image,#adminmenu li.toplevel_page_bp-general-settings .wp-menu-image{content:"\f448"}.settings_page_bp-components td.plugin-title span{float:right;width:18px;height:18px;margin-left:5px}.settings_page_bp-components td.plugin-title span:before{font-family:dashicons;font-size:18px}.settings_page_bp-components tr.activity td.plugin-title span:before{content:"\f452"}.settings_page_bp-components tr.notifications td.plugin-title span:before{content:"\f339"}.settings_page_bp-components tr.xprofile td.plugin-title span:before{content:"\f336"}.settings_page_bp-components tr.settings td.plugin-title span:before{content:"\f108"}.settings_page_bp-components tr.groups td.plugin-title span:before{content:"\f456"}.settings_page_bp-components tr.messages td.plugin-title span:before{content:"\f457"}.settings_page_bp-components tr.blogs td.plugin-title span:before{content:"\f120"}.settings_page_bp-components tr.friends td.plugin-title span:before{content:"\f454"}.settings_page_bp-components tr.core td.plugin-title span:before{content:"\f448"}.settings_page_bp-components tr.members td.plugin-title span:before{content:"\f307"}#bp-admin-component-form .wp-list-table.plugins .plugin-title{width:25%}@media screen and (max-width:782px){.settings_page_bp-components td.plugin-title span{margin-top:5px}#bp-admin-component-form .wp-list-table.plugins .plugin-title{display:block;width:auto}#bp-admin-component-form .subsubsub{margin-bottom:0;padding-bottom:35px}}#adminmenu .toplevel_page_network-tools div.wp-menu-image:before{content:""}.bp-tooltip{position:relative}.bp-tooltip:after{background:#fff;border:1px solid #aaa;border-collapse:separate;border-radius:1px;box-shadow:-1px 1px 0 1px rgba(132,132,132,.3);color:#000;content:attr(data-bp-tooltip);display:none;font-family:sans-serif;font-size:11px;font-weight:400;letter-spacing:normal;line-height:1.5;margin-top:10px;max-width:240px;opacity:0;padding:3px 6px;position:absolute;left:50%;text-align:center;text-decoration:none;text-shadow:none;text-transform:none;top:100%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);-webkit-transition:opacity 2s ease-out;-ms-transition:opacity 2s ease-out;transition:opacity 2s ease-out;white-space:pre;word-wrap:break-word;z-index:998}.bp-hello-close .bp-tooltip:after{left:0;text-align:left;-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}.bp-hello-social .bp-tooltip:after{bottom:120%;margin-bottom:20px;margin-top:0;top:auto;-webkit-transform:translateX(-15%);-ms-transform:translateX(-15%);transform:translateX(-15%)}.bp-tooltip:active:after,.bp-tooltip:focus:after,.bp-tooltip:hover:after{display:inline-block;opacity:1;overflow:visible;text-decoration:none;z-index:999}body.site-users-php th#role,body.users-php th#role,body.users_page_bp-signups th#count_sent{width:10%}body.site-users-php th#email,body.site-users-php th#name,body.users-php th#email,body.users-php th#name,body.users-php th#registered,body.users_page_bp-signups th#date_sent,body.users_page_bp-signups th#email,body.users_page_bp-signups th#name,body.users_page_bp-signups th#registered{width:15%}body.users-php th#blogs,body.users_page_bp-signups th#blogs{width:20%}body.users_page_bp-signups td.count_sent,body.users_page_bp-signups th.column-count_sent{text-align:center}.bp-signups-list table{margin:1em 0}.bp-signups-list .column-fields{font-weight:700}.bp-new-notice-panel{background:#fff;border:1px solid #e5e5e5;box-shadow:0 1px 1px rgba(0,0,0,.04);font-size:13px;line-height:2.1;margin:1.5em 0 3em;overflow:auto;padding:10px 25px 25px;position:relative}.bp-new-notice-panel label{clear:both;float:right;margin-left:3%;width:20%}.bp-new-notice-panel input,.bp-new-notice-panel textarea{clear:none;margin-bottom:1em;width:75%}.bp-new-notice-panel input[type=text]:after,.bp-new-notice-panel textarea:after{clear:both;content:" ";display:table}.bp-new-notice-panel .button-primary{margin-right:23%;width:auto}.bp-notice-about{font-size:1em;margin-bottom:1em}.bp-new-notice{margin-bottom:1em;margin-top:0}.bp-notices-list{margin-bottom:0}@media screen and (max-width:782px){.bp-new-notice-panel{margin-bottom:1.5em}.bp-new-notice-panel input,.bp-new-notice-panel textarea{margin-right:0;width:100%}.bp-new-notice-panel .button-primary{margin-right:0;width:auto}.bp-new-notice-panel .button{max-width:45%;word-wrap:break-word}.bp-notice-about{margin-top:0;margin-bottom:1em}.bp-new-notice{margin-bottom:.5em}}body.post-type-bp-email #excerpt{height:auto}body.post-type-bp-email th#situation{width:20%}body.post-type-bp-email td.column-situation ul{margin:0}body.post-type-bp-email .categorydiv label{display:block;float:right;padding-right:25px;text-indent:-25px}.tools_page_bp-tools .wrap{max-width:950px}.tools_page_bp-tools p{line-height:2}.tools_page_bp-tools fieldset{margin:2em 0 0}.tools_page_bp-tools legend{color:#23282d;font-size:1.3em;font-weight:600;margin:1em 0}.tools_page_bp-tools label{clear:right;display:block;line-height:1.5;margin:0 0 1em;vertical-align:middle}@media screen and (max-width:782px){.tools_page_bp-tools p{line-height:1.5}.tools_page_bp-tools label{margin-bottom:1em;padding-left:25px;text-indent:-33px}.tools_page_bp-tools .checkbox{padding:0 30px 0 0}}#buddypress-update.not-shiny .update-message{border-right:0;padding-right:36px}#buddypress-update.not-shiny .update-message:before{content:"\f534"}
1
+ .bp-badge{color:#d84800;display:inline-block;font:400 150px/1 dashicons!important}.bp-badge:before{content:"\f448"}.index_page_bp-about code,.settings_page_bp-credits code{background-color:#e0e0e0;color:#636363;font-size:1em}.bp-about-wrap{position:relative;max-width:1050px;font-size:15px}.bp-about-wrap img{margin:0;max-width:100%;height:auto;vertical-align:middle}.bp-about-wrap p{line-height:1.5;font-size:14px}.bp-about-wrap h2{margin:40px 0 .6em;font-size:2.7em;line-height:1.3;font-weight:300;text-align:center}.bp-about-wrap h3{margin:1.25em 0 .6em;font-size:1.4em;line-height:1.5}.bp-about-wrap code{font-size:14px;font-weight:400}.bp-about-wrap .about-description{margin-top:1.4em;font-weight:400;line-height:1.6;font-size:19px}.bp-about-wrap h3.wp-people-group{margin:2.6em 0 1.33em;padding:0;font-size:16px;line-height:inherit}.bp-about-wrap .wp-people-group{padding:0 5px;margin:0 -5px 0 -15px}.bp-about-wrap .compact{margin-bottom:0}.bp-about-wrap .wp-person{display:inline-block;vertical-align:top;margin-left:10px;padding-bottom:15px;height:70px;width:280px}.bp-about-wrap .compact .wp-person{height:auto;width:180px;padding-bottom:0;margin-bottom:0}.bp-about-wrap .wp-person .gravatar{float:right;margin:0 0 10px 10px;padding:1px;width:60px;height:60px}.bp-about-wrap .compact .wp-person .gravatar{width:30px;height:30px}.bp-about-wrap .wp-person .web{margin:6px 0 2px;font-size:16px;font-weight:400;line-height:2;text-decoration:none}.bp-about-wrap .wp-person .title{display:block}.bp-about-wrap p.wp-credits-list a{white-space:nowrap}@media only screen and (max-width:500px){.bp-about-wrap{margin-left:20px;margin-right:10px}.bp-about-wrap .bp-about-wrap h1{margin-left:0}}#adminmenu #toplevel_page_bp-activity .wp-menu-image:before,#adminmenu #toplevel_page_bp-activity_network .wp-menu-image:before,#adminmenu #toplevel_page_bp-activity_user .wp-menu-image:before{content:"\f452"}#adminmenu #toplevel_page_bp-groups .wp-menu-image:before,#adminmenu #toplevel_page_bp-groups_network .wp-menu-image:before,#adminmenu #toplevel_page_bp-groups_user .wp-menu-image:before{content:"\f456"}#adminmenu #toplevel_page_bp-notifications .wp-menu-image:before,#adminmenu #toplevel_page_bp-notifications_network .wp-menu-image:before,#adminmenu #toplevel_page_bp-notifications_user .wp-menu-image:before{content:"\f439"}#adminmenu #toplevel_page_bp-messages .wp-menu-image:before,#adminmenu #toplevel_page_bp-messages_network .wp-menu-image:before,#adminmenu #toplevel_page_bp-messages_user .wp-menu-image:before{content:"\f457"}#adminmenu #toplevel_page_bp-friends .wp-menu-image:before,#adminmenu #toplevel_page_bp-friends_network .wp-menu-image:before,#adminmenu #toplevel_page_bp-friends_user .wp-menu-image:before{content:"\f454"}#adminmenu #toplevel_page_bp-settings .wp-menu-image:before,#adminmenu #toplevel_page_bp-settings_network .wp-menu-image:before,#adminmenu #toplevel_page_bp-settings_user .wp-menu-image:before{content:"\f108"}#adminmenu li.toplevel_page_bp-components .wp-menu-image,#adminmenu li.toplevel_page_bp-general-settings .wp-menu-image{content:"\f448"}.settings_page_bp-components td.plugin-title span{float:right;width:18px;height:18px;margin-left:5px}.settings_page_bp-components td.plugin-title span:before{font-family:dashicons;font-size:18px}.settings_page_bp-components tr.activity td.plugin-title span:before{content:"\f452"}.settings_page_bp-components tr.notifications td.plugin-title span:before{content:"\f339"}.settings_page_bp-components tr.xprofile td.plugin-title span:before{content:"\f336"}.settings_page_bp-components tr.settings td.plugin-title span:before{content:"\f108"}.settings_page_bp-components tr.groups td.plugin-title span:before{content:"\f456"}.settings_page_bp-components tr.messages td.plugin-title span:before{content:"\f457"}.settings_page_bp-components tr.blogs td.plugin-title span:before{content:"\f120"}.settings_page_bp-components tr.friends td.plugin-title span:before{content:"\f454"}.settings_page_bp-components tr.core td.plugin-title span:before{content:"\f448"}.settings_page_bp-components tr.members td.plugin-title span:before{content:"\f307"}#bp-admin-component-form .wp-list-table.plugins .plugin-title{width:25%}@media screen and (max-width:782px){.settings_page_bp-components td.plugin-title span{margin-top:5px}#bp-admin-component-form .wp-list-table.plugins .plugin-title{display:block;width:auto}#bp-admin-component-form .subsubsub{margin-bottom:0;padding-bottom:35px}}#adminmenu .toplevel_page_network-tools div.wp-menu-image:before{content:""}.bp-tooltip{position:relative}.bp-tooltip:after{background:#fff;border:1px solid #aaa;border-collapse:separate;border-radius:1px;box-shadow:-1px 1px 0 1px rgba(132,132,132,.3);color:#000;content:attr(data-bp-tooltip);display:none;font-family:sans-serif;font-size:11px;font-weight:400;letter-spacing:normal;line-height:1.5;margin-top:10px;max-width:240px;opacity:0;padding:3px 6px;position:absolute;left:50%;text-align:center;text-decoration:none;text-shadow:none;text-transform:none;top:100%;transform:translateX(-50%);transition:opacity 2s ease-out;white-space:pre;word-wrap:break-word;z-index:998}.bp-hello-close .bp-tooltip:after{left:0;text-align:left;transform:translateX(0)}.bp-hello-social .bp-tooltip:after{bottom:120%;margin-bottom:20px;margin-top:0;top:auto;transform:translateX(-15%)}.bp-tooltip:active:after,.bp-tooltip:focus:after,.bp-tooltip:hover:after{display:inline-block;opacity:1;overflow:visible;text-decoration:none;z-index:999}body.site-users-php th#role,body.users-php th#role,body.users_page_bp-signups th#count_sent{width:10%}body.site-users-php th#email,body.site-users-php th#name,body.users-php th#email,body.users-php th#name,body.users-php th#registered,body.users_page_bp-signups th#date_sent,body.users_page_bp-signups th#email,body.users_page_bp-signups th#name,body.users_page_bp-signups th#registered{width:15%}body.users-php th#blogs,body.users_page_bp-signups th#blogs{width:20%}body.users_page_bp-signups td.count_sent,body.users_page_bp-signups th.column-count_sent{text-align:center}.bp-signups-list table{margin:1em 0}.bp-signups-list .column-fields{font-weight:700}.bp-new-notice-panel{background:#fff;border:1px solid #e5e5e5;box-shadow:0 1px 1px rgba(0,0,0,.04);font-size:13px;line-height:2.1;margin:1.5em 0 3em;overflow:auto;padding:10px 25px 25px;position:relative}.bp-new-notice-panel label{clear:both;float:right;margin-left:3%;width:20%}.bp-new-notice-panel input,.bp-new-notice-panel textarea{clear:none;margin-bottom:1em;width:75%}.bp-new-notice-panel input[type=text]:after,.bp-new-notice-panel textarea:after{clear:both;content:" ";display:table}.bp-new-notice-panel .button-primary{margin-right:23%;width:auto}.bp-notice-about{font-size:1em;margin-bottom:1em}.bp-new-notice{margin-bottom:1em;margin-top:0}.bp-notices-list{margin-bottom:0}@media screen and (max-width:782px){.bp-new-notice-panel{margin-bottom:1.5em}.bp-new-notice-panel input,.bp-new-notice-panel textarea{margin-right:0;width:100%}.bp-new-notice-panel .button-primary{margin-right:0;width:auto}.bp-new-notice-panel .button{max-width:45%;word-wrap:break-word}.bp-notice-about{margin-top:0;margin-bottom:1em}.bp-new-notice{margin-bottom:.5em}}body.post-type-bp-email #excerpt{height:auto}body.post-type-bp-email th#situation{width:20%}body.post-type-bp-email td.column-situation ul{margin:0}body.post-type-bp-email .categorydiv label{display:block;float:right;padding-right:25px;text-indent:-25px}.tools_page_bp-tools .wrap{max-width:950px}.tools_page_bp-tools p{line-height:2}.tools_page_bp-tools fieldset{margin:2em 0 0}.tools_page_bp-tools legend{color:#23282d;font-size:1.3em;font-weight:600;margin:1em 0}.tools_page_bp-tools label{clear:right;display:block;line-height:1.5;margin:0 0 1em;vertical-align:middle}@media screen and (max-width:782px){.tools_page_bp-tools p{line-height:1.5}.tools_page_bp-tools label{margin-bottom:1em;padding-left:25px;text-indent:-33px}.tools_page_bp-tools .checkbox{padding:0 30px 0 0}}#buddypress-update.not-shiny .update-message{border-right:0;padding-right:36px}#buddypress-update.not-shiny .update-message:before{content:"\f534"}
bp-core/admin/css/common.css CHANGED
@@ -334,11 +334,7 @@ TABLE OF CONTENTS:
334
text-shadow: none;
335
text-transform: none;
336
top: 100%;
337
- -webkit-transform: translateX(50%);
338
- -ms-transform: translateX(50%);
339
transform: translateX(50%);
340
- -webkit-transition: opacity 2s ease-out;
341
- -ms-transition: opacity 2s ease-out;
342
transition: opacity 2s ease-out;
343
white-space: pre;
344
word-wrap: break-word;
@@ -348,8 +344,6 @@ TABLE OF CONTENTS:
348
.bp-hello-close .bp-tooltip:after {
349
right: 0;
350
text-align: right;
351
- -webkit-transform: translateX(0);
352
- -ms-transform: translateX(0);
353
transform: translateX(0);
354
}
355
@@ -358,8 +352,6 @@ TABLE OF CONTENTS:
358
margin-bottom: 20px;
359
margin-top: 0;
360
top: auto;
361
- -webkit-transform: translateX(15%);
362
- -ms-transform: translateX(15%);
363
transform: translateX(15%);
364
}
365
334
text-shadow: none;
335
text-transform: none;
336
top: 100%;
337
transform: translateX(50%);
338
transition: opacity 2s ease-out;
339
white-space: pre;
340
word-wrap: break-word;
344
.bp-hello-close .bp-tooltip:after {
345
right: 0;
346
text-align: right;
347
transform: translateX(0);
348
}
349
352
margin-bottom: 20px;
353
margin-top: 0;
354
top: auto;
355
transform: translateX(15%);
356
}
357
bp-core/admin/css/common.min.css CHANGED
@@ -1 +1 @@
1
- .bp-badge{color:#d84800;display:inline-block;font:400 150px/1 dashicons!important}.bp-badge:before{content:"\f448"}.index_page_bp-about code,.settings_page_bp-credits code{background-color:#e0e0e0;color:#636363;font-size:1em}.bp-about-wrap{position:relative;max-width:1050px;font-size:15px}.bp-about-wrap img{margin:0;max-width:100%;height:auto;vertical-align:middle}.bp-about-wrap p{line-height:1.5;font-size:14px}.bp-about-wrap h2{margin:40px 0 .6em;font-size:2.7em;line-height:1.3;font-weight:300;text-align:center}.bp-about-wrap h3{margin:1.25em 0 .6em;font-size:1.4em;line-height:1.5}.bp-about-wrap code{font-size:14px;font-weight:400}.bp-about-wrap .about-description{margin-top:1.4em;font-weight:400;line-height:1.6;font-size:19px}.bp-about-wrap h3.wp-people-group{margin:2.6em 0 1.33em;padding:0;font-size:16px;line-height:inherit}.bp-about-wrap .wp-people-group{padding:0 5px;margin:0 -15px 0 -5px}.bp-about-wrap .compact{margin-bottom:0}.bp-about-wrap .wp-person{display:inline-block;vertical-align:top;margin-right:10px;padding-bottom:15px;height:70px;width:280px}.bp-about-wrap .compact .wp-person{height:auto;width:180px;padding-bottom:0;margin-bottom:0}.bp-about-wrap .wp-person .gravatar{float:left;margin:0 10px 10px 0;padding:1px;width:60px;height:60px}.bp-about-wrap .compact .wp-person .gravatar{width:30px;height:30px}.bp-about-wrap .wp-person .web{margin:6px 0 2px;font-size:16px;font-weight:400;line-height:2;text-decoration:none}.bp-about-wrap .wp-person .title{display:block}.bp-about-wrap p.wp-credits-list a{white-space:nowrap}@media only screen and (max-width:500px){.bp-about-wrap{margin-right:20px;margin-left:10px}.bp-about-wrap .bp-about-wrap h1{margin-right:0}}#adminmenu #toplevel_page_bp-activity .wp-menu-image:before,#adminmenu #toplevel_page_bp-activity_network .wp-menu-image:before,#adminmenu #toplevel_page_bp-activity_user .wp-menu-image:before{content:"\f452"}#adminmenu #toplevel_page_bp-groups .wp-menu-image:before,#adminmenu #toplevel_page_bp-groups_network .wp-menu-image:before,#adminmenu #toplevel_page_bp-groups_user .wp-menu-image:before{content:"\f456"}#adminmenu #toplevel_page_bp-notifications .wp-menu-image:before,#adminmenu #toplevel_page_bp-notifications_network .wp-menu-image:before,#adminmenu #toplevel_page_bp-notifications_user .wp-menu-image:before{content:"\f439"}#adminmenu #toplevel_page_bp-messages .wp-menu-image:before,#adminmenu #toplevel_page_bp-messages_network .wp-menu-image:before,#adminmenu #toplevel_page_bp-messages_user .wp-menu-image:before{content:"\f457"}#adminmenu #toplevel_page_bp-friends .wp-menu-image:before,#adminmenu #toplevel_page_bp-friends_network .wp-menu-image:before,#adminmenu #toplevel_page_bp-friends_user .wp-menu-image:before{content:"\f454"}#adminmenu #toplevel_page_bp-settings .wp-menu-image:before,#adminmenu #toplevel_page_bp-settings_network .wp-menu-image:before,#adminmenu #toplevel_page_bp-settings_user .wp-menu-image:before{content:"\f108"}#adminmenu li.toplevel_page_bp-components .wp-menu-image,#adminmenu li.toplevel_page_bp-general-settings .wp-menu-image{content:"\f448"}.settings_page_bp-components td.plugin-title span{float:left;width:18px;height:18px;margin-right:5px}.settings_page_bp-components td.plugin-title span:before{font-family:dashicons;font-size:18px}.settings_page_bp-components tr.activity td.plugin-title span:before{content:"\f452"}.settings_page_bp-components tr.notifications td.plugin-title span:before{content:"\f339"}.settings_page_bp-components tr.xprofile td.plugin-title span:before{content:"\f336"}.settings_page_bp-components tr.settings td.plugin-title span:before{content:"\f108"}.settings_page_bp-components tr.groups td.plugin-title span:before{content:"\f456"}.settings_page_bp-components tr.messages td.plugin-title span:before{content:"\f457"}.settings_page_bp-components tr.blogs td.plugin-title span:before{content:"\f120"}.settings_page_bp-components tr.friends td.plugin-title span:before{content:"\f454"}.settings_page_bp-components tr.core td.plugin-title span:before{content:"\f448"}.settings_page_bp-components tr.members td.plugin-title span:before{content:"\f307"}#bp-admin-component-form .wp-list-table.plugins .plugin-title{width:25%}@media screen and (max-width:782px){.settings_page_bp-components td.plugin-title span{margin-top:5px}#bp-admin-component-form .wp-list-table.plugins .plugin-title{display:block;width:auto}#bp-admin-component-form .subsubsub{margin-bottom:0;padding-bottom:35px}}#adminmenu .toplevel_page_network-tools div.wp-menu-image:before{content:""}.bp-tooltip{position:relative}.bp-tooltip:after{background:#fff;border:1px solid #aaa;border-collapse:separate;border-radius:1px;box-shadow:1px 1px 0 1px rgba(132,132,132,.3);color:#000;content:attr(data-bp-tooltip);display:none;font-family:sans-serif;font-size:11px;font-weight:400;letter-spacing:normal;line-height:1.5;margin-top:10px;max-width:240px;opacity:0;padding:3px 6px;position:absolute;right:50%;text-align:center;text-decoration:none;text-shadow:none;text-transform:none;top:100%;-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%);-webkit-transition:opacity 2s ease-out;-ms-transition:opacity 2s ease-out;transition:opacity 2s ease-out;white-space:pre;word-wrap:break-word;z-index:998}.bp-hello-close .bp-tooltip:after{right:0;text-align:right;-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}.bp-hello-social .bp-tooltip:after{bottom:120%;margin-bottom:20px;margin-top:0;top:auto;-webkit-transform:translateX(15%);-ms-transform:translateX(15%);transform:translateX(15%)}.bp-tooltip:active:after,.bp-tooltip:focus:after,.bp-tooltip:hover:after{display:inline-block;opacity:1;overflow:visible;text-decoration:none;z-index:999}body.site-users-php th#role,body.users-php th#role,body.users_page_bp-signups th#count_sent{width:10%}body.site-users-php th#email,body.site-users-php th#name,body.users-php th#email,body.users-php th#name,body.users-php th#registered,body.users_page_bp-signups th#date_sent,body.users_page_bp-signups th#email,body.users_page_bp-signups th#name,body.users_page_bp-signups th#registered{width:15%}body.users-php th#blogs,body.users_page_bp-signups th#blogs{width:20%}body.users_page_bp-signups td.count_sent,body.users_page_bp-signups th.column-count_sent{text-align:center}.bp-signups-list table{margin:1em 0}.bp-signups-list .column-fields{font-weight:700}.bp-new-notice-panel{background:#fff;border:1px solid #e5e5e5;box-shadow:0 1px 1px rgba(0,0,0,.04);font-size:13px;line-height:2.1;margin:1.5em 0 3em;overflow:auto;padding:10px 25px 25px;position:relative}.bp-new-notice-panel label{clear:both;float:left;margin-right:3%;width:20%}.bp-new-notice-panel input,.bp-new-notice-panel textarea{clear:none;margin-bottom:1em;width:75%}.bp-new-notice-panel input[type=text]:after,.bp-new-notice-panel textarea:after{clear:both;content:" ";display:table}.bp-new-notice-panel .button-primary{margin-left:23%;width:auto}.bp-notice-about{font-size:1em;margin-bottom:1em}.bp-new-notice{margin-bottom:1em;margin-top:0}.bp-notices-list{margin-bottom:0}@media screen and (max-width:782px){.bp-new-notice-panel{margin-bottom:1.5em}.bp-new-notice-panel input,.bp-new-notice-panel textarea{margin-left:0;width:100%}.bp-new-notice-panel .button-primary{margin-left:0;width:auto}.bp-new-notice-panel .button{max-width:45%;word-wrap:break-word}.bp-notice-about{margin-top:0;margin-bottom:1em}.bp-new-notice{margin-bottom:.5em}}body.post-type-bp-email #excerpt{height:auto}body.post-type-bp-email th#situation{width:20%}body.post-type-bp-email td.column-situation ul{margin:0}body.post-type-bp-email .categorydiv label{display:block;float:left;padding-left:25px;text-indent:-25px}.tools_page_bp-tools .wrap{max-width:950px}.tools_page_bp-tools p{line-height:2}.tools_page_bp-tools fieldset{margin:2em 0 0}.tools_page_bp-tools legend{color:#23282d;font-size:1.3em;font-weight:600;margin:1em 0}.tools_page_bp-tools label{clear:left;display:block;line-height:1.5;margin:0 0 1em;vertical-align:middle}@media screen and (max-width:782px){.tools_page_bp-tools p{line-height:1.5}.tools_page_bp-tools label{margin-bottom:1em;padding-right:25px;text-indent:-33px}.tools_page_bp-tools .checkbox{padding:0 0 0 30px}}#buddypress-update.not-shiny .update-message{border-left:0;padding-left:36px}#buddypress-update.not-shiny .update-message:before{content:"\f534"}
1
+ .bp-badge{color:#d84800;display:inline-block;font:400 150px/1 dashicons!important}.bp-badge:before{content:"\f448"}.index_page_bp-about code,.settings_page_bp-credits code{background-color:#e0e0e0;color:#636363;font-size:1em}.bp-about-wrap{position:relative;max-width:1050px;font-size:15px}.bp-about-wrap img{margin:0;max-width:100%;height:auto;vertical-align:middle}.bp-about-wrap p{line-height:1.5;font-size:14px}.bp-about-wrap h2{margin:40px 0 .6em;font-size:2.7em;line-height:1.3;font-weight:300;text-align:center}.bp-about-wrap h3{margin:1.25em 0 .6em;font-size:1.4em;line-height:1.5}.bp-about-wrap code{font-size:14px;font-weight:400}.bp-about-wrap .about-description{margin-top:1.4em;font-weight:400;line-height:1.6;font-size:19px}.bp-about-wrap h3.wp-people-group{margin:2.6em 0 1.33em;padding:0;font-size:16px;line-height:inherit}.bp-about-wrap .wp-people-group{padding:0 5px;margin:0 -15px 0 -5px}.bp-about-wrap .compact{margin-bottom:0}.bp-about-wrap .wp-person{display:inline-block;vertical-align:top;margin-right:10px;padding-bottom:15px;height:70px;width:280px}.bp-about-wrap .compact .wp-person{height:auto;width:180px;padding-bottom:0;margin-bottom:0}.bp-about-wrap .wp-person .gravatar{float:left;margin:0 10px 10px 0;padding:1px;width:60px;height:60px}.bp-about-wrap .compact .wp-person .gravatar{width:30px;height:30px}.bp-about-wrap .wp-person .web{margin:6px 0 2px;font-size:16px;font-weight:400;line-height:2;text-decoration:none}.bp-about-wrap .wp-person .title{display:block}.bp-about-wrap p.wp-credits-list a{white-space:nowrap}@media only screen and (max-width:500px){.bp-about-wrap{margin-right:20px;margin-left:10px}.bp-about-wrap .bp-about-wrap h1{margin-right:0}}#adminmenu #toplevel_page_bp-activity .wp-menu-image:before,#adminmenu #toplevel_page_bp-activity_network .wp-menu-image:before,#adminmenu #toplevel_page_bp-activity_user .wp-menu-image:before{content:"\f452"}#adminmenu #toplevel_page_bp-groups .wp-menu-image:before,#adminmenu #toplevel_page_bp-groups_network .wp-menu-image:before,#adminmenu #toplevel_page_bp-groups_user .wp-menu-image:before{content:"\f456"}#adminmenu #toplevel_page_bp-notifications .wp-menu-image:before,#adminmenu #toplevel_page_bp-notifications_network .wp-menu-image:before,#adminmenu #toplevel_page_bp-notifications_user .wp-menu-image:before{content:"\f439"}#adminmenu #toplevel_page_bp-messages .wp-menu-image:before,#adminmenu #toplevel_page_bp-messages_network .wp-menu-image:before,#adminmenu #toplevel_page_bp-messages_user .wp-menu-image:before{content:"\f457"}#adminmenu #toplevel_page_bp-friends .wp-menu-image:before,#adminmenu #toplevel_page_bp-friends_network .wp-menu-image:before,#adminmenu #toplevel_page_bp-friends_user .wp-menu-image:before{content:"\f454"}#adminmenu #toplevel_page_bp-settings .wp-menu-image:before,#adminmenu #toplevel_page_bp-settings_network .wp-menu-image:before,#adminmenu #toplevel_page_bp-settings_user .wp-menu-image:before{content:"\f108"}#adminmenu li.toplevel_page_bp-components .wp-menu-image,#adminmenu li.toplevel_page_bp-general-settings .wp-menu-image{content:"\f448"}.settings_page_bp-components td.plugin-title span{float:left;width:18px;height:18px;margin-right:5px}.settings_page_bp-components td.plugin-title span:before{font-family:dashicons;font-size:18px}.settings_page_bp-components tr.activity td.plugin-title span:before{content:"\f452"}.settings_page_bp-components tr.notifications td.plugin-title span:before{content:"\f339"}.settings_page_bp-components tr.xprofile td.plugin-title span:before{content:"\f336"}.settings_page_bp-components tr.settings td.plugin-title span:before{content:"\f108"}.settings_page_bp-components tr.groups td.plugin-title span:before{content:"\f456"}.settings_page_bp-components tr.messages td.plugin-title span:before{content:"\f457"}.settings_page_bp-components tr.blogs td.plugin-title span:before{content:"\f120"}.settings_page_bp-components tr.friends td.plugin-title span:before{content:"\f454"}.settings_page_bp-components tr.core td.plugin-title span:before{content:"\f448"}.settings_page_bp-components tr.members td.plugin-title span:before{content:"\f307"}#bp-admin-component-form .wp-list-table.plugins .plugin-title{width:25%}@media screen and (max-width:782px){.settings_page_bp-components td.plugin-title span{margin-top:5px}#bp-admin-component-form .wp-list-table.plugins .plugin-title{display:block;width:auto}#bp-admin-component-form .subsubsub{margin-bottom:0;padding-bottom:35px}}#adminmenu .toplevel_page_network-tools div.wp-menu-image:before{content:""}.bp-tooltip{position:relative}.bp-tooltip:after{background:#fff;border:1px solid #aaa;border-collapse:separate;border-radius:1px;box-shadow:1px 1px 0 1px rgba(132,132,132,.3);color:#000;content:attr(data-bp-tooltip);display:none;font-family:sans-serif;font-size:11px;font-weight:400;letter-spacing:normal;line-height:1.5;margin-top:10px;max-width:240px;opacity:0;padding:3px 6px;position:absolute;right:50%;text-align:center;text-decoration:none;text-shadow:none;text-transform:none;top:100%;transform:translateX(50%);transition:opacity 2s ease-out;white-space:pre;word-wrap:break-word;z-index:998}.bp-hello-close .bp-tooltip:after{right:0;text-align:right;transform:translateX(0)}.bp-hello-social .bp-tooltip:after{bottom:120%;margin-bottom:20px;margin-top:0;top:auto;transform:translateX(15%)}.bp-tooltip:active:after,.bp-tooltip:focus:after,.bp-tooltip:hover:after{display:inline-block;opacity:1;overflow:visible;text-decoration:none;z-index:999}body.site-users-php th#role,body.users-php th#role,body.users_page_bp-signups th#count_sent{width:10%}body.site-users-php th#email,body.site-users-php th#name,body.users-php th#email,body.users-php th#name,body.users-php th#registered,body.users_page_bp-signups th#date_sent,body.users_page_bp-signups th#email,body.users_page_bp-signups th#name,body.users_page_bp-signups th#registered{width:15%}body.users-php th#blogs,body.users_page_bp-signups th#blogs{width:20%}body.users_page_bp-signups td.count_sent,body.users_page_bp-signups th.column-count_sent{text-align:center}.bp-signups-list table{margin:1em 0}.bp-signups-list .column-fields{font-weight:700}.bp-new-notice-panel{background:#fff;border:1px solid #e5e5e5;box-shadow:0 1px 1px rgba(0,0,0,.04);font-size:13px;line-height:2.1;margin:1.5em 0 3em;overflow:auto;padding:10px 25px 25px;position:relative}.bp-new-notice-panel label{clear:both;float:left;margin-right:3%;width:20%}.bp-new-notice-panel input,.bp-new-notice-panel textarea{clear:none;margin-bottom:1em;width:75%}.bp-new-notice-panel input[type=text]:after,.bp-new-notice-panel textarea:after{clear:both;content:" ";display:table}.bp-new-notice-panel .button-primary{margin-left:23%;width:auto}.bp-notice-about{font-size:1em;margin-bottom:1em}.bp-new-notice{margin-bottom:1em;margin-top:0}.bp-notices-list{margin-bottom:0}@media screen and (max-width:782px){.bp-new-notice-panel{margin-bottom:1.5em}.bp-new-notice-panel input,.bp-new-notice-panel textarea{margin-left:0;width:100%}.bp-new-notice-panel .button-primary{margin-left:0;width:auto}.bp-new-notice-panel .button{max-width:45%;word-wrap:break-word}.bp-notice-about{margin-top:0;margin-bottom:1em}.bp-new-notice{margin-bottom:.5em}}body.post-type-bp-email #excerpt{height:auto}body.post-type-bp-email th#situation{width:20%}body.post-type-bp-email td.column-situation ul{margin:0}body.post-type-bp-email .categorydiv label{display:block;float:left;padding-left:25px;text-indent:-25px}.tools_page_bp-tools .wrap{max-width:950px}.tools_page_bp-tools p{line-height:2}.tools_page_bp-tools fieldset{margin:2em 0 0}.tools_page_bp-tools legend{color:#23282d;font-size:1.3em;font-weight:600;margin:1em 0}.tools_page_bp-tools label{clear:left;display:block;line-height:1.5;margin:0 0 1em;vertical-align:middle}@media screen and (max-width:782px){.tools_page_bp-tools p{line-height:1.5}.tools_page_bp-tools label{margin-bottom:1em;padding-right:25px;text-indent:-33px}.tools_page_bp-tools .checkbox{padding:0 0 0 30px}}#buddypress-update.not-shiny .update-message{border-left:0;padding-left:36px}#buddypress-update.not-shiny .update-message:before{content:"\f534"}
bp-core/admin/css/hello-rtl.css CHANGED
@@ -37,8 +37,6 @@ TABLE OF CONTENTS:
37
}
38
39
#bp-hello-container a:hover {
40
- -webkit-transition: all 0.1s ease-in-out;
41
- -o-transition: all 0.1s ease-in-out;
42
transition: all 0.1s ease-in-out;
43
color: black;
44
}
@@ -72,8 +70,6 @@ TABLE OF CONTENTS:
72
}
73
74
.bp-hello-close .close-modal:focus:before, .bp-hello-close .close-modal:hover:before {
75
- -webkit-transition: all 0.1s ease-in-out;
76
- -o-transition: all 0.1s ease-in-out;
77
transition: all 0.1s ease-in-out;
78
color: var(--bp-hello-color-primary);
79
}
@@ -89,8 +85,6 @@ TABLE OF CONTENTS:
89
}
90
91
.bp-hello-social li a:hover:before {
92
- -webkit-transition: all 0.1s ease-in-out;
93
- -o-transition: all 0.1s ease-in-out;
94
transition: all 0.1s ease-in-out;
95
color: var(--bp-hello-color-primary);
96
}
@@ -134,10 +128,7 @@ TABLE OF CONTENTS:
134
* 3.2 - Modal footer
135
*/
136
.bp-hello-footer {
137
- display: -webkit-box;
138
- display: -ms-flexbox;
139
display: flex;
140
- -ms-flex-wrap: wrap;
141
flex-wrap: wrap;
142
height: 58px;
143
max-height: 58px;
@@ -145,7 +136,6 @@ TABLE OF CONTENTS:
145
146
.bp-hello-social-cta,
147
.bp-hello-social-links {
148
- -ms-flex-preferred-size: 50%;
149
flex-basis: 50%;
150
}
151
@@ -191,8 +181,6 @@ TABLE OF CONTENTS:
191
*/
192
#bp-hello-backdrop {
193
background-color: rgba(0, 0, 0, 0.8);
194
- -webkit-transition: opacity 0.15s ease-out;
195
- -o-transition: opacity 0.15s ease-out;
196
transition: opacity 0.15s ease-out;
197
}
198
37
}
38
39
#bp-hello-container a:hover {
40
transition: all 0.1s ease-in-out;
41
color: black;
42
}
70
}
71
72
.bp-hello-close .close-modal:focus:before, .bp-hello-close .close-modal:hover:before {
73
transition: all 0.1s ease-in-out;
74
color: var(--bp-hello-color-primary);
75
}
85
}
86
87
.bp-hello-social li a:hover:before {
88
transition: all 0.1s ease-in-out;
89
color: var(--bp-hello-color-primary);
90
}
128
* 3.2 - Modal footer
129
*/
130
.bp-hello-footer {
131
display: flex;
132
flex-wrap: wrap;
133
height: 58px;
134
max-height: 58px;
136
137
.bp-hello-social-cta,
138
.bp-hello-social-links {
139
flex-basis: 50%;
140
}
141
181
*/
182
#bp-hello-backdrop {
183
background-color: rgba(0, 0, 0, 0.8);
184
transition: opacity 0.15s ease-out;
185
}
186
bp-core/admin/css/hello-rtl.min.css CHANGED
@@ -1 +1 @@
1
- :root{--bp-hello-color-primary:#d34600;--bp-hello-color-secondary:#e5e5e5;--bp-hello-container-size:15%}#bp-hello-container a{color:var(--bp-hello-color-primary)}#bp-hello-container a:hover{-webkit-transition:all .1s ease-in-out;-o-transition:all .1s ease-in-out;transition:all .1s ease-in-out;color:#000}#bp-hello-container .bp-hello-header h1{line-height:1.7;font-size:21px;font-weight:400}.bp-hello-content p{font-size:16px}.bp-hello-close .button{padding:5px!important}.bp-hello-close .close-modal:before{content:"\f158";color:#23282d;font:400 1.5em/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-image:none!important}.bp-hello-close .close-modal:focus:before,.bp-hello-close .close-modal:hover:before{-webkit-transition:all .1s ease-in-out;-o-transition:all .1s ease-in-out;transition:all .1s ease-in-out;color:var(--bp-hello-color-primary)}.bp-hello-social li a:before{color:#23282d;font:400 30px/.6 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-image:none!important}.bp-hello-social li a:hover:before{-webkit-transition:all .1s ease-in-out;-o-transition:all .1s ease-in-out;transition:all .1s ease-in-out;color:var(--bp-hello-color-primary)}.bp-hello-social li a.support:before{content:"\f448"}.bp-hello-social li a.twitter:before{content:"\f301"}#bp-hello-backdrop{position:fixed;top:0;right:0;left:0;bottom:0;z-index:9998;display:none}#bp-hello-container{position:fixed;top:0;bottom:80px;z-index:99999}.bp-disable-scroll{overflow:hidden}.bp-hello-footer{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;height:58px;max-height:58px}.bp-hello-social-cta,.bp-hello-social-links{-ms-flex-preferred-size:50%;flex-basis:50%}.bp-hello-social-links ul{display:inline-block}.bp-hello-social li{position:relative;bottom:-5px;display:inline-block;list-style-type:none;margin-bottom:0}.bp-hello-social li:last-child a{margin-right:4px}.bp-hello-header{height:58px;max-height:58px}.bp-hello-content{padding:0 25px;height:calc(100% - 58px);overflow-y:auto;-webkit-overflow-scrolling:touch}#bp-hello-backdrop{background-color:rgba(0,0,0,.8);-webkit-transition:opacity .15s ease-out;-o-transition:opacity .15s ease-out;transition:opacity .15s ease-out}#bp-hello-container{background-color:#fff}.bp-hello-footer{border-radius:0 0 3px 3px;background-color:#fff;border-top:1px solid var(--bp-hello-color-secondary);padding:6px 25px}.bp-hello-footer p{font-size:15px}.bp-hello-social-cta{text-align:right}.bp-hello-social-links{text-align:left}.bp-hello-social li a{text-decoration:none}.bp-hello-header{padding:6px 25px}.bp-hello-header h1{width:calc(100% - 51px)}#bp-hello-container .bp-hello-header{border-bottom:1px solid var(--bp-hello-color-secondary)}.bp-hello-title{text-align:right}.bp-hello-close{position:absolute;top:20px;left:25px;text-align:left}.bp-hello-content{background-color:#fff}.bp-hello-content img{border-radius:2px;max-width:100%}.bp-hello-content iframe{width:100%}@media only screen and (min-width:1024px){#bp-hello-backdrop{display:block}#bp-hello-container{position:fixed;top:60px;right:var(--bp-hello-container-size);left:var(--bp-hello-container-size);bottom:30px;z-index:9999;border-radius:3px}#bp-hello-container .bp-hello-header h1{line-height:inherit}.bp-hello-header{height:auto;max-height:inherit;padding:6px 30px}.bp-hello-close{left:30px}.bp-hello-close .close-modal:before{line-height:.7}.bp-hello-footer{position:fixed;right:var(--bp-hello-container-size);left:var(--bp-hello-container-size);bottom:30px;z-index:10000;height:auto;max-height:inherit;padding:6px 30px}.bp-hello-content{height:calc(100% - 90px);padding:0 30px}.bp-hello-content p{font-size:14px}}@media screen and (min-width:1280px){#bp-hello-container,.bp-hello-footer{right:calc((100% - 896px)/ 2);left:calc((100% - 896px)/ 2)}}
1
+ :root{--bp-hello-color-primary:#d34600;--bp-hello-color-secondary:#e5e5e5;--bp-hello-container-size:15%}#bp-hello-container a{color:var(--bp-hello-color-primary)}#bp-hello-container a:hover{transition:all .1s ease-in-out;color:#000}#bp-hello-container .bp-hello-header h1{line-height:1.7;font-size:21px;font-weight:400}.bp-hello-content p{font-size:16px}.bp-hello-close .button{padding:5px!important}.bp-hello-close .close-modal:before{content:"\f158";color:#23282d;font:400 1.5em/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-image:none!important}.bp-hello-close .close-modal:focus:before,.bp-hello-close .close-modal:hover:before{transition:all .1s ease-in-out;color:var(--bp-hello-color-primary)}.bp-hello-social li a:before{color:#23282d;font:400 30px/.6 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-image:none!important}.bp-hello-social li a:hover:before{transition:all .1s ease-in-out;color:var(--bp-hello-color-primary)}.bp-hello-social li a.support:before{content:"\f448"}.bp-hello-social li a.twitter:before{content:"\f301"}#bp-hello-backdrop{position:fixed;top:0;right:0;left:0;bottom:0;z-index:9998;display:none}#bp-hello-container{position:fixed;top:0;bottom:80px;z-index:99999}.bp-disable-scroll{overflow:hidden}.bp-hello-footer{display:flex;flex-wrap:wrap;height:58px;max-height:58px}.bp-hello-social-cta,.bp-hello-social-links{flex-basis:50%}.bp-hello-social-links ul{display:inline-block}.bp-hello-social li{position:relative;bottom:-5px;display:inline-block;list-style-type:none;margin-bottom:0}.bp-hello-social li:last-child a{margin-right:4px}.bp-hello-header{height:58px;max-height:58px}.bp-hello-content{padding:0 25px;height:calc(100% - 58px);overflow-y:auto;-webkit-overflow-scrolling:touch}#bp-hello-backdrop{background-color:rgba(0,0,0,.8);transition:opacity .15s ease-out}#bp-hello-container{background-color:#fff}.bp-hello-footer{border-radius:0 0 3px 3px;background-color:#fff;border-top:1px solid var(--bp-hello-color-secondary);padding:6px 25px}.bp-hello-footer p{font-size:15px}.bp-hello-social-cta{text-align:right}.bp-hello-social-links{text-align:left}.bp-hello-social li a{text-decoration:none}.bp-hello-header{padding:6px 25px}.bp-hello-header h1{width:calc(100% - 51px)}#bp-hello-container .bp-hello-header{border-bottom:1px solid var(--bp-hello-color-secondary)}.bp-hello-title{text-align:right}.bp-hello-close{position:absolute;top:20px;left:25px;text-align:left}.bp-hello-content{background-color:#fff}.bp-hello-content img{border-radius:2px;max-width:100%}.bp-hello-content iframe{width:100%}@media only screen and (min-width:1024px){#bp-hello-backdrop{display:block}#bp-hello-container{position:fixed;top:60px;right:var(--bp-hello-container-size);left:var(--bp-hello-container-size);bottom:30px;z-index:9999;border-radius:3px}#bp-hello-container .bp-hello-header h1{line-height:inherit}.bp-hello-header{height:auto;max-height:inherit;padding:6px 30px}.bp-hello-close{left:30px}.bp-hello-close .close-modal:before{line-height:.7}.bp-hello-footer{position:fixed;right:var(--bp-hello-container-size);left:var(--bp-hello-container-size);bottom:30px;z-index:10000;height:auto;max-height:inherit;padding:6px 30px}.bp-hello-content{height:calc(100% - 90px);padding:0 30px}.bp-hello-content p{font-size:14px}}@media screen and (min-width:1280px){#bp-hello-container,.bp-hello-footer{right:calc((100% - 896px)/ 2);left:calc((100% - 896px)/ 2)}}
bp-core/admin/css/hello.css CHANGED
@@ -37,8 +37,6 @@ TABLE OF CONTENTS:
37
}
38
39
#bp-hello-container a:hover {
40
- -webkit-transition: all 0.1s ease-in-out;
41
- -o-transition: all 0.1s ease-in-out;
42
transition: all 0.1s ease-in-out;
43
color: black;
44
}
@@ -72,8 +70,6 @@ TABLE OF CONTENTS:
72
}
73
74
.bp-hello-close .close-modal:focus:before, .bp-hello-close .close-modal:hover:before {
75
- -webkit-transition: all 0.1s ease-in-out;
76
- -o-transition: all 0.1s ease-in-out;
77
transition: all 0.1s ease-in-out;
78
color: var(--bp-hello-color-primary);
79
}
@@ -89,8 +85,6 @@ TABLE OF CONTENTS:
89
}
90
91
.bp-hello-social li a:hover:before {
92
- -webkit-transition: all 0.1s ease-in-out;
93
- -o-transition: all 0.1s ease-in-out;
94
transition: all 0.1s ease-in-out;
95
color: var(--bp-hello-color-primary);
96
}
@@ -134,10 +128,7 @@ TABLE OF CONTENTS:
134
* 3.2 - Modal footer
135
*/
136
.bp-hello-footer {
137
- display: -webkit-box;
138
- display: -ms-flexbox;
139
display: flex;
140
- -ms-flex-wrap: wrap;
141
flex-wrap: wrap;
142
height: 58px;
143
max-height: 58px;
@@ -145,7 +136,6 @@ TABLE OF CONTENTS:
145
146
.bp-hello-social-cta,
147
.bp-hello-social-links {
148
- -ms-flex-preferred-size: 50%;
149
flex-basis: 50%;
150
}
151
@@ -191,8 +181,6 @@ TABLE OF CONTENTS:
191
*/
192
#bp-hello-backdrop {
193
background-color: rgba(0, 0, 0, 0.8);
194
- -webkit-transition: opacity 0.15s ease-out;
195
- -o-transition: opacity 0.15s ease-out;
196
transition: opacity 0.15s ease-out;
197
}
198
37
}
38
39
#bp-hello-container a:hover {
40
transition: all 0.1s ease-in-out;
41
color: black;
42
}
70
}
71
72
.bp-hello-close .close-modal:focus:before, .bp-hello-close .close-modal:hover:before {
73
transition: all 0.1s ease-in-out;
74
color: var(--bp-hello-color-primary);
75
}
85
}
86
87
.bp-hello-social li a:hover:before {
88
transition: all 0.1s ease-in-out;
89
color: var(--bp-hello-color-primary);
90
}
128
* 3.2 - Modal footer
129
*/
130
.bp-hello-footer {
131
display: flex;
132
flex-wrap: wrap;
133
height: 58px;
134
max-height: 58px;
136
137
.bp-hello-social-cta,
138
.bp-hello-social-links {
139
flex-basis: 50%;
140
}
141
181
*/
182
#bp-hello-backdrop {
183
background-color: rgba(0, 0, 0, 0.8);
184
transition: opacity 0.15s ease-out;
185
}
186
bp-core/admin/css/hello.min.css CHANGED
@@ -1 +1 @@
1
- :root{--bp-hello-color-primary:#d34600;--bp-hello-color-secondary:#e5e5e5;--bp-hello-container-size:15%}#bp-hello-container a{color:var(--bp-hello-color-primary)}#bp-hello-container a:hover{-webkit-transition:all .1s ease-in-out;-o-transition:all .1s ease-in-out;transition:all .1s ease-in-out;color:#000}#bp-hello-container .bp-hello-header h1{line-height:1.7;font-size:21px;font-weight:400}.bp-hello-content p{font-size:16px}.bp-hello-close .button{padding:5px!important}.bp-hello-close .close-modal:before{content:"\f158";color:#23282d;font:400 1.5em/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-image:none!important}.bp-hello-close .close-modal:focus:before,.bp-hello-close .close-modal:hover:before{-webkit-transition:all .1s ease-in-out;-o-transition:all .1s ease-in-out;transition:all .1s ease-in-out;color:var(--bp-hello-color-primary)}.bp-hello-social li a:before{color:#23282d;font:400 30px/.6 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-image:none!important}.bp-hello-social li a:hover:before{-webkit-transition:all .1s ease-in-out;-o-transition:all .1s ease-in-out;transition:all .1s ease-in-out;color:var(--bp-hello-color-primary)}.bp-hello-social li a.support:before{content:"\f448"}.bp-hello-social li a.twitter:before{content:"\f301"}#bp-hello-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;z-index:9998;display:none}#bp-hello-container{position:fixed;top:0;bottom:80px;z-index:99999}.bp-disable-scroll{overflow:hidden}.bp-hello-footer{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;height:58px;max-height:58px}.bp-hello-social-cta,.bp-hello-social-links{-ms-flex-preferred-size:50%;flex-basis:50%}.bp-hello-social-links ul{display:inline-block}.bp-hello-social li{position:relative;bottom:-5px;display:inline-block;list-style-type:none;margin-bottom:0}.bp-hello-social li:last-child a{margin-left:4px}.bp-hello-header{height:58px;max-height:58px}.bp-hello-content{padding:0 25px;height:calc(100% - 58px);overflow-y:auto;-webkit-overflow-scrolling:touch}#bp-hello-backdrop{background-color:rgba(0,0,0,.8);-webkit-transition:opacity .15s ease-out;-o-transition:opacity .15s ease-out;transition:opacity .15s ease-out}#bp-hello-container{background-color:#fff}.bp-hello-footer{border-radius:0 0 3px 3px;background-color:#fff;border-top:1px solid var(--bp-hello-color-secondary);padding:6px 25px}.bp-hello-footer p{font-size:15px}.bp-hello-social-cta{text-align:left}.bp-hello-social-links{text-align:right}.bp-hello-social li a{text-decoration:none}.bp-hello-header{padding:6px 25px}.bp-hello-header h1{width:calc(100% - 51px)}#bp-hello-container .bp-hello-header{border-bottom:1px solid var(--bp-hello-color-secondary)}.bp-hello-title{text-align:left}.bp-hello-close{position:absolute;top:20px;right:25px;text-align:right}.bp-hello-content{background-color:#fff}.bp-hello-content img{border-radius:2px;max-width:100%}.bp-hello-content iframe{width:100%}@media only screen and (min-width:1024px){#bp-hello-backdrop{display:block}#bp-hello-container{position:fixed;top:60px;left:var(--bp-hello-container-size);right:var(--bp-hello-container-size);bottom:30px;z-index:9999;border-radius:3px}#bp-hello-container .bp-hello-header h1{line-height:inherit}.bp-hello-header{height:auto;max-height:inherit;padding:6px 30px}.bp-hello-close{right:30px}.bp-hello-close .close-modal:before{line-height:.7}.bp-hello-footer{position:fixed;left:var(--bp-hello-container-size);right:var(--bp-hello-container-size);bottom:30px;z-index:10000;height:auto;max-height:inherit;padding:6px 30px}.bp-hello-content{height:calc(100% - 90px);padding:0 30px}.bp-hello-content p{font-size:14px}}@media screen and (min-width:1280px){#bp-hello-container,.bp-hello-footer{left:calc((100% - 896px)/ 2);right:calc((100% - 896px)/ 2)}}
1
+ :root{--bp-hello-color-primary:#d34600;--bp-hello-color-secondary:#e5e5e5;--bp-hello-container-size:15%}#bp-hello-container a{color:var(--bp-hello-color-primary)}#bp-hello-container a:hover{transition:all .1s ease-in-out;color:#000}#bp-hello-container .bp-hello-header h1{line-height:1.7;font-size:21px;font-weight:400}.bp-hello-content p{font-size:16px}.bp-hello-close .button{padding:5px!important}.bp-hello-close .close-modal:before{content:"\f158";color:#23282d;font:400 1.5em/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-image:none!important}.bp-hello-close .close-modal:focus:before,.bp-hello-close .close-modal:hover:before{transition:all .1s ease-in-out;color:var(--bp-hello-color-primary)}.bp-hello-social li a:before{color:#23282d;font:400 30px/.6 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-image:none!important}.bp-hello-social li a:hover:before{transition:all .1s ease-in-out;color:var(--bp-hello-color-primary)}.bp-hello-social li a.support:before{content:"\f448"}.bp-hello-social li a.twitter:before{content:"\f301"}#bp-hello-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;z-index:9998;display:none}#bp-hello-container{position:fixed;top:0;bottom:80px;z-index:99999}.bp-disable-scroll{overflow:hidden}.bp-hello-footer{display:flex;flex-wrap:wrap;height:58px;max-height:58px}.bp-hello-social-cta,.bp-hello-social-links{flex-basis:50%}.bp-hello-social-links ul{display:inline-block}.bp-hello-social li{position:relative;bottom:-5px;display:inline-block;list-style-type:none;margin-bottom:0}.bp-hello-social li:last-child a{margin-left:4px}.bp-hello-header{height:58px;max-height:58px}.bp-hello-content{padding:0 25px;height:calc(100% - 58px);overflow-y:auto;-webkit-overflow-scrolling:touch}#bp-hello-backdrop{background-color:rgba(0,0,0,.8);transition:opacity .15s ease-out}#bp-hello-container{background-color:#fff}.bp-hello-footer{border-radius:0 0 3px 3px;background-color:#fff;border-top:1px solid var(--bp-hello-color-secondary);padding:6px 25px}.bp-hello-footer p{font-size:15px}.bp-hello-social-cta{text-align:left}.bp-hello-social-links{text-align:right}.bp-hello-social li a{text-decoration:none}.bp-hello-header{padding:6px 25px}.bp-hello-header h1{width:calc(100% - 51px)}#bp-hello-container .bp-hello-header{border-bottom:1px solid var(--bp-hello-color-secondary)}.bp-hello-title{text-align:left}.bp-hello-close{position:absolute;top:20px;right:25px;text-align:right}.bp-hello-content{background-color:#fff}.bp-hello-content img{border-radius:2px;max-width:100%}.bp-hello-content iframe{width:100%}@media only screen and (min-width:1024px){#bp-hello-backdrop{display:block}#bp-hello-container{position:fixed;top:60px;left:var(--bp-hello-container-size);right:var(--bp-hello-container-size);bottom:30px;z-index:9999;border-radius:3px}#bp-hello-container .bp-hello-header h1{line-height:inherit}.bp-hello-header{height:auto;max-height:inherit;padding:6px 30px}.bp-hello-close{right:30px}.bp-hello-close .close-modal:before{line-height:.7}.bp-hello-footer{position:fixed;left:var(--bp-hello-container-size);right:var(--bp-hello-container-size);bottom:30px;z-index:10000;height:auto;max-height:inherit;padding:6px 30px}.bp-hello-content{height:calc(100% - 90px);padding:0 30px}.bp-hello-content p{font-size:14px}}@media screen and (min-width:1280px){#bp-hello-container,.bp-hello-footer{left:calc((100% - 896px)/ 2);right:calc((100% - 896px)/ 2)}}
bp-core/admin/js/customizer-receiver-emails.js CHANGED
@@ -109,7 +109,7 @@
109
110
wp.customize( 'bp_email_options[footer_text]', function( value ) {
111
value.bind(function( newval ) {
112
- $( '.footer_text' ).text( newval );
113
});
114
});
115
})( jQuery );
109
110
wp.customize( 'bp_email_options[footer_text]', function( value ) {
111
value.bind(function( newval ) {
112
+ $( '.footer_text' ).html( newval );
113
});
114
});
115
})( jQuery );
bp-core/admin/js/customizer-receiver-emails.min.js CHANGED
@@ -1 +1 @@
1
- !function(o){wp.customize("bp_email_options[email_bg]",function(t){t.bind(function(t){t.length&&(o(".email_bg").attr("bgcolor",t),o("hr").attr("color",t))})}),wp.customize("bp_email_options[header_bg]",function(t){t.bind(function(t){t.length&&o(".header_bg").attr("bgcolor",t)})}),wp.customize("bp_email_options[header_text_size]",function(t){t.bind(function(t){t.length&&o(".header_text_size").css("font-size",t+"px")})}),wp.customize("bp_email_options[header_text_color]",function(t){t.bind(function(t){t.length&&o(".header_text_color").css("color",t)})}),wp.customize("bp_email_options[highlight_color]",function(t){t.bind(function(t){t.length&&(o(".header_bg").css("border-top-color",t),o("a").css("color",t),o("hr").attr("color",t))})}),wp.customize("bp_email_options[body_bg]",function(t){t.bind(function(t){t.length&&o(".body_bg").attr("bgcolor",t)})}),wp.customize("bp_email_options[body_text_size]",function(t){t.bind(function(t){t.length&&(o(".body_text_size").css("font-size",t+"px").css("line-height",Math.floor(1.618*t)+"px"),o(".welcome").css("font-size",Math.floor(1.35*t)+"px"))})}),wp.customize("bp_email_options[body_text_color]",function(t){t.bind(function(t){t.length&&o(".body_text_color").css("color",t)})}),wp.customize("bp_email_options[footer_bg]",function(t){t.bind(function(t){t.length&&o(".footer_bg").attr("bgcolor",t)})}),wp.customize("bp_email_options[footer_text_size]",function(t){t.bind(function(t){t.length&&o(".footer_text_size").css("font-size",t+"px").css("line-height",Math.floor(1.618*t)+"px")})}),wp.customize("bp_email_options[footer_text_color]",function(t){t.bind(function(t){t.length&&o(".footer_text_color").css("color",t)})}),wp.customize("bp_email_options[footer_text]",function(t){t.bind(function(t){o(".footer_text").text(t)})})}(jQuery);
1
+ !function(o){wp.customize("bp_email_options[email_bg]",function(t){t.bind(function(t){t.length&&(o(".email_bg").attr("bgcolor",t),o("hr").attr("color",t))})}),wp.customize("bp_email_options[header_bg]",function(t){t.bind(function(t){t.length&&o(".header_bg").attr("bgcolor",t)})}),wp.customize("bp_email_options[header_text_size]",function(t){t.bind(function(t){t.length&&o(".header_text_size").css("font-size",t+"px")})}),wp.customize("bp_email_options[header_text_color]",function(t){t.bind(function(t){t.length&&o(".header_text_color").css("color",t)})}),wp.customize("bp_email_options[highlight_color]",function(t){t.bind(function(t){t.length&&(o(".header_bg").css("border-top-color",t),o("a").css("color",t),o("hr").attr("color",t))})}),wp.customize("bp_email_options[body_bg]",function(t){t.bind(function(t){t.length&&o(".body_bg").attr("bgcolor",t)})}),wp.customize("bp_email_options[body_text_size]",function(t){t.bind(function(t){t.length&&(o(".body_text_size").css("font-size",t+"px").css("line-height",Math.floor(1.618*t)+"px"),o(".welcome").css("font-size",Math.floor(1.35*t)+"px"))})}),wp.customize("bp_email_options[body_text_color]",function(t){t.bind(function(t){t.length&&o(".body_text_color").css("color",t)})}),wp.customize("bp_email_options[footer_bg]",function(t){t.bind(function(t){t.length&&o(".footer_bg").attr("bgcolor",t)})}),wp.customize("bp_email_options[footer_text_size]",function(t){t.bind(function(t){t.length&&o(".footer_text_size").css("font-size",t+"px").css("line-height",Math.floor(1.618*t)+"px")})}),wp.customize("bp_email_options[footer_text_color]",function(t){t.bind(function(t){t.length&&o(".footer_text_color").css("color",t)})}),wp.customize("bp_email_options[footer_text]",function(t){t.bind(function(t){o(".footer_text").html(t)})})}(jQuery);
bp-core/bp-core-attachments.php CHANGED
@@ -18,7 +18,7 @@ defined( 'ABSPATH' ) || exit;
18
* match with our needs.
19
*
20
* @since 2.3.0
21
- * @since 3.0.0 We now require WP >= 4.5, so this is always true.
22
*
23
* @return bool Always true.
24
*/
@@ -565,7 +565,7 @@ function bp_attachments_delete_file( $args = array() ) {
565
* @since 2.5.1
566
*
567
* @param bool $value Whether or not to delete the BuddyPress attachment.
568
- ` * @param array $args Array of arguments for the attachment deletion.
569
*/
570
if ( ! apply_filters( 'bp_attachments_pre_delete_file', true, $args ) ) {
571
return true;
18
* match with our needs.
19
*
20
* @since 2.3.0
21
+ * @since 3.0.0 This is always true.
22
*
23
* @return bool Always true.
24
*/
565
* @since 2.5.1
566
*
567
* @param bool $value Whether or not to delete the BuddyPress attachment.
568
+ * @param array $args Array of arguments for the attachment deletion.
569
*/
570
if ( ! apply_filters( 'bp_attachments_pre_delete_file', true, $args ) ) {
571
return true;
bp-core/bp-core-cssjs.php CHANGED
@@ -536,12 +536,7 @@ function bp_core_enqueue_livestamp() {
536
*/
537
if ( wp_script_is( 'bp-moment-locale', 'registered' ) ) {
538
wp_enqueue_script( 'bp-moment-locale' );
539
-
540
- if ( function_exists( 'wp_add_inline_script' ) ) {
541
- wp_add_inline_script ( 'bp-livestamp', bp_core_moment_js_config() );
542
- } else {
543
- add_action( 'wp_footer', '_bp_core_moment_js_config_footer', 20 );
544
- }
545
}
546
547
wp_enqueue_script( 'bp-livestamp' );
@@ -568,20 +563,3 @@ EOD;
568
569
return $inline_js;
570
}
571
-
572
- /**
573
- * Print moment.js config in page footer.
574
- *
575
- * Will be removed once we set our minimum version of WP 4.5.
576
- *
577
- * @since 2.7.0
578
- *
579
- * @access private
580
- */
581
- function _bp_core_moment_js_config_footer() {
582
- if ( ! wp_script_is( 'bp-moment-locale' ) ) {
583
- return;
584
- }
585
-
586
- printf( '<script>%s</script>', bp_core_moment_js_config() );
587
- }
536
*/
537
if ( wp_script_is( 'bp-moment-locale', 'registered' ) ) {
538
wp_enqueue_script( 'bp-moment-locale' );
539
+ wp_add_inline_script ( 'bp-livestamp', bp_core_moment_js_config() );
540
}
541
542
wp_enqueue_script( 'bp-livestamp' );
563
564
return $inline_js;
565
}
bp-core/bp-core-functions.php CHANGED
@@ -3234,6 +3234,26 @@ function bp_send_email( $email_type, $to, $args = array() ) {
3234
* @return array
3235
*/
3236
function bp_email_get_appearance_settings() {
3237
$default_args = array(
3238
'body_bg' => '#FFFFFF',
3239
'body_text_color' => '#555555',
@@ -3248,12 +3268,7 @@ function bp_email_get_appearance_settings() {
3248
'header_text_size' => 30,
3249
'direction' => is_rtl() ? 'right' : 'left',
3250
3251
- 'footer_text' => sprintf(
3252
- /* translators: email disclaimer, e.g. "© 2016 Site Name". */
3253
- _x( '&copy; %s %s', 'email', 'buddypress' ),
3254
- date_i18n( 'Y' ),
3255
- bp_get_option( 'blogname' )
3256
- ),
3257
);
3258
3259
$options = bp_parse_args(
3234
* @return array
3235
*/
3236
function bp_email_get_appearance_settings() {
3237
+ /* translators: This is the copyright text for email footers. 1. Copyright year, 2. Site name */
3238
+ $footer_text = array(
3239
+ sprintf(
3240
+ _x( '&copy; %1$s %2$s', 'email', 'buddypress' ),
3241
+ date_i18n( 'Y' ),
3242
+ bp_get_option( 'blogname' )
3243
+ )
3244
+ );
3245
+
3246
+ if ( version_compare( $GLOBALS['wp_version'], '4.9.6', '>=' ) ) {
3247
+ $privacy_policy_url = get_privacy_policy_url();
3248
+ if ( $privacy_policy_url ) {
3249
+ $footer_text[] = sprintf(
3250
+ '<a href="%s">%s</a>',
3251
+ esc_url( $privacy_policy_url ),
3252
+ esc_html__( 'Privacy Policy', 'buddypress' )
3253
+ );
3254
+ }
3255
+ }
3256
+
3257
$default_args = array(
3258
'body_bg' => '#FFFFFF',
3259
'body_text_color' => '#555555',
3268
'header_text_size' => 30,
3269
'direction' => is_rtl() ? 'right' : 'left',
3270
3271
+ 'footer_text' => implode( ' &middot; ', $footer_text ),
3272
);
3273
3274
$options = bp_parse_args(
bp-core/bp-core-template.php CHANGED
@@ -192,15 +192,11 @@ function bp_get_options_avatar() {
192
function bp_comment_author_avatar() {
193
global $comment;
194
195
- if ( function_exists( 'bp_core_fetch_avatar' ) ) {
196
- echo apply_filters( 'bp_comment_author_avatar', bp_core_fetch_avatar( array(
197
- 'item_id' => $comment->user_id,
198
- 'type' => 'thumb',
199
- 'alt' => sprintf( __( 'Profile photo of %s', 'buddypress' ), bp_core_get_user_displayname( $comment->user_id ) )
200
- ) ) );
201
- } elseif ( function_exists( 'get_avatar' ) ) {
202
- get_avatar();
203
- }
204
}
205
206
/**
@@ -211,15 +207,11 @@ function bp_comment_author_avatar() {
211
function bp_post_author_avatar() {
212
global $post;
213
214
- if ( function_exists( 'bp_core_fetch_avatar' ) ) {
215
- echo apply_filters( 'bp_post_author_avatar', bp_core_fetch_avatar( array(
216
- 'item_id' => $post->post_author,
217
- 'type' => 'thumb',
218
- 'alt' => sprintf( __( 'Profile photo of %s', 'buddypress' ), bp_core_get_user_displayname( $post->post_author ) )
219
- ) ) );
220
- } elseif ( function_exists( 'get_avatar' ) ) {
221
- get_avatar();
222
- }
223
}
224
225
/**
192
function bp_comment_author_avatar() {
193
global $comment;
194
195
+ echo apply_filters( 'bp_comment_author_avatar', bp_core_fetch_avatar( array(
196
+ 'item_id' => $comment->user_id,
197
+ 'type' => 'thumb',
198
+ 'alt' => sprintf( __( 'Profile photo of %s', 'buddypress' ), bp_core_get_user_displayname( $comment->user_id ) )
199
+ ) ) );
200
}
201
202
/**
207
function bp_post_author_avatar() {
208
global $post;
209
210
+ echo apply_filters( 'bp_post_author_avatar', bp_core_fetch_avatar( array(
211
+ 'item_id' => $post->post_author,
212
+ 'type' => 'thumb',
213
+ 'alt' => sprintf( __( 'Profile photo of %s', 'buddypress' ), bp_core_get_user_displayname( $post->post_author ) )
214
+ ) ) );
215
}
216
217
/**
bp-core/classes/class-bp-admin.php CHANGED
@@ -169,6 +169,9 @@ class BP_Admin {
169
add_filter( 'manage_' . bp_get_email_post_type() . '_posts_columns', array( $this, 'emails_register_situation_column' ) );
170
add_action( 'manage_' . bp_get_email_post_type() . '_posts_custom_column', array( $this, 'emails_display_situation_column_data' ), 10, 2 );
171
172
// BuddyPress Hello.
173
add_action( 'admin_footer', array( $this, 'about_screen' ) );
174
@@ -540,6 +543,68 @@ class BP_Admin {
540
}
541
}
542
543
/** About *****************************************************************/
544
545
/**
@@ -571,39 +636,6 @@ class BP_Admin {
571
</div>
572
573
<div class="bp-hello-content">
574
- <h2><?php echo esc_html( _n( 'Maintenance Release', 'Maintenance Releases', 1, 'buddypress' ) ); ?></h2>
575
- <p>
576
- <?php
577
- printf(
578
- /* translators: 1: BuddyPress version number, 2: plural number of bugs. */
579
- _n(
580
- '<strong>Version %1$s</strong> addressed %2$s bug.',
581
- '<strong>Version %1$s</strong> addressed %2$s bugs.',
582
- 23,
583
- 'buddypress'
584
- ),
585
- '3.2.0',
586
- number_format_i18n( 25 )
587
- );
588
- ?>
589
- </p>
590
- <p>
591
- <?php
592
- printf(
593
- /* translators: 1: BuddyPress version number, 2: plural number of bugs. */
594
- _n(
595
- '<strong>Version %1$s</strong> addressed %2$s bug.',
596
- '<strong>Version %1$s</strong> addressed %2$s bugs.',
597
- 23,
598
- 'buddypress'
599
- ),
600
- '3.1.0',
601
- number_format_i18n( 23 )
602
- );
603
- ?>
604
- </p>
605
-
606
- <hr>
607
<h2><?php esc_html_e( __( 'Say hello to &ldquo;Nouveau&rdquo;!', 'buddypress' ) ); ?></h2>
608
<p>
609
<?php
169
add_filter( 'manage_' . bp_get_email_post_type() . '_posts_columns', array( $this, 'emails_register_situation_column' ) );
170
add_action( 'manage_' . bp_get_email_post_type() . '_posts_custom_column', array( $this, 'emails_display_situation_column_data' ), 10, 2 );
171
172
+ // Privacy Policy.
173
+ add_action( 'bp_admin_init', array( $this, 'add_privacy_policy_content' ) );
174
+
175
// BuddyPress Hello.
176
add_action( 'admin_footer', array( $this, 'about_screen' ) );
177
543
}
544
}
545
546
+ /**
547
+ * Registers BuddyPress's suggested privacy policy language.
548
+ *
549
+ * @since 3.x.y
550
+ */
551
+ public function add_privacy_policy_content() {
552
+ // Nothing to do if we're running < WP 4.9.6.
553
+ if ( version_compare( $GLOBALS['wp_version'], '4.9.6', '<' ) ) {
554
+ return;
555
+ }
556
+
557
+ $suggested_text = '<strong class="privacy-policy-tutorial">' . esc_html__( 'Suggested text:', 'buddypress' ) . ' </strong>';
558
+ $content = '';
559
+
560
+ $content .= '<div class="wp-suggested-text">';
561
+
562
+ $content .= '<h2>' . esc_html__( 'What personal data we collect and why we collect it', 'buddypress' ) . '</h2>';
563
+ $content .= '<p class="privacy-policy-tutorial">' . esc_html__( 'Sites powered by BuddyPress rely heavily on user-provided data. In this section, you should note what data you collect, from both registered users and anonymous visitors.', 'buddypress' ) . '</p>';
564
+
565
+ if ( bp_is_active( 'xprofile' ) ) {
566
+ $content .= '<h3>' . esc_html__( 'Profile Data', 'buddypress' ) . '</h3>';
567
+ $content .= '<p class="privacy-policy-tutorial">' . esc_html__( 'In this section you should note what information is collected on user profiles. The suggested text gives an overview of the kinds of profile data collected by BuddyPress.', 'buddypress' ) . '</p>';
568
+
569
+ $content .= '<p>' . $suggested_text . esc_html__( 'When you register for the site, you may be asked to provide certain personal data for display on your profile. The "Name" field is required as well as public, and user profiles are visible to any site visitor. Other profile information may be required or optional, as configured by the site administrator.', 'buddypress' ) . '</p>';
570
+ $content .= '<p>' . esc_html__( 'User information provided during account registration can be modified or removed on the Profile > Edit panel. In most cases, users also have control over who is able to view a particular piece of profile content, limiting visibility on a field-by-field basis to friends, logged-in users, or administrators only. Site administrators can read and edit all profile data for all users.', 'buddypress' ) . '</p>';
571
+ }
572
+
573
+ if ( bp_is_active( 'activity' ) ) {
574
+ $content .= '<h3>' . esc_html__( 'Activity', 'buddypress' ) . '</h3>';
575
+ $content .= '<p class="privacy-policy-tutorial">' . esc_html__( 'In this section you should describe the kinds of information collected in the activity stream, how and whether it can be edited or deleted, and to whom the activity is visible.', 'buddypress' ) . '</p>';
576
+
577
+ $content .= '<p>' . $suggested_text . esc_html__( 'This site records certain user actions, in the form of "activity" data. Activity includes updates and comments posted directly to activity streams, as well as descriptions of other actions performed while using the site, such as new friendships, newly joined groups, and profile updates.', 'buddypress' ) . '</p>';
578
+ $content .= '<p>' . esc_html__( 'The content of activity items obey the same privacy rules as the contexts in which the activity items are created. For example, activity updates created in a user\'s profile is publicly visible, while activity items generated in a private group are visible only to members of that group. Site administrators can view all activity items, regardless of context.', 'buddypress' ) . '</p>';
579
+ $content .= '<p>' . esc_html__( 'Activity items may be deleted at any time by users who created them. Site administrators can edit all activity items.', 'buddypress' ) . '</p>';
580
+ }
581
+
582
+ if ( bp_is_active( 'messages' ) ) {
583
+ $content .= '<h3>' . esc_html__( 'Messages', 'buddypress' ) . '</h3>';
584
+ $content .= '<p class="privacy-policy-tutorial">' . esc_html__( 'In this section you should describe any personal data related to private messages.', 'buddypress' ) . '</p>';
585
+
586
+ $content .= '<p>' . $suggested_text . esc_html__( 'The content of private messages is visible only to the sender and the recipients of the message. With the exception of site administrators, who can read all private messages, private message content is never visible to other users or site visitors. Site administrators may delete the content of any message.', 'buddypress' ) . '</p>';
587
+ }
588
+
589
+ $content .= '<h3>' . esc_html__( 'Cookies', 'buddypress' ) . '</h3>';
590
+ $content .= '<p class="privacy-policy-tutorial">' . esc_html__( 'In this section you should describe the BuddyPress-specific cookies that your site collects. The suggested text describes the default cookies.', 'buddypress' ) . '</p>';
591
+
592
+ $content .= '<p>' . $suggested_text . esc_html__( 'We use a cookie to show success and failure messages to logged-in users, in response to certain actions, like joining a group. These cookies contain no personal data, and are deleted immediately after the next page load.', 'buddypress' ) . '</p>';
593
+
594
+ $content .= '<p>' . esc_html__( 'We use cookies on group, member, and activity directories to keep track of a user\'s browsing preferences. These preferences include the last-selected values of the sort and filter dropdowns, as well as pagination information. These cookies contain no personal data, and are deleted after 24 hours.', 'buddypress' ) . '</p>';
595
+
596
+ if ( bp_is_active( 'groups' ) ) {
597
+ $content .= '<p>' . esc_html__( 'When a logged-in user creates a new group, we use a number of cookies to keep track of the group creation process. These cookies contain no personal data, and are deleted either upon the successful creation of the group or after 24 hours.', 'buddypress' ) . '</p>';
598
+ }
599
+
600
+ $content .= '</div><!-- .wp-suggested-text -->';
601
+
602
+ wp_add_privacy_policy_content(
603
+ 'BuddyPress',
604
+ wp_kses_post( wpautop( $content, false ) )
605
+ );
606
+ }
607
+
608
/** About *****************************************************************/
609
610
/**
636
</div>
637
638
<div class="bp-hello-content">
639
<h2><?php esc_html_e( __( 'Say hello to &ldquo;Nouveau&rdquo;!', 'buddypress' ) ); ?></h2>
640
<p>
641
<?php
bp-core/classes/class-bp-component.php CHANGED
@@ -661,7 +661,7 @@ class BP_Component {
661
// Add to the BuddyPress global object.
662
if ( !empty( $tables ) && is_array( $tables ) ) {
663
foreach ( $tables as $global_name => $table_name ) {
664
- $this->$global_name = $table_name;
665
}
666
667
// Keep a record of the metadata tables in the component.
661
// Add to the BuddyPress global object.
662
if ( !empty( $tables ) && is_array( $tables ) ) {
663
foreach ( $tables as $global_name => $table_name ) {
664
+ $this->{$global_name} = $table_name;
665
}
666
667
// Keep a record of the metadata tables in the component.
bp-core/css/admin-bar-rtl.css CHANGED
@@ -32,9 +32,6 @@
32
padding: 2px 5px;
33
font-size: 10px;
34
font-weight: 700;
35
- -moz-border-radius: 10px;
36
- -khtml-border-radius: 10px;
37
- -webkit-border-radius: 10px;
38
border-radius: 10px;
39
}
40
32
padding: 2px 5px;
33
font-size: 10px;
34
font-weight: 700;
35
border-radius: 10px;
36
}
37
bp-core/css/admin-bar-rtl.min.css CHANGED
@@ -1 +1 @@
1
- #wpadminbar .quicklinks li#wp-admin-bar-group-admin-with-avatar>a img,#wpadminbar .quicklinks li#wp-admin-bar-user-admin-with-avatar>a img{width:16px;height:16px;display:inline;border:1px solid #999;vertical-align:middle;margin:-2px -5px 0 10px;padding:0;background:#eee;float:none}#wpadminbar .quicklinks li#wp-admin-bar-group-admin-with-avatar ul{right:0}#wpadminbar .quicklinks li#wp-admin-bar-group-admin-with-avatar ul ul{right:0}#wpadminbar .quicklinks li#wp-admin-bar-bp-notifications #ab-pending-notifications,#wpadminbar .quicklinks li#wp-admin-bar-my-account a span.count,#wpadminbar .quicklinks li#wp-admin-bar-my-account-with-avatar a span.count{background:#21759b;color:#fff;text-shadow:none;display:inline;padding:2px 5px;font-size:10px;font-weight:700;-moz-border-radius:10px;-khtml-border-radius:10px;-webkit-border-radius:10px;border-radius:10px}#wpadminbar .quicklinks li#wp-admin-bar-bp-notifications #ab-pending-notifications{background:#ddd;color:#333;margin:0}#wpadminbar .quicklinks li#wp-admin-bar-bp-notifications #ab-pending-notifications.alert{background-color:#21759b;color:#fff}#wpadminbar .quicklinks li#wp-admin-bar-bp-notifications>a{padding:0 .5em}#wp-admin-bar-user-info img.avatar{height:64px;width:64px}#wpadminbar .wp-admin-bar-arrow-right{display:none}@media screen and (max-width:600px){#wpadminbar .wp-admin-bar-arrow-right{display:block}}
1
+ #wpadminbar .quicklinks li#wp-admin-bar-group-admin-with-avatar>a img,#wpadminbar .quicklinks li#wp-admin-bar-user-admin-with-avatar>a img{width:16px;height:16px;display:inline;border:1px solid #999;vertical-align:middle;margin:-2px -5px 0 10px;padding:0;background:#eee;float:none}#wpadminbar .quicklinks li#wp-admin-bar-group-admin-with-avatar ul{right:0}#wpadminbar .quicklinks li#wp-admin-bar-group-admin-with-avatar ul ul{right:0}#wpadminbar .quicklinks li#wp-admin-bar-bp-notifications #ab-pending-notifications,#wpadminbar .quicklinks li#wp-admin-bar-my-account a span.count,#wpadminbar .quicklinks li#wp-admin-bar-my-account-with-avatar a span.count{background:#21759b;color:#fff;text-shadow:none;display:inline;padding:2px 5px;font-size:10px;font-weight:700;border-radius:10px}#wpadminbar .quicklinks li#wp-admin-bar-bp-notifications #ab-pending-notifications{background:#ddd;color:#333;margin:0}#wpadminbar .quicklinks li#wp-admin-bar-bp-notifications #ab-pending-notifications.alert{background-color:#21759b;color:#fff}#wpadminbar .quicklinks li#wp-admin-bar-bp-notifications>a{padding:0 .5em}#wp-admin-bar-user-info img.avatar{height:64px;width:64px}#wpadminbar .wp-admin-bar-arrow-right{display:none}@media screen and (max-width:600px){#wpadminbar .wp-admin-bar-arrow-right{display:block}}
bp-core/css/admin-bar.css CHANGED
@@ -32,9 +32,6 @@
32
padding: 2px 5px;
33
font-size: 10px;
34
font-weight: 700;
35
- -moz-border-radius: 10px;
36
- -khtml-border-radius: 10px;
37
- -webkit-border-radius: 10px;
38
border-radius: 10px;
39
}
40
32
padding: 2px 5px;
33
font-size: 10px;
34
font-weight: 700;
35
border-radius: 10px;
36
}
37
bp-core/css/admin-bar.min.css CHANGED
@@ -1 +1 @@
1
- #wpadminbar .quicklinks li#wp-admin-bar-group-admin-with-avatar>a img,#wpadminbar .quicklinks li#wp-admin-bar-user-admin-with-avatar>a img{width:16px;height:16px;display:inline;border:1px solid #999;vertical-align:middle;margin:-2px 10px 0 -5px;padding:0;background:#eee;float:none}#wpadminbar .quicklinks li#wp-admin-bar-group-admin-with-avatar ul{left:0}#wpadminbar .quicklinks li#wp-admin-bar-group-admin-with-avatar ul ul{left:0}#wpadminbar .quicklinks li#wp-admin-bar-bp-notifications #ab-pending-notifications,#wpadminbar .quicklinks li#wp-admin-bar-my-account a span.count,#wpadminbar .quicklinks li#wp-admin-bar-my-account-with-avatar a span.count{background:#21759b;color:#fff;text-shadow:none;display:inline;padding:2px 5px;font-size:10px;font-weight:700;-moz-border-radius:10px;-khtml-border-radius:10px;-webkit-border-radius:10px;border-radius:10px}#wpadminbar .quicklinks li#wp-admin-bar-bp-notifications #ab-pending-notifications{background:#ddd;color:#333;margin:0}#wpadminbar .quicklinks li#wp-admin-bar-bp-notifications #ab-pending-notifications.alert{background-color:#21759b;color:#fff}#wpadminbar .quicklinks li#wp-admin-bar-bp-notifications>a{padding:0 .5em}#wp-admin-bar-user-info img.avatar{height:64px;width:64px}#wpadminbar .wp-admin-bar-arrow-right{display:none}@media screen and (max-width:600px){#wpadminbar .wp-admin-bar-arrow-right{display:block}}
1
+ #wpadminbar .quicklinks li#wp-admin-bar-group-admin-with-avatar>a img,#wpadminbar .quicklinks li#wp-admin-bar-user-admin-with-avatar>a img{width:16px;height:16px;display:inline;border:1px solid #999;vertical-align:middle;margin:-2px 10px 0 -5px;padding:0;background:#eee;float:none}#wpadminbar .quicklinks li#wp-admin-bar-group-admin-with-avatar ul{left:0}#wpadminbar .quicklinks li#wp-admin-bar-group-admin-with-avatar ul ul{left:0}#wpadminbar .quicklinks li#wp-admin-bar-bp-notifications #ab-pending-notifications,#wpadminbar .quicklinks li#wp-admin-bar-my-account a span.count,#wpadminbar .quicklinks li#wp-admin-bar-my-account-with-avatar a span.count{background:#21759b;color:#fff;text-shadow:none;display:inline;padding:2px 5px;font-size:10px;font-weight:700;border-radius:10px}#wpadminbar .quicklinks li#wp-admin-bar-bp-notifications #ab-pending-notifications{background:#ddd;color:#333;margin:0}#wpadminbar .quicklinks li#wp-admin-bar-bp-notifications #ab-pending-notifications.alert{background-color:#21759b;color:#fff}#wpadminbar .quicklinks li#wp-admin-bar-bp-notifications>a{padding:0 .5em}#wp-admin-bar-user-info img.avatar{height:64px;width:64px}#wpadminbar .wp-admin-bar-arrow-right{display:none}@media screen and (max-width:600px){#wpadminbar .wp-admin-bar-arrow-right{display:block}}
bp-core/css/avatar-rtl.css CHANGED
@@ -265,7 +265,6 @@ div.bp-avatar-nav {
265
margin-bottom: 0;
266
max-width: 100%;
267
width: 100%;
268
- -webkit-transform: scaleX(-1);
269
transform: scaleX(-1);
270
}
271
265
margin-bottom: 0;
266
max-width: 100%;
267
width: 100%;
268
transform: scaleX(-1);
269
}
270
bp-core/css/avatar-rtl.min.css CHANGED
@@ -1 +1 @@
1
- div.bp-avatar-status,div.bp-cover-image-status{clear:both;margin:1em 0}div.bp-avatar-status p.updated,div.bp-cover-image-status p.updated{display:block;padding:10px 15px}div.bp-avatar-status p.success,div.bp-cover-image-status p.success{background-color:#efc;border:1px solid #591;color:#250}div.bp-avatar-status p.error,div.bp-cover-image-status p.error{background-color:#fdc;border:1px solid #a00;color:#800}div.bp-avatar-status .bp-progress,div.bp-cover-image-status .bp-progress{background:0 0;border:1px solid #d1d1d1;float:left;height:22px;line-height:2;margin:6px 0 0 10px;margin-bottom:2px;padding:0;overflow:hidden;width:200px}div.bp-avatar-status .bp-bar,div.bp-cover-image-status .bp-bar{background-color:#c3ff88;width:0;height:100%;z-index:9}.bp-uploader-progress div.error{background-color:#fdc;border:1px solid #a00;color:#800;display:block;font-size:90%;padding:10px 15px}#buddypress p.warning,body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning,body.users_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning{background-color:#ffd;border:1px solid #cb2;color:#440;display:block;font-size:90%;margin:1em 0;padding:10px 15px}div.bp-avatar-nav{background:0 0;clear:both;margin:10px 0;overflow:hidden}.avatar-nav-items{margin:0;padding:0}.bp-avatar-nav .avatar-nav-items li.avatar-nav-item{float:right!important;margin:0;list-style:none}.avatar-nav-items li a{display:block;padding:5px 10px;text-decoration:none}.bp-avatar-nav ul:after,.bp-avatar-nav ul:before{content:" ";display:table}.bp-avatar-nav ul:after{clear:both}.bp-avatar-nav ul{border-bottom:1px solid #ccc;margin-bottom:10px}.bp-avatar-nav ul.avatar-nav-items li.current{border:1px solid #ccc;border-bottom-color:#fff;border-top-right-radius:4px;border-top-left-radius:4px;margin-bottom:-1px}.bp-avatar-nav li.current a{background:0 0;color:inherit;font-weight:700;opacity:.8;outline:0}#drag-drop-area{border:4px dashed #bbb;height:200px}.drag-drop.drag-over #drag-drop-area{border-color:#83b4d8}.drag-drop-inside p{display:none}.drag-drop-inside p.drag-drop-buttons{margin-top:80px;text-align:center}.drag-drop .drag-drop-inside p.drag-drop-buttons{margin:auto;text-align:inherit}.moxie-shim.moxie-shim-html5 input{cursor:pointer}.drag-drop #drag-drop-area{box-sizing:border-box;display:table;height:100%;width:100%}.drag-drop .drag-drop-inside{display:table-cell;padding:40px 0;text-align:center;vertical-align:middle}.drag-drop .drag-drop-inside p,.drag-drop-inside p.drag-drop-buttons{display:block}.drag-drop .drag-drop-inside p{color:#767676;font-size:110%;margin:5px 0;text-align:center}.drag-drop-inside p.drag-drop-info{margin-top:0}#avatar-to-crop{margin:0 auto 20px;text-align:right}#bp-webcam-avatar #avatar-to-crop{float:right;margin:0 0 20px}#avatar-to-crop .jcrop-holder{margin:0 auto}.avatar-crop-management{clear:right;overflow:hidden;padding-top:20px;text-align:center}#bp-webcam-avatar .avatar-crop-management{clear:none;float:none;overflow:visible;padding-top:0;width:auto}#avatar-crop-pane{margin:0 auto;overflow:hidden}#bp-webcam-avatar #avatar-to-crop{border:1px solid #eee;max-width:100%;width:100%}@media screen and (min-width:801px){#bp-webcam-avatar #avatar-to-crop{max-width:64%;width:64%}}#avatar-crop-actions a{display:block}#bp-webcam-avatar #avatar-crop-actions{float:right;margin:0 0 20px;width:50%}#avatar-crop-actions a.button{margin-top:10px}#bp-webcam-avatar #avatar-crop-actions a.button{display:block;margin:0 0 5px;padding:4px 0;width:100%}#avatar-crop-pane canvas,#avatar-crop-pane img,#avatar-to-crop img,#avatar-upload-form img,#create-group-form img,#group-settings-form img{border:none!important;max-width:none!important}#bp-webcam-avatar video{float:right;margin-bottom:0;max-width:100%;width:100%;-webkit-transform:scaleX(-1);transform:scaleX(-1)}#bp-webcam-avatar #avatar-crop-pane{border:2px dashed #bbb;clear:right;float:left;margin:0 0 10px 40px;overflow:hidden}#bp-webcam-avatar .avatar-crop-management #avatar-crop-pane{max-width:150px;max-height:150px}#avatar-crop-pane canvas{height:auto;width:100%;max-width:100%}.group-avatar .bp-avatar .avatar-crop-management{margin-right:0;padding-top:0;width:auto}.bp-avatar .item{overflow:hidden}.bp-avatar .avatar-crop-management.adjust{float:right;clear:none;padding-top:0}.bp-avatar #avatar-to-crop.adjust{float:right;margin-left:20px}@media screen and (max-width:480px){#bp-webcam-avatar .avatar-crop-management #avatar-crop-actions,#bp-webcam-avatar .avatar-crop-management #avatar-crop-pane{float:none}#bp-webcam-avatar .avatar-crop-management #avatar-crop-pane{margin:0 auto 10px}#bp-webcam-avatar .avatar-crop-management #avatar-crop-actions{width:auto}}@media screen and (min-width:801px){#bp-webcam-avatar .avatar-crop-management{clear:none;float:left}#bp-webcam-avatar .avatar-crop-management #avatar-crop-pane{float:none;margin:0 auto 10px}#bp-webcam-avatar .avatar-crop-management #avatar-crop-actions{float:right;width:100%}}body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent,body.users_page_bp-profile-edit.modal-open #TB_ajaxContent{height:95%!important;width:95%!important}body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent p.updated,body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning,body.users_page_bp-profile-edit.modal-open #TB_ajaxContent p.updated,body.users_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning{display:block;padding:10px 15px}.wp-admin #TB_window .bp-avatar #avatar-to-crop{float:right;margin:0}.wp-admin #TB_window .bp-avatar #bp-webcam-avatar #avatar-to-crop{margin-bottom:20px}@media screen and (min-width:783px){.wp-admin #TB_window .bp-avatar .avatar-crop-management{clear:none;float:right;margin-right:20px;padding-top:0;text-align:center}}.wp-admin #TB_window .bp-avatar #avatar-to-crop video{width:100%}.wp-admin #TB_window .bp-avatar .avatar-crop-management a.button{height:auto;line-height:inherit}@media screen and (min-width:810px){.wp-admin #TB_window .bp-avatar #bp-webcam-avatar #avatar-to-crop{max-width:none;width:76%}.wp-admin #TB_window #bp-webcam-avatar .avatar-crop-management{max-width:none;width:auto}}
1
+ div.bp-avatar-status,div.bp-cover-image-status{clear:both;margin:1em 0}div.bp-avatar-status p.updated,div.bp-cover-image-status p.updated{display:block;padding:10px 15px}div.bp-avatar-status p.success,div.bp-cover-image-status p.success{background-color:#efc;border:1px solid #591;color:#250}div.bp-avatar-status p.error,div.bp-cover-image-status p.error{background-color:#fdc;border:1px solid #a00;color:#800}div.bp-avatar-status .bp-progress,div.bp-cover-image-status .bp-progress{background:0 0;border:1px solid #d1d1d1;float:left;height:22px;line-height:2;margin:6px 0 0 10px;margin-bottom:2px;padding:0;overflow:hidden;width:200px}div.bp-avatar-status .bp-bar,div.bp-cover-image-status .bp-bar{background-color:#c3ff88;width:0;height:100%;z-index:9}.bp-uploader-progress div.error{background-color:#fdc;border:1px solid #a00;color:#800;display:block;font-size:90%;padding:10px 15px}#buddypress p.warning,body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning,body.users_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning{background-color:#ffd;border:1px solid #cb2;color:#440;display:block;font-size:90%;margin:1em 0;padding:10px 15px}div.bp-avatar-nav{background:0 0;clear:both;margin:10px 0;overflow:hidden}.avatar-nav-items{margin:0;padding:0}.bp-avatar-nav .avatar-nav-items li.avatar-nav-item{float:right!important;margin:0;list-style:none}.avatar-nav-items li a{display:block;padding:5px 10px;text-decoration:none}.bp-avatar-nav ul:after,.bp-avatar-nav ul:before{content:" ";display:table}.bp-avatar-nav ul:after{clear:both}.bp-avatar-nav ul{border-bottom:1px solid #ccc;margin-bottom:10px}.bp-avatar-nav ul.avatar-nav-items li.current{border:1px solid #ccc;border-bottom-color:#fff;border-top-right-radius:4px;border-top-left-radius:4px;margin-bottom:-1px}.bp-avatar-nav li.current a{background:0 0;color:inherit;font-weight:700;opacity:.8;outline:0}#drag-drop-area{border:4px dashed #bbb;height:200px}.drag-drop.drag-over #drag-drop-area{border-color:#83b4d8}.drag-drop-inside p{display:none}.drag-drop-inside p.drag-drop-buttons{margin-top:80px;text-align:center}.drag-drop .drag-drop-inside p.drag-drop-buttons{margin:auto;text-align:inherit}.moxie-shim.moxie-shim-html5 input{cursor:pointer}.drag-drop #drag-drop-area{box-sizing:border-box;display:table;height:100%;width:100%}.drag-drop .drag-drop-inside{display:table-cell;padding:40px 0;text-align:center;vertical-align:middle}.drag-drop .drag-drop-inside p,.drag-drop-inside p.drag-drop-buttons{display:block}.drag-drop .drag-drop-inside p{color:#767676;font-size:110%;margin:5px 0;text-align:center}.drag-drop-inside p.drag-drop-info{margin-top:0}#avatar-to-crop{margin:0 auto 20px;text-align:right}#bp-webcam-avatar #avatar-to-crop{float:right;margin:0 0 20px}#avatar-to-crop .jcrop-holder{margin:0 auto}.avatar-crop-management{clear:right;overflow:hidden;padding-top:20px;text-align:center}#bp-webcam-avatar .avatar-crop-management{clear:none;float:none;overflow:visible;padding-top:0;width:auto}#avatar-crop-pane{margin:0 auto;overflow:hidden}#bp-webcam-avatar #avatar-to-crop{border:1px solid #eee;max-width:100%;width:100%}@media screen and (min-width:801px){#bp-webcam-avatar #avatar-to-crop{max-width:64%;width:64%}}#avatar-crop-actions a{display:block}#bp-webcam-avatar #avatar-crop-actions{float:right;margin:0 0 20px;width:50%}#avatar-crop-actions a.button{margin-top:10px}#bp-webcam-avatar #avatar-crop-actions a.button{display:block;margin:0 0 5px;padding:4px 0;width:100%}#avatar-crop-pane canvas,#avatar-crop-pane img,#avatar-to-crop img,#avatar-upload-form img,#create-group-form img,#group-settings-form img{border:none!important;max-width:none!important}#bp-webcam-avatar video{float:right;margin-bottom:0;max-width:100%;width:100%;transform:scaleX(-1)}#bp-webcam-avatar #avatar-crop-pane{border:2px dashed #bbb;clear:right;float:left;margin:0 0 10px 40px;overflow:hidden}#bp-webcam-avatar .avatar-crop-management #avatar-crop-pane{max-width:150px;max-height:150px}#avatar-crop-pane canvas{height:auto;width:100%;max-width:100%}.group-avatar .bp-avatar .avatar-crop-management{margin-right:0;padding-top:0;width:auto}.bp-avatar .item{overflow:hidden}.bp-avatar .avatar-crop-management.adjust{float:right;clear:none;padding-top:0}.bp-avatar #avatar-to-crop.adjust{float:right;margin-left:20px}@media screen and (max-width:480px){#bp-webcam-avatar .avatar-crop-management #avatar-crop-actions,#bp-webcam-avatar .avatar-crop-management #avatar-crop-pane{float:none}#bp-webcam-avatar .avatar-crop-management #avatar-crop-pane{margin:0 auto 10px}#bp-webcam-avatar .avatar-crop-management #avatar-crop-actions{width:auto}}@media screen and (min-width:801px){#bp-webcam-avatar .avatar-crop-management{clear:none;float:left}#bp-webcam-avatar .avatar-crop-management #avatar-crop-pane{float:none;margin:0 auto 10px}#bp-webcam-avatar .avatar-crop-management #avatar-crop-actions{float:right;width:100%}}body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent,body.users_page_bp-profile-edit.modal-open #TB_ajaxContent{height:95%!important;width:95%!important}body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent p.updated,body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning,body.users_page_bp-profile-edit.modal-open #TB_ajaxContent p.updated,body.users_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning{display:block;padding:10px 15px}.wp-admin #TB_window .bp-avatar #avatar-to-crop{float:right;margin:0}.wp-admin #TB_window .bp-avatar #bp-webcam-avatar #avatar-to-crop{margin-bottom:20px}@media screen and (min-width:783px){.wp-admin #TB_window .bp-avatar .avatar-crop-management{clear:none;float:right;margin-right:20px;padding-top:0;text-align:center}}.wp-admin #TB_window .bp-avatar #avatar-to-crop video{width:100%}.wp-admin #TB_window .bp-avatar .avatar-crop-management a.button{height:auto;line-height:inherit}@media screen and (min-width:810px){.wp-admin #TB_window .bp-avatar #bp-webcam-avatar #avatar-to-crop{max-width:none;width:76%}.wp-admin #TB_window #bp-webcam-avatar .avatar-crop-management{max-width:none;width:auto}}
bp-core/css/avatar.css CHANGED
@@ -265,7 +265,6 @@ div.bp-avatar-nav {
265
margin-bottom: 0;
266
max-width: 100%;
267
width: 100%;
268
- -webkit-transform: scaleX(-1);
269
transform: scaleX(-1);
270
}
271
265
margin-bottom: 0;
266
max-width: 100%;
267
width: 100%;
268
transform: scaleX(-1);
269
}
270
bp-core/css/avatar.min.css CHANGED
@@ -1 +1 @@
1
- div.bp-avatar-status,div.bp-cover-image-status{clear:both;margin:1em 0}div.bp-avatar-status p.updated,div.bp-cover-image-status p.updated{display:block;padding:10px 15px}div.bp-avatar-status p.success,div.bp-cover-image-status p.success{background-color:#efc;border:1px solid #591;color:#250}div.bp-avatar-status p.error,div.bp-cover-image-status p.error{background-color:#fdc;border:1px solid #a00;color:#800}div.bp-avatar-status .bp-progress,div.bp-cover-image-status .bp-progress{background:0 0;border:1px solid #d1d1d1;float:right;height:22px;line-height:2;margin:6px 10px 0 0;margin-bottom:2px;padding:0;overflow:hidden;width:200px}div.bp-avatar-status .bp-bar,div.bp-cover-image-status .bp-bar{background-color:#c3ff88;width:0;height:100%;z-index:9}.bp-uploader-progress div.error{background-color:#fdc;border:1px solid #a00;color:#800;display:block;font-size:90%;padding:10px 15px}#buddypress p.warning,body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning,body.users_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning{background-color:#ffd;border:1px solid #cb2;color:#440;display:block;font-size:90%;margin:1em 0;padding:10px 15px}div.bp-avatar-nav{background:0 0;clear:both;margin:10px 0;overflow:hidden}.avatar-nav-items{margin:0;padding:0}.bp-avatar-nav .avatar-nav-items li.avatar-nav-item{float:left!important;margin:0;list-style:none}.avatar-nav-items li a{display:block;padding:5px 10px;text-decoration:none}.bp-avatar-nav ul:after,.bp-avatar-nav ul:before{content:" ";display:table}.bp-avatar-nav ul:after{clear:both}.bp-avatar-nav ul{border-bottom:1px solid #ccc;margin-bottom:10px}.bp-avatar-nav ul.avatar-nav-items li.current{border:1px solid #ccc;border-bottom-color:#fff;border-top-left-radius:4px;border-top-right-radius:4px;margin-bottom:-1px}.bp-avatar-nav li.current a{background:0 0;color:inherit;font-weight:700;opacity:.8;outline:0}#drag-drop-area{border:4px dashed #bbb;height:200px}.drag-drop.drag-over #drag-drop-area{border-color:#83b4d8}.drag-drop-inside p{display:none}.drag-drop-inside p.drag-drop-buttons{margin-top:80px;text-align:center}.drag-drop .drag-drop-inside p.drag-drop-buttons{margin:auto;text-align:inherit}.moxie-shim.moxie-shim-html5 input{cursor:pointer}.drag-drop #drag-drop-area{box-sizing:border-box;display:table;height:100%;width:100%}.drag-drop .drag-drop-inside{display:table-cell;padding:40px 0;text-align:center;vertical-align:middle}.drag-drop .drag-drop-inside p,.drag-drop-inside p.drag-drop-buttons{display:block}.drag-drop .drag-drop-inside p{color:#767676;font-size:110%;margin:5px 0;text-align:center}.drag-drop-inside p.drag-drop-info{margin-top:0}#avatar-to-crop{margin:0 auto 20px;text-align:left}#bp-webcam-avatar #avatar-to-crop{float:left;margin:0 0 20px}#avatar-to-crop .jcrop-holder{margin:0 auto}.avatar-crop-management{clear:left;overflow:hidden;padding-top:20px;text-align:center}#bp-webcam-avatar .avatar-crop-management{clear:none;float:none;overflow:visible;padding-top:0;width:auto}#avatar-crop-pane{margin:0 auto;overflow:hidden}#bp-webcam-avatar #avatar-to-crop{border:1px solid #eee;max-width:100%;width:100%}@media screen and (min-width:801px){#bp-webcam-avatar #avatar-to-crop{max-width:64%;width:64%}}#avatar-crop-actions a{display:block}#bp-webcam-avatar #avatar-crop-actions{float:left;margin:0 0 20px;width:50%}#avatar-crop-actions a.button{margin-top:10px}#bp-webcam-avatar #avatar-crop-actions a.button{display:block;margin:0 0 5px;padding:4px 0;width:100%}#avatar-crop-pane canvas,#avatar-crop-pane img,#avatar-to-crop img,#avatar-upload-form img,#create-group-form img,#group-settings-form img{border:none!important;max-width:none!important}#bp-webcam-avatar video{float:left;margin-bottom:0;max-width:100%;width:100%;-webkit-transform:scaleX(-1);transform:scaleX(-1)}#bp-webcam-avatar #avatar-crop-pane{border:2px dashed #bbb;clear:left;float:right;margin:0 40px 10px 0;overflow:hidden}#bp-webcam-avatar .avatar-crop-management #avatar-crop-pane{max-width:150px;max-height:150px}#avatar-crop-pane canvas{height:auto;width:100%;max-width:100%}.group-avatar .bp-avatar .avatar-crop-management{margin-left:0;padding-top:0;width:auto}.bp-avatar .item{overflow:hidden}.bp-avatar .avatar-crop-management.adjust{float:left;clear:none;padding-top:0}.bp-avatar #avatar-to-crop.adjust{float:left;margin-right:20px}@media screen and (max-width:480px){#bp-webcam-avatar .avatar-crop-management #avatar-crop-actions,#bp-webcam-avatar .avatar-crop-management #avatar-crop-pane{float:none}#bp-webcam-avatar .avatar-crop-management #avatar-crop-pane{margin:0 auto 10px}#bp-webcam-avatar .avatar-crop-management #avatar-crop-actions{width:auto}}@media screen and (min-width:801px){#bp-webcam-avatar .avatar-crop-management{clear:none;float:right}#bp-webcam-avatar .avatar-crop-management #avatar-crop-pane{float:none;margin:0 auto 10px}#bp-webcam-avatar .avatar-crop-management #avatar-crop-actions{float:left;width:100%}}body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent,body.users_page_bp-profile-edit.modal-open #TB_ajaxContent{height:95%!important;width:95%!important}body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent p.updated,body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning,body.users_page_bp-profile-edit.modal-open #TB_ajaxContent p.updated,body.users_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning{display:block;padding:10px 15px}.wp-admin #TB_window .bp-avatar #avatar-to-crop{float:left;margin:0}.wp-admin #TB_window .bp-avatar #bp-webcam-avatar #avatar-to-crop{margin-bottom:20px}@media screen and (min-width:783px){.wp-admin #TB_window .bp-avatar .avatar-crop-management{clear:none;float:left;margin-left:20px;padding-top:0;text-align:center}}.wp-admin #TB_window .bp-avatar #avatar-to-crop video{width:100%}.wp-admin #TB_window .bp-avatar .avatar-crop-management a.button{height:auto;line-height:inherit}@media screen and (min-width:810px){.wp-admin #TB_window .bp-avatar #bp-webcam-avatar #avatar-to-crop{max-width:none;width:76%}.wp-admin #TB_window #bp-webcam-avatar .avatar-crop-management{max-width:none;width:auto}}
1
+ div.bp-avatar-status,div.bp-cover-image-status{clear:both;margin:1em 0}div.bp-avatar-status p.updated,div.bp-cover-image-status p.updated{display:block;padding:10px 15px}div.bp-avatar-status p.success,div.bp-cover-image-status p.success{background-color:#efc;border:1px solid #591;color:#250}div.bp-avatar-status p.error,div.bp-cover-image-status p.error{background-color:#fdc;border:1px solid #a00;color:#800}div.bp-avatar-status .bp-progress,div.bp-cover-image-status .bp-progress{background:0 0;border:1px solid #d1d1d1;float:right;height:22px;line-height:2;margin:6px 10px 0 0;margin-bottom:2px;padding:0;overflow:hidden;width:200px}div.bp-avatar-status .bp-bar,div.bp-cover-image-status .bp-bar{background-color:#c3ff88;width:0;height:100%;z-index:9}.bp-uploader-progress div.error{background-color:#fdc;border:1px solid #a00;color:#800;display:block;font-size:90%;padding:10px 15px}#buddypress p.warning,body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning,body.users_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning{background-color:#ffd;border:1px solid #cb2;color:#440;display:block;font-size:90%;margin:1em 0;padding:10px 15px}div.bp-avatar-nav{background:0 0;clear:both;margin:10px 0;overflow:hidden}.avatar-nav-items{margin:0;padding:0}.bp-avatar-nav .avatar-nav-items li.avatar-nav-item{float:left!important;margin:0;list-style:none}.avatar-nav-items li a{display:block;padding:5px 10px;text-decoration:none}.bp-avatar-nav ul:after,.bp-avatar-nav ul:before{content:" ";display:table}.bp-avatar-nav ul:after{clear:both}.bp-avatar-nav ul{border-bottom:1px solid #ccc;margin-bottom:10px}.bp-avatar-nav ul.avatar-nav-items li.current{border:1px solid #ccc;border-bottom-color:#fff;border-top-left-radius:4px;border-top-right-radius:4px;margin-bottom:-1px}.bp-avatar-nav li.current a{background:0 0;color:inherit;font-weight:700;opacity:.8;outline:0}#drag-drop-area{border:4px dashed #bbb;height:200px}.drag-drop.drag-over #drag-drop-area{border-color:#83b4d8}.drag-drop-inside p{display:none}.drag-drop-inside p.drag-drop-buttons{margin-top:80px;text-align:center}.drag-drop .drag-drop-inside p.drag-drop-buttons{margin:auto;text-align:inherit}.moxie-shim.moxie-shim-html5 input{cursor:pointer}.drag-drop #drag-drop-area{box-sizing:border-box;display:table;height:100%;width:100%}.drag-drop .drag-drop-inside{display:table-cell;padding:40px 0;text-align:center;vertical-align:middle}.drag-drop .drag-drop-inside p,.drag-drop-inside p.drag-drop-buttons{display:block}.drag-drop .drag-drop-inside p{color:#767676;font-size:110%;margin:5px 0;text-align:center}.drag-drop-inside p.drag-drop-info{margin-top:0}#avatar-to-crop{margin:0 auto 20px;text-align:left}#bp-webcam-avatar #avatar-to-crop{float:left;margin:0 0 20px}#avatar-to-crop .jcrop-holder{margin:0 auto}.avatar-crop-management{clear:left;overflow:hidden;padding-top:20px;text-align:center}#bp-webcam-avatar .avatar-crop-management{clear:none;float:none;overflow:visible;padding-top:0;width:auto}#avatar-crop-pane{margin:0 auto;overflow:hidden}#bp-webcam-avatar #avatar-to-crop{border:1px solid #eee;max-width:100%;width:100%}@media screen and (min-width:801px){#bp-webcam-avatar #avatar-to-crop{max-width:64%;width:64%}}#avatar-crop-actions a{display:block}#bp-webcam-avatar #avatar-crop-actions{float:left;margin:0 0 20px;width:50%}#avatar-crop-actions a.button{margin-top:10px}#bp-webcam-avatar #avatar-crop-actions a.button{display:block;margin:0 0 5px;padding:4px 0;width:100%}#avatar-crop-pane canvas,#avatar-crop-pane img,#avatar-to-crop img,#avatar-upload-form img,#create-group-form img,#group-settings-form img{border:none!important;max-width:none!important}#bp-webcam-avatar video{float:left;margin-bottom:0;max-width:100%;width:100%;transform:scaleX(-1)}#bp-webcam-avatar #avatar-crop-pane{border:2px dashed #bbb;clear:left;float:right;margin:0 40px 10px 0;overflow:hidden}#bp-webcam-avatar .avatar-crop-management #avatar-crop-pane{max-width:150px;max-height:150px}#avatar-crop-pane canvas{height:auto;width:100%;max-width:100%}.group-avatar .bp-avatar .avatar-crop-management{margin-left:0;padding-top:0;width:auto}.bp-avatar .item{overflow:hidden}.bp-avatar .avatar-crop-management.adjust{float:left;clear:none;padding-top:0}.bp-avatar #avatar-to-crop.adjust{float:left;margin-right:20px}@media screen and (max-width:480px){#bp-webcam-avatar .avatar-crop-management #avatar-crop-actions,#bp-webcam-avatar .avatar-crop-management #avatar-crop-pane{float:none}#bp-webcam-avatar .avatar-crop-management #avatar-crop-pane{margin:0 auto 10px}#bp-webcam-avatar .avatar-crop-management #avatar-crop-actions{width:auto}}@media screen and (min-width:801px){#bp-webcam-avatar .avatar-crop-management{clear:none;float:right}#bp-webcam-avatar .avatar-crop-management #avatar-crop-pane{float:none;margin:0 auto 10px}#bp-webcam-avatar .avatar-crop-management #avatar-crop-actions{float:left;width:100%}}body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent,body.users_page_bp-profile-edit.modal-open #TB_ajaxContent{height:95%!important;width:95%!important}body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent p.updated,body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning,body.users_page_bp-profile-edit.modal-open #TB_ajaxContent p.updated,body.users_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning{display:block;padding:10px 15px}.wp-admin #TB_window .bp-avatar #avatar-to-crop{float:left;margin:0}.wp-admin #TB_window .bp-avatar #bp-webcam-avatar #avatar-to-crop{margin-bottom:20px}@media screen and (min-width:783px){.wp-admin #TB_window .bp-avatar .avatar-crop-management{clear:none;float:left;margin-left:20px;padding-top:0;text-align:center}}.wp-admin #TB_window .bp-avatar #avatar-to-crop video{width:100%}.wp-admin #TB_window .bp-avatar .avatar-crop-management a.button{height:auto;line-height:inherit}@media screen and (min-width:810px){.wp-admin #TB_window .bp-avatar #bp-webcam-avatar #avatar-to-crop{max-width:none;width:76%}.wp-admin #TB_window #bp-webcam-avatar .avatar-crop-management{max-width:none;width:auto}}
bp-core/css/buddybar-rtl.css CHANGED
@@ -226,8 +226,6 @@ body#bp-default #admin-bar-logo {
226
margin-right: 2px;
227
background: #fff;
228
color: #000;
229
- -moz-border-radius: 3px;
230
- -webkit-border-radius: 3px;
231
border-radius: 3px;
232
}
233
226
margin-right: 2px;
227
background: #fff;
228
color: #000;
229
border-radius: 3px;
230
}
231
bp-core/css/buddybar-rtl.min.css CHANGED
@@ -1 +1 @@
1
- body:not(.wp-admin){padding-top:25px!important}#wp-admin-bar{position:fixed;top:0;right:0;height:25px;font-size:11px;width:100%;z-index:9999}#wp-admin-bar .padder{position:relative;padding:0;width:100%;margin:0 auto;background:url(../images/60pc_black.png);height:25px}body#bp-default #wp-admin-bar .padder{max-width:1250px}#wp-admin-bar *{z-index:999}#wp-admin-bar div#admin-bar-logo{position:absolute;top:5px;right:10px}#wp-admin-bar a img{border:none}#wp-admin-bar li{list-style:none;margin:0;padding:0;line-height:1;text-align:right}#wp-admin-bar li a{padding:7px 15px;color:#eee;text-decoration:none;font-size:11px}#wp-admin-bar li.alt{border:none}#wp-admin-bar li.no-arrow a{padding-left:15px}#wp-admin-bar ul li ul li a span{display:none}#wp-admin-bar li.hover,#wp-admin-bar li:hover{position:static}#admin-bar-logo{float:right;font-weight:700;font-size:11px;padding:5px 8px;margin:0;text-decoration:none;color:#fff}body#bp-default #admin-bar-logo{padding:2px 8px}#wp-admin-bar ul{margin:0;list-style:none;line-height:1;cursor:pointer;height:auto;padding:0}#wp-admin-bar ul li{padding:0;float:right;position:relative;background:url(../images/admin-menu-arrow.gif) 12% 53% no-repeat;padding-left:11px}#wp-admin-bar ul li.no-arrow{background:0 0;padding-left:0}#wp-admin-bar ul li ul li{background-image:none}#wp-admin-bar ul li.align-right{position:absolute;left:0}#wp-admin-bar ul li a{display:block}#wp-admin-bar ul.main-nav li ul li.sfhover,#wp-admin-bar ul.main-nav li.sfhover,#wp-admin-bar ul.main-nav li:hover{background-color:#333}#wp-admin-bar ul li ul{position:absolute;width:185px;right:-999em;margin-right:0;background:#333;border:1px solid #222;-moz-box-shadow:0 4px 8px rgba(0,0,0,.1);-webkit-box-shadow:0 4px 8px rgba(0,0,0,.1);-moz-border-radius:3px;-webkit-border-radius:3px;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0}#wp-admin-bar ul li>ul{border-top:none}#wp-admin-bar ul li ul a{color:#eee}#wp-admin-bar ul li ul li{float:right;width:174px;margin:0}#wp-admin-bar ul li ul li:hover a{color:#fff}#wp-admin-bar ul li div.admin-bar-clear{clear:both}#wp-admin-bar ul.main-nav li ul li.sfhover,#wp-admin-bar ul.main-nav li ul li:hover{background-color:#222}#wp-admin-bar ul li ul ul{margin:-25px 184px 0 0;-moz-border-radius:3px;-webkit-border-radius:3px}#wp-admin-bar ul li ul li:hover ul li a{color:#eee}#wp-admin-bar ul li ul li ul li:hover a{color:#fff}#wp-admin-bar ul li ul li.sfhover ul,#wp-admin-bar ul li ul li:hover ul,#wp-admin-bar ul li.sfhover ul,#wp-admin-bar ul li:hover ul{right:auto}#wp-admin-bar ul li.align-right:hover ul{left:0}#wp-admin-bar li.sfhover ul li ul,#wp-admin-bar ul li:hover ul ul{right:-999em}#wp-admin-bar img.avatar{float:right;margin-left:8px}#wp-admin-bar span.activity{display:block;margin-right:34px;padding:0}#wp-admin-bar ul.author-list li a{height:17px}#wp-admin-bar ul li#bp-adminbar-notifications-menu a span{padding:0 6px;margin-right:2px;background:#fff;color:#000;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}#wp-admin-bar-user-info img.avatar{height:64px;width:64px}
1
+ body:not(.wp-admin){padding-top:25px!important}#wp-admin-bar{position:fixed;top:0;right:0;height:25px;font-size:11px;width:100%;z-index:9999}#wp-admin-bar .padder{position:relative;padding:0;width:100%;margin:0 auto;background:url(../images/60pc_black.png);height:25px}body#bp-default #wp-admin-bar .padder{max-width:1250px}#wp-admin-bar *{z-index:999}#wp-admin-bar div#admin-bar-logo{position:absolute;top:5px;right:10px}#wp-admin-bar a img{border:none}#wp-admin-bar li{list-style:none;margin:0;padding:0;line-height:1;text-align:right}#wp-admin-bar li a{padding:7px 15px;color:#eee;text-decoration:none;font-size:11px}#wp-admin-bar li.alt{border:none}#wp-admin-bar li.no-arrow a{padding-left:15px}#wp-admin-bar ul li ul li a span{display:none}#wp-admin-bar li.hover,#wp-admin-bar li:hover{position:static}#admin-bar-logo{float:right;font-weight:700;font-size:11px;padding:5px 8px;margin:0;text-decoration:none;color:#fff}body#bp-default #admin-bar-logo{padding:2px 8px}#wp-admin-bar ul{margin:0;list-style:none;line-height:1;cursor:pointer;height:auto;padding:0}#wp-admin-bar ul li{padding:0;float:right;position:relative;background:url(../images/admin-menu-arrow.gif) 12% 53% no-repeat;padding-left:11px}#wp-admin-bar ul li.no-arrow{background:0 0;padding-left:0}#wp-admin-bar ul li ul li{background-image:none}#wp-admin-bar ul li.align-right{position:absolute;left:0}#wp-admin-bar ul li a{display:block}#wp-admin-bar ul.main-nav li ul li.sfhover,#wp-admin-bar ul.main-nav li.sfhover,#wp-admin-bar ul.main-nav li:hover{background-color:#333}#wp-admin-bar ul li ul{position:absolute;width:185px;right:-999em;margin-right:0;background:#333;border:1px solid #222;-moz-box-shadow:0 4px 8px rgba(0,0,0,.1);-webkit-box-shadow:0 4px 8px rgba(0,0,0,.1);-moz-border-radius:3px;-webkit-border-radius:3px;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0}#wp-admin-bar ul li>ul{border-top:none}#wp-admin-bar ul li ul a{color:#eee}#wp-admin-bar ul li ul li{float:right;width:174px;margin:0}#wp-admin-bar ul li ul li:hover a{color:#fff}#wp-admin-bar ul li div.admin-bar-clear{clear:both}#wp-admin-bar ul.main-nav li ul li.sfhover,#wp-admin-bar ul.main-nav li ul li:hover{background-color:#222}#wp-admin-bar ul li ul ul{margin:-25px 184px 0 0;-moz-border-radius:3px;-webkit-border-radius:3px}#wp-admin-bar ul li ul li:hover ul li a{color:#eee}#wp-admin-bar ul li ul li ul li:hover a{color:#fff}#wp-admin-bar ul li ul li.sfhover ul,#wp-admin-bar ul li ul li:hover ul,#wp-admin-bar ul li.sfhover ul,#wp-admin-bar ul li:hover ul{right:auto}#wp-admin-bar ul li.align-right:hover ul{left:0}#wp-admin-bar li.sfhover ul li ul,#wp-admin-bar ul li:hover ul ul{right:-999em}#wp-admin-bar img.avatar{float:right;margin-left:8px}#wp-admin-bar span.activity{display:block;margin-right:34px;padding:0}#wp-admin-bar ul.author-list li a{height:17px}#wp-admin-bar ul li#bp-adminbar-notifications-menu a span{padding:0 6px;margin-right:2px;background:#fff;color:#000;border-radius:3px}#wp-admin-bar-user-info img.avatar{height:64px;width:64px}
bp-core/css/buddybar.css CHANGED
@@ -226,8 +226,6 @@ body#bp-default #admin-bar-logo {
226
margin-left: 2px;
227
background: #fff;
228
color: #000;
229
- -moz-border-radius: 3px;
230
- -webkit-border-radius: 3px;
231
border-radius: 3px;
232
}
233
226
margin-left: 2px;
227
background: #fff;
228
color: #000;
229
border-radius: 3px;
230
}
231
bp-core/css/buddybar.min.css CHANGED
@@ -1 +1 @@
1
- body:not(.wp-admin){padding-top:25px!important}#wp-admin-bar{position:fixed;top:0;left:0;height:25px;font-size:11px;width:100%;z-index:9999}#wp-admin-bar .padder{position:relative;padding:0;width:100%;margin:0 auto;background:url(../images/60pc_black.png);height:25px}body#bp-default #wp-admin-bar .padder{max-width:1250px}#wp-admin-bar *{z-index:999}#wp-admin-bar div#admin-bar-logo{position:absolute;top:5px;left:10px}#wp-admin-bar a img{border:none}#wp-admin-bar li{list-style:none;margin:0;padding:0;line-height:1;text-align:left}#wp-admin-bar li a{padding:7px 15px;color:#eee;text-decoration:none;font-size:11px}#wp-admin-bar li.alt{border:none}#wp-admin-bar li.no-arrow a{padding-right:15px}#wp-admin-bar ul li ul li a span{display:none}#wp-admin-bar li.hover,#wp-admin-bar li:hover{position:static}#admin-bar-logo{float:left;font-weight:700;font-size:11px;padding:5px 8px;margin:0;text-decoration:none;color:#fff}body#bp-default #admin-bar-logo{padding:2px 8px}#wp-admin-bar ul{margin:0;list-style:none;line-height:1;cursor:pointer;height:auto;padding:0}#wp-admin-bar ul li{padding:0;float:left;position:relative;background:url(../images/admin-menu-arrow.gif) 88% 53% no-repeat;padding-right:11px}#wp-admin-bar ul li.no-arrow{background:0 0;padding-right:0}#wp-admin-bar ul li ul li{background-image:none}#wp-admin-bar ul li.align-right{position:absolute;right:0}#wp-admin-bar ul li a{display:block}#wp-admin-bar ul.main-nav li ul li.sfhover,#wp-admin-bar ul.main-nav li.sfhover,#wp-admin-bar ul.main-nav li:hover{background-color:#333}#wp-admin-bar ul li ul{position:absolute;width:185px;left:-999em;margin-left:0;background:#333;border:1px solid #222;-moz-box-shadow:0 4px 8px rgba(0,0,0,.1);-webkit-box-shadow:0 4px 8px rgba(0,0,0,.1);-moz-border-radius:3px;-webkit-border-radius:3px;-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0}#wp-admin-bar ul li>ul{border-top:none}#wp-admin-bar ul li ul a{color:#eee}#wp-admin-bar ul li ul li{float:left;width:174px;margin:0}#wp-admin-bar ul li ul li:hover a{color:#fff}#wp-admin-bar ul li div.admin-bar-clear{clear:both}#wp-admin-bar ul.main-nav li ul li.sfhover,#wp-admin-bar ul.main-nav li ul li:hover{background-color:#222}#wp-admin-bar ul li ul ul{margin:-25px 0 0 184px;-moz-border-radius:3px;-webkit-border-radius:3px}#wp-admin-bar ul li ul li:hover ul li a{color:#eee}#wp-admin-bar ul li ul li ul li:hover a{color:#fff}#wp-admin-bar ul li ul li.sfhover ul,#wp-admin-bar ul li ul li:hover ul,#wp-admin-bar ul li.sfhover ul,#wp-admin-bar ul li:hover ul{left:auto}#wp-admin-bar ul li.align-right:hover ul{right:0}#wp-admin-bar li.sfhover ul li ul,#wp-admin-bar ul li:hover ul ul{left:-999em}#wp-admin-bar img.avatar{float:left;margin-right:8px}#wp-admin-bar span.activity{display:block;margin-left:34px;padding:0}#wp-admin-bar ul.author-list li a{height:17px}#wp-admin-bar ul li#bp-adminbar-notifications-menu a span{padding:0 6px;margin-left:2px;background:#fff;color:#000;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}#wp-admin-bar-user-info img.avatar{height:64px;width:64px}
1
+ body:not(.wp-admin){padding-top:25px!important}#wp-admin-bar{position:fixed;top:0;left:0;height:25px;font-size:11px;width:100%;z-index:9999}#wp-admin-bar .padder{position:relative;padding:0;width:100%;margin:0 auto;background:url(../images/60pc_black.png);height:25px}body#bp-default #wp-admin-bar .padder{max-width:1250px}#wp-admin-bar *{z-index:999}#wp-admin-bar div#admin-bar-logo{position:absolute;top:5px;left:10px}#wp-admin-bar a img{border:none}#wp-admin-bar li{list-style:none;margin:0;padding:0;line-height:1;text-align:left}#wp-admin-bar li a{padding:7px 15px;color:#eee;text-decoration:none;font-size:11px}#wp-admin-bar li.alt{border:none}#wp-admin-bar li.no-arrow a{padding-right:15px}#wp-admin-bar ul li ul li a span{display:none}#wp-admin-bar li.hover,#wp-admin-bar li:hover{position:static}#admin-bar-logo{float:left;font-weight:700;font-size:11px;padding:5px 8px;margin:0;text-decoration:none;color:#fff}body#bp-default #admin-bar-logo{padding:2px 8px}#wp-admin-bar ul{margin:0;list-style:none;line-height:1;cursor:pointer;height:auto;padding:0}#wp-admin-bar ul li{padding:0;float:left;position:relative;background:url(../images/admin-menu-arrow.gif) 88% 53% no-repeat;padding-right:11px}#wp-admin-bar ul li.no-arrow{background:0 0;padding-right:0}#wp-admin-bar ul li ul li{background-image:none}#wp-admin-bar ul li.align-right{position:absolute;right:0}#wp-admin-bar ul li a{display:block}#wp-admin-bar ul.main-nav li ul li.sfhover,#wp-admin-bar ul.main-nav li.sfhover,#wp-admin-bar ul.main-nav li:hover{background-color:#333}#wp-admin-bar ul li ul{position:absolute;width:185px;left:-999em;margin-left:0;background:#333;border:1px solid #222;-moz-box-shadow:0 4px 8px rgba(0,0,0,.1);-webkit-box-shadow:0 4px 8px rgba(0,0,0,.1);-moz-border-radius:3px;-webkit-border-radius:3px;-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0}#wp-admin-bar ul li>ul{border-top:none}#wp-admin-bar ul li ul a{color:#eee}#wp-admin-bar ul li ul li{float:left;width:174px;margin:0}#wp-admin-bar ul li ul li:hover a{color:#fff}#wp-admin-bar ul li div.admin-bar-clear{clear:both}#wp-admin-bar ul.main-nav li ul li.sfhover,#wp-admin-bar ul.main-nav li ul li:hover{background-color:#222}#wp-admin-bar ul li ul ul{margin:-25px 0 0 184px;-moz-border-radius:3px;-webkit-border-radius:3px}#wp-admin-bar ul li ul li:hover ul li a{color:#eee}#wp-admin-bar ul li ul li ul li:hover a{color:#fff}#wp-admin-bar ul li ul li.sfhover ul,#wp-admin-bar ul li ul li:hover ul,#wp-admin-bar ul li.sfhover ul,#wp-admin-bar ul li:hover ul{left:auto}#wp-admin-bar ul li.align-right:hover ul{right:0}#wp-admin-bar li.sfhover ul li ul,#wp-admin-bar ul li:hover ul ul{left:-999em}#wp-admin-bar img.avatar{float:left;margin-right:8px}#wp-admin-bar span.activity{display:block;margin-left:34px;padding:0}#wp-admin-bar ul.author-list li a{height:17px}#wp-admin-bar ul li#bp-adminbar-notifications-menu a span{padding:0 6px;margin-left:2px;background:#fff;color:#000;border-radius:3px}#wp-admin-bar-user-info img.avatar{height:64px;width:64px}
bp-core/deprecated/3.0.php CHANGED
@@ -2,7 +2,7 @@
2
/**
3
* Deprecated functions.
4
*
5
- * @deprecated 2.9.0
6
*/
7
8
// Exit if accessed directly.
2
/**
3
* Deprecated functions.
4
*
5
+ * @deprecated 3.0.0
6
*/
7
8
// Exit if accessed directly.
bp-core/deprecated/4.0.php ADDED
@@ -0,0 +1,21 @@
1
+ <?php
2
+ /**
3
+ * Deprecated functions.
4
+ *
5
+ * @deprecated 4.0.0
6
+ */
7
+
8
+ // Exit if accessed directly.
9
+ defined( 'ABSPATH' ) || exit;
10
+
11
+ /**
12
+ * Print moment.js config in page footer.
13
+ *
14
+ * @since 2.7.0
15
+ * @since 4.0.0 Deprecated as BP requires WP >= 4.6.
16
+ *
17
+ * @access private
18
+ */
19
+ function _bp_core_moment_js_config_footer() {
20
+ _deprecated_function( __FUNCTION__, '4.0' );
21
+ }
bp-friends/bp-friends-filters.php CHANGED
@@ -47,3 +47,31 @@ function bp_friends_filter_user_query_populate_extras( BP_User_Query $user_query
47
48
}
49
add_filter( 'bp_user_query_populate_extras', 'bp_friends_filter_user_query_populate_extras', 4, 2 );
47
48
}
49
add_filter( 'bp_user_query_populate_extras', 'bp_friends_filter_user_query_populate_extras', 4, 2 );
50
+
51
+ /**
52
+ * Registers Friends personal data exporter.
53
+ *
54
+ * @since 4.0.0
55
+ *
56
+ * @param array $exporters An array of personal data exporters.
57
+ * @return array An array of personal data exporters.
58
+ */
59
+ function bp_friends_register_personal_data_exporters( $exporters ) {
60
+ $exporters['buddypress-friends'] = array(
61
+ 'exporter_friendly_name' => __( 'BuddyPress Friends', 'buddypress' ),
62
+ 'callback' => 'bp_friends_personal_data_exporter',
63
+ );
64
+
65
+ $exporters['buddypress-friends-pending-sent-requests'] = array(
66
+ 'exporter_friendly_name' => __( 'BuddyPress Friend Requests (Sent)', 'buddypress' ),
67
+ 'callback' => 'bp_friends_pending_sent_requests_personal_data_exporter',
68
+ );
69
+
70
+ $exporters['buddypress-friends-pending-received-requests'] = array(
71
+ 'exporter_friendly_name' => __( 'BuddyPress Friend Requests (Received)', 'buddypress' ),
72
+ 'callback' => 'bp_friends_pending_received_requests_personal_data_exporter',
73
+ );
74
+
75
+ return $exporters;
76
+ }
77
+ add_filter( 'wp_privacy_personal_data_exporters', 'bp_friends_register_personal_data_exporters' );
bp-friends/bp-friends-functions.php CHANGED
@@ -894,3 +894,203 @@ function friends_notification_accepted_request( $friendship_id, $initiator_id, $
894
bp_send_email( 'friends-request-accepted', $initiator_id, $args );
895
}
896
add_action( 'friends_friendship_accepted', 'friends_notification_accepted_request', 10, 3 );
894
bp_send_email( 'friends-request-accepted', $initiator_id, $args );
895
}
896
add_action( 'friends_friendship_accepted', 'friends_notification_accepted_request', 10, 3 );
897
+
898
+ /**
899
+ * Finds and exports friendship data associated with an email address.
900
+ *
901
+ * @since 4.0.0
902
+ *
903
+ * @param string $email_address The user's email address.
904
+ * @param int $page Batch number.
905
+ * @return array An array of personal data.
906
+ */
907
+ function bp_friends_personal_data_exporter( $email_address, $page ) {
908
+ $number = 50;
909
+
910
+ $email_address = trim( $email_address );
911
+
912
+ $data_to_export = array();
913
+
914
+ $user = get_user_by( 'email', $email_address );
915
+
916
+ if ( ! $user ) {
917
+ return array(
918
+ 'data' => array(),
919
+ 'done' => true,
920
+ );
921
+ }
922
+
923
+ $friendships = BP_Friends_Friendship::get_friendships( $user->ID, array(
924
+ 'is_confirmed' => true,
925
+ 'page' => $page,
926
+ 'per_page' => $number,
927
+ ) );
928
+
929
+ $user_data_to_export = array();
930
+
931
+ foreach ( $friendships as $friendship ) {
932
+ if ( (int) $user->ID === (int) $friendship->initiator_user_id ) {
933
+ $friend_id = $friendship->friend_user_id;
934
+ $user_is_initiator = true;
935
+ } else {
936
+ $friend_id = $friendship->initiator_user_id;
937
+ $user_is_initiator = false;
938
+ }
939
+
940
+ $item_data = array(
941
+ array(
942
+ 'name' => __( 'Friend', 'buddypress' ),
943
+ 'value' => bp_core_get_userlink( $friend_id ),
944
+ ),
945
+ array(
946
+ 'name' => __( 'Initiated By Me', 'buddypress' ),
947
+ 'value' => $user_is_initiator ? __( 'Yes', 'buddypress' ) : __( 'No', 'buddypress' ),
948
+ ),
949
+ array(
950
+ 'name' => __( 'Friendship Date', 'buddypress' ),
951
+ 'value' => $friendship->date_created,
952
+ ),
953
+ );
954
+
955
+ $data_to_export[] = array(
956
+ 'group_id' => 'bp_friends',
957
+ 'group_label' => __( 'Friends', 'buddypress' ),
958
+ 'item_id' => "bp-friends-{$friend_id}",
959
+ 'data' => $item_data,
960
+ );
961
+ }
962
+
963
+ // Tell core if we have more items to process.
964
+ $done = count( $friendships ) < $number;
965
+
966
+ return array(
967
+ 'data' => $data_to_export,
968
+ 'done' => $done,
969
+ );
970
+ }
971
+
972
+ /**
973
+ * Finds and exports pending sent friendship request data associated with an email address.
974
+ *
975
+ * @since 4.0.0
976
+ *
977
+ * @param string $email_address The user's email address.
978
+ * @param int $page Batch number.
979
+ * @return array An array of personal data.
980
+ */
981
+ function bp_friends_pending_sent_requests_personal_data_exporter( $email_address, $page ) {
982
+ $number = 50;
983
+
984
+ $email_address = trim( $email_address );
985
+
986
+ $data_to_export = array();
987
+
988
+ $user = get_user_by( 'email', $email_address );
989
+
990
+ if ( ! $user ) {
991
+ return array(
992
+ 'data' => array(),
993
+ 'done' => true,
994
+ );
995
+ }
996
+
997
+ $friendships = BP_Friends_Friendship::get_friendships( $user->ID, array(
998
+ 'is_confirmed' => false,
999
+ 'initiator_user_id' => $user->ID,
1000
+ 'page' => $page,
1001
+ 'per_page' => $number,
1002
+ ) );
1003
+
1004
+ $user_data_to_export = array();
1005
+
1006
+ foreach ( $friendships as $friendship ) {
1007
+ $item_data = array(
1008
+ array(
1009
+ 'name' => __( 'Recipient', 'buddypress' ),
1010
+ 'value' => bp_core_get_userlink( $friendship->friend_user_id ),
1011
+ ),
1012
+ array(
1013
+ 'name' => __( 'Date Sent', 'buddypress' ),
1014
+ 'value' => $friendship->date_created,
1015
+ ),
1016
+ );
1017
+
1018
+ $data_to_export[] = array(
1019
+ 'group_id' => 'bp_friends_pending_sent_requests',
1020
+ 'group_label' => __( 'Pending Friend Requests (Sent)', 'buddypress' ),
1021
+ 'item_id' => "bp-friends-pending-sent-request-{$friendship->friend_user_id}",
1022
+ 'data' => $item_data,
1023
+ );
1024
+ }
1025
+
1026
+ // Tell core if we have more items to process.
1027
+ $done = count( $friendships ) < $number;
1028
+
1029
+ return array(
1030
+ 'data' => $data_to_export,
1031
+ 'done' => $done,
1032
+ );
1033
+ }
1034
+
1035
+ /**
1036
+ * Finds and exports pending received friendship request data associated with an email address.
1037
+ *
1038
+ * @since 4.0.0
1039
+ *
1040
+ * @param string $email_address The user's email address.
1041
+ * @param int $page Batch number.
1042
+ * @return array An array of personal data.
1043
+ */
1044
+ function bp_friends_pending_received_requests_personal_data_exporter( $email_address, $page ) {
1045
+ $number = 50;
1046
+
1047
+ $email_address = trim( $email_address );
1048
+
1049
+ $data_to_export = array();
1050
+
1051
+ $user = get_user_by( 'email', $email_address );
1052
+
1053
+ if ( ! $user ) {
1054
+ return array(
1055
+ 'data' => array(),
1056
+ 'done' => true,
1057
+ );
1058
+ }
1059
+
1060
+ $friendships = BP_Friends_Friendship::get_friendships( $user->ID, array(
1061
+ 'is_confirmed' => false,
1062
+ 'friend_user_id' => $user->ID,
1063
+ 'page' => $page,
1064
+ 'per_page' => $number,
1065
+ ) );
1066
+
1067
+ $user_data_to_export = array();
1068
+
1069
+ foreach ( $friendships as $friendship ) {
1070
+ $item_data = array(
1071
+ array(
1072
+ 'name' => __( 'Requester', 'buddypress' ),
1073
+ 'value' => bp_core_get_userlink( $friendship->initiator_user_id ),
1074
+ ),
1075
+ array(
1076
+ 'name' => __( 'Date Sent', 'buddypress' ),
1077
+ 'value' => $friendship->date_created,
1078
+ ),
1079
+ );
1080
+
1081
+ $data_to_export[] = array(
1082
+ 'group_id' => 'bp_friends_pending_received_requests',
1083
+ 'group_label' => __( 'Pending Friend Requests (Received)', 'buddypress' ),
1084
+ 'item_id' => "bp-friends-pending-received-request-{$friendship->initiator_user_id}",
1085
+ 'data' => $item_data,
1086
+ );
1087
+ }
1088
+
1089
+ // Tell core if we have more items to process.
1090
+ $done = count( $friendships ) < $number;
1091
+
1092
+ return array(
1093
+ 'data' => $data_to_export,
1094
+ 'done' => $done,
1095
+ );
1096
+ }
bp-groups/admin/js/admin.js CHANGED
@@ -21,7 +21,7 @@
21
});
22
23
/* Replace noscript placeholder */
24
- $( '#bp-groups-new-members' ).prop( 'placeholder', BP_Group_Admin.add_member_placeholder );
25
26
/* Remove a member on 'x' click */
27
$( '#bp_group_add_members' ).on( 'click', '.bp-groups-remove-new-member', function( e ) {
21
});
22
23
/* Replace noscript placeholder */
24
+ $( '#bp-groups-new-members.bp-suggest-user' ).prop( 'placeholder', BP_Group_Admin.add_member_placeholder );
25
26
/* Remove a member on 'x' click */
27
$( '#bp_group_add_members' ).on( 'click', '.bp-groups-remove-new-member', function( e ) {
bp-groups/admin/js/admin.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){function n(n,o){e("#bp-groups-new-members-list").append('<li data-login="'+o.item.value+'"><a href="#" class="bp-groups-remove-new-member">x</a> '+o.item.label+"</li>")}var o="undefined"!=typeof group_id?"&group_id="+group_id:"";e(document).ready(function(){window.warn_on_leave=!1,e(".bp-suggest-user").autocomplete({source:ajaxurl+"?action=bp_group_admin_member_autocomplete"+o,delay:500,minLength:2,position:"undefined"!=typeof isRtl&&isRtl?{my:"right top",at:"right bottom",offset:"0, -1"}:{offset:"0, -1"},open:function(){e(this).addClass("open")},close:function(){e(this).removeClass("open"),e(this).val("")},select:function(e,o){n(0,o)}}),e("#bp-groups-new-members").prop("placeholder",BP_Group_Admin.add_member_placeholder),e("#bp_group_add_members").on("click",".bp-groups-remove-new-member",function(n){n.preventDefault(),e(n.target.parentNode).remove()}),e(document).on("change",'input#bp-groups-name, input#bp-groups-description, select.bp-groups-role, #bp-groups-settings-section-status input[type="radio"]',function(){window.warn_on_leave=!0}),e("input#save").on("click",function(){var n=[];e("#bp-groups-new-members-list li").each(function(){n.push(e(this).data("login"))}),n.length&&e("#bp-groups-new-members").val("").val(n.join(", ")),window.warn_on_leave=!1}),window.onbeforeunload=function(){if(window.warn_on_leave)return BP_Group_Admin.warn_on_leave}})}(jQuery);
1
+ !function(e){function n(n,o){e("#bp-groups-new-members-list").append('<li data-login="'+o.item.value+'"><a href="#" class="bp-groups-remove-new-member">x</a> '+o.item.label+"</li>")}var o="undefined"!=typeof group_id?"&group_id="+group_id:"";e(document).ready(function(){window.warn_on_leave=!1,e(".bp-suggest-user").autocomplete({source:ajaxurl+"?action=bp_group_admin_member_autocomplete"+o,delay:500,minLength:2,position:"undefined"!=typeof isRtl&&isRtl?{my:"right top",at:"right bottom",offset:"0, -1"}:{offset:"0, -1"},open:function(){e(this).addClass("open")},close:function(){e(this).removeClass("open"),e(this).val("")},select:function(e,o){n(0,o)}}),e("#bp-groups-new-members.bp-suggest-user").prop("placeholder",BP_Group_Admin.add_member_placeholder),e("#bp_group_add_members").on("click",".bp-groups-remove-new-member",function(n){n.preventDefault(),e(n.target.parentNode).remove()}),e(document).on("change",'input#bp-groups-name, input#bp-groups-description, select.bp-groups-role, #bp-groups-settings-section-status input[type="radio"]',function(){window.warn_on_leave=!0}),e("input#save").on("click",function(){var n=[];e("#bp-groups-new-members-list li").each(function(){n.push(e(this).data("login"))}),n.length&&e("#bp-groups-new-members").val("").val(n.join(", ")),window.warn_on_leave=!1}),window.onbeforeunload=function(){if(window.warn_on_leave)return BP_Group_Admin.warn_on_leave}})}(jQuery);
bp-groups/bp-groups-admin.php CHANGED
@@ -861,13 +861,24 @@ function bp_groups_admin_edit_metabox_settings( $item ) {
861
* @param BP_Groups_Group $item The BP_Groups_Group object for the current group.
862
*/
863
function bp_groups_admin_edit_metabox_add_new_members( $item ) {
864
?>
865
866
<label for="bp-groups-new-members" class="screen-reader-text"><?php
867
/* translators: accessibility text */
868
_e( 'Add new members', 'buddypress' );
869
?></label>
870
- <input name="bp-groups-new-members" type="text" id="bp-groups-new-members" class="bp-suggest-user" placeholder="<?php esc_attr_e( 'Enter a comma-separated list of user logins.', 'buddypress' ) ?>" />
871
<ul id="bp-groups-new-members-list"></ul>
872
<?php
873
}
861
* @param BP_Groups_Group $item The BP_Groups_Group object for the current group.
862
*/
863
function bp_groups_admin_edit_metabox_add_new_members( $item ) {
864
+ if ( wp_is_large_network( 'users' ) ) {
865
+ $class = '';
866
+ $notice = __( 'Enter a comma-separated list of user logins.', 'buddypress' );
867
+ } else {
868
+ $class = 'bp-suggest-user';
869
+ $notice = '';
870
+ }
871
+
872
?>
873
874
<label for="bp-groups-new-members" class="screen-reader-text"><?php
875
/* translators: accessibility text */
876
_e( 'Add new members', 'buddypress' );
877
?></label>
878
+ <input name="bp-groups-new-members" type="text" id="bp-groups-new-members" class="<?php echo esc_attr( $class ); ?>" placeholder="" />
879
+ <?php if ( $notice ) : ?>
880
+ <p class="description"><?php echo esc_html( $notice ); ?></p>
881
+ <?php endif; ?>
882
<ul id="bp-groups-new-members-list"></ul>
883
<?php
884
}
bp-groups/bp-groups-filters.php CHANGED
@@ -74,6 +74,9 @@ add_filter( 'bp_activity_at_name_do_notifications', 'bp_groups_disable_at_mentio
74
add_filter( 'bp_core_avatar_default', 'bp_groups_default_avatar', 10, 3 );
75
add_filter( 'bp_core_avatar_default_thumb', 'bp_groups_default_avatar', 10, 3 );
76
77
/**
78
* Filter output of Group Description through WordPress's KSES API.
79
*
@@ -362,3 +365,35 @@ function bp_groups_user_can_filter( $retval, $user_id, $capability, $site_id, $a
362
363
}
364
add_filter( 'bp_user_can', 'bp_groups_user_can_filter', 10, 5 );
74
add_filter( 'bp_core_avatar_default', 'bp_groups_default_avatar', 10, 3 );
75
add_filter( 'bp_core_avatar_default_thumb', 'bp_groups_default_avatar', 10, 3 );
76
77
+ // Personal data export.
78
+ add_filter( 'wp_privacy_personal_data_exporters', 'bp_groups_register_personal_data_exporters' );
79
+
80
/**
81
* Filter output of Group Description through WordPress's KSES API.
82
*
365
366
}
367
add_filter( 'bp_user_can', 'bp_groups_user_can_filter', 10, 5 );
368
+
369
+ /**
370
+ * Registers Groups personal data exporters.
371
+ *
372
+ * @since 4.0.0
373
+ *
374
+ * @param array $exporters An array of personal data exporters.
375
+ * @return array An array of personal data exporters.
376
+ */
377
+ function bp_groups_register_personal_data_exporters( $exporters ) {
378
+ $exporters['buddypress-groups-memberships'] = array(
379
+ 'exporter_friendly_name' => __( 'BuddyPress Group Memberships', 'buddypress' ),
380
+ 'callback' => 'bp_groups_memberships_personal_data_exporter',
381
+ );
382
+
383
+ $exporters['buddypress-groups-pending-requests'] = array(
384
+ 'exporter_friendly_name' => __( 'BuddyPress Pending Group Membership Requests', 'buddypress' ),
385
+ 'callback' => 'bp_groups_pending_requests_personal_data_exporter',
386
+ );
387
+
388
+ $exporters['buddypress-groups-pending-received-invitations'] = array(
389
+ 'exporter_friendly_name' => __( 'BuddyPress Pending Group Invitations (Received)', 'buddypress' ),
390
+ 'callback' => 'bp_groups_pending_received_invitations_personal_data_exporter',
391
+ );
392
+
393
+ $exporters['buddypress-groups-pending-sent-invitations'] = array(
394
+ 'exporter_friendly_name' => __( 'BuddyPress Pending Group Invitations (Sent)', 'buddypress' ),
395
+ 'callback' => 'bp_groups_pending_sent_invitations_personal_data_exporter',
396
+ );
397
+
398
+ return $exporters;
399
+ }
bp-groups/bp-groups-functions.php CHANGED
@@ -2116,7 +2116,10 @@ function groups_delete_groupmeta( $group_id, $meta_key = false, $meta_value = fa
2116
2117
// Legacy - if no meta_key is passed, delete all for the item.
2118
if ( empty( $meta_key ) ) {
2119
- $keys = $wpdb->get_col( $wpdb->prepare( "SELECT meta_key FROM {$wpdb->groupmeta} WHERE group_id = %d", $group_id ) );
2120
2121
// With no meta_key, ignore $delete_all.
2122
$delete_all = false;
@@ -2638,3 +2641,298 @@ function bp_remove_group_type_on_group_delete( $group_id = 0 ) {
2638
bp_groups_set_group_type( $group_id, '' );
2639
}
2640
add_action( 'groups_delete_group', 'bp_remove_group_type_on_group_delete' );
2116
2117
// Legacy - if no meta_key is passed, delete all for the item.
2118
if ( empty( $meta_key ) ) {
2119
+ $table_name = buddypress()->groups->table_name_groupmeta;
2120
+ $sql = "SELECT meta_key FROM {$table_name} WHERE group_id = %d";
2121
+ $query = $wpdb->prepare( $sql, $group_id );
2122
+ $keys = $wpdb->get_col( $query );
2123
2124
// With no meta_key, ignore $delete_all.
2125
$delete_all = false;
2641
bp_groups_set_group_type( $group_id, '' );
2642
}
2643
add_action( 'groups_delete_group', 'bp_remove_group_type_on_group_delete' );
2644
+
2645
+ /**
2646
+ * Finds and exports group membership data associated with an email address.
2647
+ *
2648
+ * @since 4.0.0
2649
+ *
2650
+ * @param string $email_address The user's email address.
2651
+ * @param int $page Batch number.
2652
+ * @return array An array of personal data.
2653
+ */
2654
+ function bp_groups_memberships_personal_data_exporter( $email_address, $page ) {
2655
+ $number = 20;
2656
+
2657
+ $email_address = trim( $email_address );
2658
+
2659
+ $data_to_export = array();
2660
+
2661
+ $user = get_user_by( 'email', $email_address );
2662
+
2663
+ if ( ! $user ) {
2664
+ return array(
2665
+ 'data' => array(),
2666
+ 'done' => true,
2667
+ );
2668
+ }
2669
+
2670
+ $memberships = BP_Groups_Member::get_user_memberships( $user->ID, array(
2671
+ 'type' => 'membership',
2672
+ 'page' => $page,
2673
+ 'per_page' => $number,
2674
+ ) );
2675
+
2676
+ foreach ( $memberships as $membership ) {
2677
+ $group = groups_get_group( $membership->group_id );
2678
+
2679
+ $item_data = array(
2680
+ array(
2681
+ 'name' => __( 'Group Name', 'buddypress' ),
2682
+ 'value' => bp_get_group_name( $group ),
2683
+ ),
2684
+ array(
2685
+ 'name' => __( 'Group URL', 'buddypress' ),
2686
+ 'value' => bp_get_group_permalink( $group ),
2687
+ ),
2688
+ );
2689
+
2690
+ if ( $membership->inviter_id ) {
2691
+ $item_data[] = array(
2692
+ 'name' => __( 'Invited By', 'buddypress' ),
2693
+ 'value' => bp_core_get_userlink( $membership->inviter_id ),
2694
+ );
2695
+ }
2696
+
2697
+ if ( $group->creator_id === $user->ID ) {
2698
+ $group_role = __( 'Creator', 'buddypress' );
2699
+ } elseif ( $membership->is_admin ) {
2700
+ $group_role = __( 'Admin', 'buddypress' );
2701
+ } elseif ( $membership->is_mod ) {
2702
+ $group_role = __( 'Moderator', 'buddypress' );
2703
+ } else {
2704
+ $group_role = __( 'Member', 'buddypress' );
2705
+ }
2706
+
2707
+ $item_data[] = array(
2708
+ 'name' => __( 'Group Role', 'buddypress' ),
2709
+ 'value' => $group_role,
2710
+ );
2711
+
2712
+ $item_data[] = array(
2713
+ 'name' => __( 'Date Joined', 'buddypress' ),
2714
+ 'value' => $membership->date_modified,
2715
+ );
2716
+
2717
+ $data_to_export[] = array(
2718
+ 'group_id' => 'bp_groups_memberships',
2719
+ 'group_label' => __( 'Group Memberships', 'buddypress' ),
2720
+ 'item_id' => "bp-group-membership-{$group->id}",
2721
+ 'data' => $item_data,
2722
+ );
2723
+ }
2724
+
2725
+ // Tell core if we have more items to process.
2726
+ $done = count( $memberships ) < $number;
2727
+
2728
+ return array(
2729
+ 'data' => $data_to_export,
2730
+ 'done' => $done,
2731
+ );
2732
+ }
2733
+
2734
+ /**
2735
+ * Finds and exports data on pending group membership requests associated with an email address.
2736
+ *
2737
+ * @since 4.0.0
2738
+ *
2739
+ * @param string $email_address The user's email address.
2740
+ * @param int $page Batch number.
2741
+ * @return array An array of personal data.
2742
+ */
2743
+ function bp_groups_pending_requests_personal_data_exporter( $email_address, $page ) {
2744
+ $number = 20;
2745
+
2746
+ $email_address = trim( $email_address );
2747
+
2748
+ $data_to_export = array();
2749
+
2750
+ $user = get_user_by( 'email', $email_address );
2751
+
2752
+ if ( ! $user ) {
2753
+ return array(
2754
+ 'data' => array(),
2755
+ 'done' => true,
2756
+ );
2757
+ }
2758
+
2759
+ $requests = BP_Groups_Member::get_user_memberships( $user->ID, array(
2760
+ 'type' => 'pending_request',
2761
+ 'page' => $page,
2762
+ 'per_page' => $number,
2763
+ ) );
2764
+
2765
+ foreach ( $requests as $request ) {
2766
+ $group = groups_get_group( $request->group_id );
2767
+
2768
+ $item_data = array(
2769
+ array(
2770
+ 'name' => __( 'Group Name', 'buddypress' ),
2771
+ 'value' => bp_get_group_name( $group ),
2772
+ ),
2773
+ array(
2774
+ 'name' => __( 'Group URL', 'buddypress' ),
2775
+ 'value' => bp_get_group_permalink( $group ),
2776
+ ),
2777
+ array(
2778
+ 'name' => __( 'Date Sent', 'buddypress' ),
2779
+ 'value' => $request->date_modified,
2780
+ ),
2781
+ );
2782
+
2783
+ $data_to_export[] = array(
2784
+ 'group_id' => 'bp_groups_pending_requests',
2785
+ 'group_label' => __( 'Pending Group Membership Requests', 'buddypress' ),
2786
+ 'item_id' => "bp-group-pending-request-{$group->id}",
2787
+ 'data' => $item_data,
2788
+ );
2789
+ }
2790
+
2791
+ // Tell core if we have more items to process.
2792
+ $done = count( $requests ) < $number;
2793
+
2794
+ return array(
2795
+ 'data' => $data_to_export,
2796
+ 'done' => $done,
2797
+ );
2798
+ }
2799
+
2800
+ /**
2801
+ * Finds and exports data on pending group invitations sent by a user associated with an email address.
2802
+ *
2803
+ * @since 4.0.0
2804
+ *
2805
+ * @param string $email_address The user's email address.
2806
+ * @param int $page Batch number.
2807
+ * @return array An array of personal data.
2808
+ */
2809
+ function bp_groups_pending_sent_invitations_personal_data_exporter( $email_address, $page ) {
2810
+ $number = 20;
2811
+
2812
+ $email_address = trim( $email_address );
2813
+
2814
+ $data_to_export = array();
2815
+
2816
+ $user = get_user_by( 'email', $email_address );
2817
+
2818
+ if ( ! $user ) {
2819
+ return array(
2820
+ 'data' => array(),
2821
+ 'done' => true,
2822
+ );
2823
+ }
2824
+
2825
+ $invitations = BP_Groups_Member::get_user_memberships( $user->ID, array(
2826
+ 'type' => 'pending_sent_invitation',
2827
+ 'page' => $page,
2828
+ 'per_page' => $number,
2829
+ ) );
2830
+
2831
+ foreach ( $invitations as $invitation ) {
2832
+ $group = groups_get_group( $invitation->group_id );
2833
+
2834
+ $item_data = array(
2835
+ array(
2836
+ 'name' => __( 'Group Name', 'buddypress' ),
2837
+ 'value' => bp_get_group_name( $group ),
2838
+ ),
2839
+ array(
2840
+ 'name' => __( 'Group URL', 'buddypress' ),
2841
+ 'value' => bp_get_group_permalink( $group ),
2842
+ ),
2843
+ array(
2844
+ 'name' => __( 'Sent To', 'buddypress' ),
2845
+ 'value' => bp_core_get_userlink( $invitation->user_id ),
2846
+ ),
2847
+ array(
2848
+ 'name' => __( 'Date Sent', 'buddypress' ),
2849
+ 'value' => $invitation->date_modified,
2850
+ ),
2851
+ );
2852
+
2853
+ $data_to_export[] = array(
2854
+ 'group_id' => 'bp_groups_pending_sent_invitations',
2855
+ 'group_label' => __( 'Pending Group Invitations (Sent)', 'buddypress' ),
2856
+ 'item_id' => "bp-group-pending-sent-invitation-{$group->id}",
2857
+ 'data' => $item_data,
2858
+ );
2859
+ }
2860
+
2861
+ // Tell core if we have more items to process.
2862
+ $done = count( $invitations ) < $number;
2863
+
2864
+ return array(
2865
+ 'data' => $data_to_export,
2866
+ 'done' => $done,
2867
+ );
2868
+ }
2869
+
2870
+ /**
2871
+ * Finds and exports data on pending group invitations received by a user associated with an email address.
2872
+ *
2873
+ * @since 4.0.0
2874
+ *
2875
+ * @param string $email_address The user's email address.
2876
+ * @param int $page Batch number.
2877
+ * @return array An array of personal data.
2878
+ */
2879
+ function bp_groups_pending_received_invitations_personal_data_exporter( $email_address, $page ) {
2880
+ $number = 20;
2881
+
2882
+ $email_address = trim( $email_address );
2883
+
2884
+ $data_to_export = array();
2885
+
2886
+ $user = get_user_by( 'email', $email_address );
2887
+
2888
+ if ( ! $user ) {
2889
+ return array(
2890
+ 'data' => array(),
2891
+ 'done' => true,
2892
+ );
2893
+ }
2894
+
2895
+ $invitations = BP_Groups_Member::get_user_memberships( $user->ID, array(
2896
+ 'type' => 'pending_received_invitation',
2897
+ 'page' => $page,
2898
+ 'per_page' => $number,
2899
+ ) );
2900
+
2901
+ foreach ( $invitations as $invitation ) {
2902
+ $group = groups_get_group( $invitation->group_id );
2903
+
2904
+ $item_data = array(
2905
+ array(
2906
+ 'name' => __( 'Group Name', 'buddypress' ),
2907
+ 'value' => bp_get_group_name( $group ),
2908
+ ),
2909
+ array(
2910
+ 'name' => __( 'Group URL', 'buddypress' ),
2911
+ 'value' => bp_get_group_permalink(