BuddyPress - Version 9.0.0

Version Description

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

Download this release

Release Info

Developer imath
Plugin Icon 128x128 BuddyPress
Version 9.0.0
Comparing to
See all releases

Code changes from version 9.0.0-RC1 to 9.0.0

bp-activity/bp-activity-blocks.php CHANGED
@@ -55,14 +55,26 @@ function bp_activity_render_latest_activities_block( $attributes = array() ) {
55
  $reset_activities_template = $GLOBALS['activities_template'];
56
  }
57
 
58
- $widget_args = array(
59
- 'max' => $max_activities,
60
- 'scope' => 'all',
61
- 'user_id' => $member_id,
62
- 'object' => false,
63
- 'action' => implode( ',', $types ),
64
- 'primary_id' => 0,
65
- 'secondary_id' => 0,
 
 
 
 
 
 
 
 
 
 
 
 
66
  );
67
 
68
  // Build the activity loop.
55
  $reset_activities_template = $GLOBALS['activities_template'];
56
  }
57
 
58
+ /**
59
+ * Filter here to edit the arguments used by the Latest Activities block.
60
+ *
61
+ * @since 9.0.0
62
+ *
63
+ * @param array $widget_args The list of arguments for the Activity query.
64
+ * @param array $block_args The list of Block attributes.
65
+ */
66
+ $widget_args = apply_filters(
67
+ 'bp_activity_block_latest_updates_args',
68
+ array(
69
+ 'max' => $max_activities,
70
+ 'scope' => 'all',
71
+ 'user_id' => $member_id,
72
+ 'object' => false,
73
+ 'action' => implode( ',', $types ),
74
+ 'primary_id' => 0,
75
+ 'secondary_id' => 0,
76
+ ),
77
+ $block_args
78
  );
79
 
80
  // Build the activity loop.
bp-blogs/classes/class-bp-blogs-component.php CHANGED
@@ -137,11 +137,11 @@ class BP_Blogs_Component extends BP_Component {
137
 
138
  if ( bp_is_active( 'activity' ) ) {
139
  $includes[] = 'activity';
140
- }
141
 
142
- if ( is_multisite() ) {
143
- $includes[] = 'widgets';
144
- $includes[] = 'blocks';
 
145
  }
146
 
147
  // Include the files.
@@ -397,7 +397,7 @@ class BP_Blogs_Component extends BP_Component {
397
  public function blocks_init( $blocks = array() ) {
398
  $blocks = array();
399
 
400
- if ( is_multisite() ) {
401
  $blocks['bp/recent-posts'] = array(
402
  'name' => 'bp/recent-posts',
403
  'editor_script' => 'bp-recent-posts-block',
137
 
138
  if ( bp_is_active( 'activity' ) ) {
139
  $includes[] = 'activity';
 
140
 
141
+ if ( is_multisite() ) {
142
+ $includes[] = 'widgets';
143
+ $includes[] = 'blocks';
144
+ }
145
  }
146
 
147
  // Include the files.
397
  public function blocks_init( $blocks = array() ) {
398
  $blocks = array();
399
 
400
+ if ( is_multisite() && bp_is_active( 'activity' ) ) {
401
  $blocks['bp/recent-posts'] = array(
402
  'name' => 'bp/recent-posts',
403
  'editor_script' => 'bp-recent-posts-block',
bp-core/classes/class-bp-admin.php CHANGED
@@ -761,10 +761,10 @@ class BP_Admin {
761
  <?php
762
  printf(
763
  /* translators: 1: heart dashicons. 2: BP Credits screen url. 3: number of BuddyPress contributors to this version. */
764
- _n( 'Built with %1$s by <a href="%2$s">%3$d volunteer</a>.', 'Built with %1$s by <a href="%2$s">%3$d volunteers</a>.', 19, 'buddypress' ),
765
  '<span class="dashicons dashicons-heart"></span>',
766
  esc_url( bp_get_admin_url( 'admin.php?page=bp-credits' ) ),
767
- number_format_i18n( 19 )
768
  );
769
  ?>
770
  </p>
@@ -947,8 +947,13 @@ class BP_Admin {
947
  <a href="https://profiles.wordpress.org/boonebgorges/">Boone B Gorges (boonebgorges)</a>,
948
  <a href="https://profiles.wordpress.org/sbrajesh/">Brajesh Singh (sbrajesh)</a>,
949
  <a href="https://profiles.wordpress.org/dcavins/">David Cavins (dcavins)</a>,
 
 
 
950
  <a href="https://profiles.wordpress.org/johnjamesjacoby/">John James Jacoby (johnjamesjacoby)</a>,
951
  <a href="https://profiles.wordpress.org/leahkoerper/">leahkoerper</a>,
 
 
952
  <a href="https://profiles.wordpress.org/imath/">Mathieu Viet (imath)</a>,
953
  <a href="https://profiles.wordpress.org/modemlooper/">modemlooper</a>,
954
  <a href="https://profiles.wordpress.org/niftythree/">Nifty (niftythree)</a>,
761
  <?php
762
  printf(
763
  /* translators: 1: heart dashicons. 2: BP Credits screen url. 3: number of BuddyPress contributors to this version. */
764
+ _n( 'Built with %1$s by <a href="%2$s">%3$d volunteer</a>.', 'Built with %1$s by <a href="%2$s">%3$d volunteers</a>.', 24, 'buddypress' ),
765
  '<span class="dashicons dashicons-heart"></span>',
766
  esc_url( bp_get_admin_url( 'admin.php?page=bp-credits' ) ),
767
+ number_format_i18n( 24 )
768
  );
769
  ?>
770
  </p>
947
  <a href="https://profiles.wordpress.org/boonebgorges/">Boone B Gorges (boonebgorges)</a>,
948
  <a href="https://profiles.wordpress.org/sbrajesh/">Brajesh Singh (sbrajesh)</a>,
949
  <a href="https://profiles.wordpress.org/dcavins/">David Cavins (dcavins)</a>,
950
+ <a href="https://profiles.wordpress.org/dancaragea/">Dan Caragea (dancaragea)</a>,
951
+ <a href="https://profiles.wordpress.org/ianbarnes/">Ian Barnes (ianbarnes)</a>,
952
+ <a href="https://profiles.wordpress.org/nobnob/">Javier Esteban (nobnob)</a>,
953
  <a href="https://profiles.wordpress.org/johnjamesjacoby/">John James Jacoby (johnjamesjacoby)</a>,
954
  <a href="https://profiles.wordpress.org/leahkoerper/">leahkoerper</a>,
955
+ <a href="https://profiles.wordpress.org/marbaque/">marbaque</a>,
956
+ <a href="https://profiles.wordpress.org/markscottrobson/">Mark Robson (markscottrobson)</a>,
957
  <a href="https://profiles.wordpress.org/imath/">Mathieu Viet (imath)</a>,
958
  <a href="https://profiles.wordpress.org/modemlooper/">modemlooper</a>,
959
  <a href="https://profiles.wordpress.org/niftythree/">Nifty (niftythree)</a>,
bp-groups/bp-groups-blocks.php CHANGED
@@ -93,7 +93,7 @@ function bp_groups_render_group_block( $attributes = array() ) {
93
  esc_url( $group_link ),
94
  esc_url( $avatar ),
95
  /* Translators: %s is the group's name. */
96
- sprintf( esc_html__( 'Group Profile photo of %s', 'buddypress' ), $group_name )
97
  );
98
  }
99
 
@@ -245,8 +245,6 @@ function bp_groups_render_groups_block( $attributes = array() ) {
245
  </a>
246
  </div>',
247
  esc_url( $group_link ),
248
- /* Translators: %s is the group's name. */
249
- sprintf( esc_attr__( 'Group Profile photo of %s', 'buddypress' ), esc_html( $group->name ) ),
250
  esc_url(
251
  bp_core_fetch_avatar(
252
  array(
@@ -256,7 +254,9 @@ function bp_groups_render_groups_block( $attributes = array() ) {
256
  'html' => false,
257
  )
258
  )
259
- )
 
 
260
  );
261
  }
262
 
93
  esc_url( $group_link ),
94
  esc_url( $avatar ),
95
  /* Translators: %s is the group's name. */
96
+ sprintf( esc_attr__( 'Group Profile photo of %s', 'buddypress' ), esc_html( $group_name ) )
97
  );
98
  }
99
 
245
  </a>
246
  </div>',
247
  esc_url( $group_link ),
 
 
248
  esc_url(
249
  bp_core_fetch_avatar(
250
  array(
254
  'html' => false,
255
  )
256
  )
257
+ ),
258
+ /* Translators: %s is the group's name. */
259
+ sprintf( esc_attr__( 'Group Profile photo of %s', 'buddypress' ), esc_html( $group->name ) )
260
  );
261
  }
262
 
bp-loader.php CHANGED
@@ -15,7 +15,7 @@
15
  * Description: BuddyPress adds community features to WordPress. Member Profiles, Activity Streams, Direct Messaging, Notifications, and more!
16
  * Author: The BuddyPress Community
17
  * Author URI: https://buddypress.org/
18
- * Version: 9.0.0-RC1
19
  * Text Domain: buddypress
20
  * Domain Path: /bp-languages/
21
  * License: GPLv2 or later (license.txt)
15
  * Description: BuddyPress adds community features to WordPress. Member Profiles, Activity Streams, Direct Messaging, Notifications, and more!
16
  * Author: The BuddyPress Community
17
  * Author URI: https://buddypress.org/
18
+ * Version: 9.0.0
19
  * Text Domain: buddypress
20
  * Domain Path: /bp-languages/
21
  * License: GPLv2 or later (license.txt)
bp-members/classes/class-bp-members-component.php CHANGED
@@ -880,8 +880,8 @@ class BP_Members_Component extends BP_Component {
880
  'wp-block-editor',
881
  'bp-block-components',
882
  ),
883
- 'editor_style' => 'bp-online-members-block',
884
- 'editor_style_url' => plugins_url( 'css/blocks/online-members.css', dirname( __FILE__ ) ),
885
  'attributes' => array(
886
  'title' => array(
887
  'type' => 'string',
@@ -906,8 +906,8 @@ class BP_Members_Component extends BP_Component {
906
  'wp-block-editor',
907
  'bp-block-components',
908
  ),
909
- 'editor_style' => 'bp-active-members-block',
910
- 'editor_style_url' => plugins_url( 'css/blocks/active-members.css', dirname( __FILE__ ) ),
911
  'attributes' => array(
912
  'title' => array(
913
  'type' => 'string',
880
  'wp-block-editor',
881
  'bp-block-components',
882
  ),
883
+ 'editor_style' => 'bp-member-avatar-blocks',
884
+ 'editor_style_url' => plugins_url( 'css/blocks/member-avatar-blocks.css', dirname( __FILE__ ) ),
885
  'attributes' => array(
886
  'title' => array(
887
  'type' => 'string',
906
  'wp-block-editor',
907
  'bp-block-components',
908
  ),
909
+ 'editor_style' => 'bp-member-avatar-blocks',
910
+ 'editor_style_url' => plugins_url( 'css/blocks/member-avatar-blocks.css', dirname( __FILE__ ) ),
911
  'attributes' => array(
912
  'title' => array(
913
  'type' => 'string',
bp-members/css/blocks/active-members.css DELETED
@@ -1,8 +0,0 @@
1
- [data-type="bp/active-members"] .avatar-block {
2
- display: flex;
3
- flex-flow: row wrap;
4
- }
5
-
6
- [data-type="bp/active-members"] .avatar-block img {
7
- margin: 0.5em;
8
- }
 
 
 
 
 
 
 
 
bp-members/css/blocks/active-members.min.css DELETED
@@ -1 +0,0 @@
1
- [data-type="bp/active-members"] .avatar-block{display:flex;flex-flow:row wrap}[data-type="bp/active-members"] .avatar-block img{margin:.5em}
 
bp-members/css/blocks/{online-members.css → member-avatar-blocks-rtl.css} RENAMED
@@ -1,8 +1,10 @@
 
1
  [data-type="bp/online-members"] .avatar-block {
2
  display: flex;
3
  flex-flow: row wrap;
4
  }
5
 
 
6
  [data-type="bp/online-members"] .avatar-block img {
7
  margin: 0.5em;
8
  }
1
+ [data-type="bp/active-members"] .avatar-block,
2
  [data-type="bp/online-members"] .avatar-block {
3
  display: flex;
4
  flex-flow: row wrap;
5
  }
6
 
7
+ [data-type="bp/active-members"] .avatar-block img,
8
  [data-type="bp/online-members"] .avatar-block img {
9
  margin: 0.5em;
10
  }
bp-members/css/blocks/member-avatar-blocks-rtl.min.css ADDED
@@ -0,0 +1 @@
 
1
+ [data-type="bp/active-members"] .avatar-block,[data-type="bp/online-members"] .avatar-block{display:flex;flex-flow:row wrap}[data-type="bp/active-members"] .avatar-block img,[data-type="bp/online-members"] .avatar-block img{margin:.5em}
bp-members/css/blocks/member-avatar-blocks.css ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ [data-type="bp/active-members"] .avatar-block,
2
+ [data-type="bp/online-members"] .avatar-block {
3
+ display: flex;
4
+ flex-flow: row wrap;
5
+ }
6
+
7
+ [data-type="bp/active-members"] .avatar-block img,
8
+ [data-type="bp/online-members"] .avatar-block img {
9
+ margin: 0.5em;
10
+ }
bp-members/css/blocks/member-avatar-blocks.min.css ADDED
@@ -0,0 +1 @@
 
1
+ [data-type="bp/active-members"] .avatar-block,[data-type="bp/online-members"] .avatar-block{display:flex;flex-flow:row wrap}[data-type="bp/active-members"] .avatar-block img,[data-type="bp/online-members"] .avatar-block img{margin:.5em}
bp-members/css/blocks/online-members.min.css DELETED
@@ -1 +0,0 @@
1
- [data-type="bp/online-members"] .avatar-block{display:flex;flex-flow:row wrap}[data-type="bp/online-members"] .avatar-block img{margin:.5em}
 
bp-members/sass/blocks/active-members.scss DELETED
@@ -1,12 +0,0 @@
1
- // BP Who's online widget
2
- [data-type="bp/active-members"] {
3
-
4
- .avatar-block {
5
- display: flex;
6
- flex-flow: row wrap;
7
-
8
- img {
9
- margin: 0.5em;
10
- }
11
- }
12
- }
 
 
 
 
 
 
 
 
 
 
 
 
bp-members/sass/blocks/{online-members.scss → member-avatar-blocks.scss} RENAMED
@@ -1,4 +1,5 @@
1
- // BP Who's online widget
 
2
  [data-type="bp/online-members"] {
3
 
4
  .avatar-block {
1
+ // BP Who's online & active members blocks.
2
+ [data-type="bp/active-members"],
3
  [data-type="bp/online-members"] {
4
 
5
  .avatar-block {
class-buddypress.php CHANGED
@@ -303,7 +303,7 @@ class BuddyPress {
303
 
304
  /** Versions **********************************************************/
305
 
306
- $this->version = '9.0.0-RC1';
307
  $this->db_version = 12850;
308
 
309
  /** Loading ***********************************************************/
303
 
304
  /** Versions **********************************************************/
305
 
306
+ $this->version = '9.0.0';
307
  $this->db_version = 12850;
308
 
309
  /** Loading ***********************************************************/
readme.txt CHANGED
@@ -5,8 +5,8 @@ License: GPLv2 or later
5
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
6
  Requires at least: 4.9
7
  Requires PHP: 5.6
8
- Tested up to: 5.7
9
- Stable tag: 8.0.0
10
 
11
  BuddyPress helps site builders & developers add community features to their websites, with user profiles, activity streams, and more!
12
 
@@ -125,6 +125,9 @@ Try <a href="https://wordpress.org/plugins/bbpress/">bbPress</a>. It integrates
125
 
126
  == Upgrade Notice ==
127
 
 
 
 
128
  = 8.0.0 =
129
  See: https://codex.buddypress.org/releases/version-8-0-0/
130
 
@@ -190,6 +193,9 @@ See: https://codex.buddypress.org/releases/version-4-0-0/
190
 
191
  == Changelog ==
192
 
 
 
 
193
  = 8.0.0 =
194
  See: https://codex.buddypress.org/releases/version-8-0-0/
195
 
5
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
6
  Requires at least: 4.9
7
  Requires PHP: 5.6
8
+ Tested up to: 5.8
9
+ Stable tag: 9.0.0
10
 
11
  BuddyPress helps site builders & developers add community features to their websites, with user profiles, activity streams, and more!
12
 
125
 
126
  == Upgrade Notice ==
127
 
128
+ = 9.0.0 =
129
+ See: https://codex.buddypress.org/releases/version-9-0-0/
130
+
131
  = 8.0.0 =
132
  See: https://codex.buddypress.org/releases/version-8-0-0/
133
 
193
 
194
  == Changelog ==
195
 
196
+ = 9.0.0 =
197
+ See: https://codex.buddypress.org/releases/version-9-0-0/
198
+
199
  = 8.0.0 =
200
  See: https://codex.buddypress.org/releases/version-8-0-0/
201