BuddyPress - Version 5.0.0-RC2

Version Description

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

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

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

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

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

Download this release

Release Info

Developer imath
Plugin Icon 128x128 BuddyPress
Version 5.0.0-RC2
Comparing to
See all releases

Code changes from version 5.0.0-RC1 to 5.0.0-RC2

bp-activity/classes/class-bp-activity-component.php CHANGED
@@ -461,11 +461,11 @@ class BP_Activity_Component extends BP_Component {
461
* Init the BP REST API.
462
*
463
* @since 5.0.0
464
*/
465
- public function rest_api_init() {
466
- $controller = new BP_REST_Activity_Endpoint();
467
- $controller->register_routes();
468
-
469
- parent::rest_api_init();
470
}
471
}
461
* Init the BP REST API.
462
*
463
* @since 5.0.0
464
+ *
465
+ * @param array $controllers Optional. See BP_Component::rest_api_init() for
466
+ * description.
467
*/
468
+ public function rest_api_init( $controllers = array() ) {
469
+ parent::rest_api_init( array( 'BP_REST_Activity_Endpoint' ) );
470
}
471
}
bp-core/classes/class-bp-admin.php CHANGED
@@ -952,42 +952,34 @@ class BP_Admin {
952
953
<h3 class="wp-people-group"><?php printf( esc_html__( 'Contributors to BuddyPress %s', 'buddypress' ), self::display_version() ); ?></h3>
954
<p class="wp-credits-list">
955
- <a href="https://profiles.wordpress.org/xknown/">Alex Concha (xknown)</a>,
956
- <a href="https://profiles.wordpress.org/ankit-k-gupta/">Ankit K Gupta (ankit-k-gupta)</a>,
957
<a href="https://profiles.wordpress.org/boonebgorges/">Boone B Gorges (boonebgorges)</a>,
958
<a href="https://profiles.wordpress.org/sbrajesh/">Brajesh Singh (sbrajesh)</a>,
959
- <a href="https://profiles.wordpress.org/brianbws/">Brian Cruikshank (brianbws)</a>,
960
- <a href="https://profiles.wordpress.org/needle/">Christian Wach (needle)</a>,
961
- <a href="https://profiles.wordpress.org/cyberwani/">Dinesh Kesarwani (cyberwani)</a>,
962
- <a href="https://profiles.wordpress.org/dipesh.kakadipa/">dipeshkakadiya</a>,
963
- <a href="https://profiles.wordpress.org/drywallbmb/">drywallbmb</a>,
964
- <a href="https://profiles.wordpress.org/dullowl/">dullowl</a>,
965
- <a href="https://profiles.wordpress.org/eric01/">Eric (eric01)</a>,
966
- <a href="https://profiles.wordpress.org/garrett-eclipse/">Garrett Hyder (garrett-eclipse)</a>,
967
- <a href="https://profiles.wordpress.org/harshall/">Harshal Limaye (harshall)</a>,
968
- <a href="https://profiles.wordpress.org/hnla/">Hugo (hnla)</a>,
969
<a href="https://profiles.wordpress.org/johnjamesjacoby/">John James Jacoby (johnjamesjacoby)</a>,
970
- <a href="https://profiles.wordpress.org/marcella1981/">Marcella (marcella1981)</a>,
971
<a href="https://profiles.wordpress.org/imath/">Mathieu Viet (imath)</a>,
972
- <a href="https://profiles.wordpress.org/mercime/">mercime</a>,
973
- <a href="https://profiles.wordpress.org/MorgunovVit/">MorgunovVit</a>,
974
- <a href="https://profiles.wordpress.org/n0barcode/">n0barcode</a>,
975
- <a href="https://profiles.wordpress.org/pareshradadiya/">paresh.radadiya (pareshradadiya)</a>,
976
<a href="https://profiles.wordpress.org/DJPaul/">Paul Gibbs (DJPaul)</a>,
977
- <a href="https://profiles.wordpress.org/pooja1210/">Pooja N Muchandikar (pooja1210)</a>,
978
<a href="https://profiles.wordpress.org/r-a-y/">r-a-y</a>,
979
<a href="https://profiles.wordpress.org/espellcaste/">Renato Alves (espellcaste)</a>,
980
- <a href="https://profiles.wordpress.org/RT77/">RT77</a>,
981
- <a href="https://profiles.wordpress.org/cyclic/">Ryan Williams (cyclic)</a>,
982
- <a href="https://profiles.wordpress.org/elhardoum/">Samuel Elh (elhardoum)</a>,
983
- <a href="https://profiles.wordpress.org/shubh14/">shubh14</a>,
984
- <a href="https://profiles.wordpress.org/spdustin/">spdustin</a>,
985
- <a href="https://profiles.wordpress.org/suvikki/">suvikki</a>,
986
<a href="https://profiles.wordpress.org/netweb/">Stephen Edgar (netweb)</a>,
987
- <a href="https://profiles.wordpress.org/thejimmy/">thejimmy</a>,
988
- <a href="https://profiles.wordpress.org/vapvarun/">vapvarun</a>,
989
- <a href="https://profiles.wordpress.org/wbcomdesigns/">Wbcom Designs (wbcomdesigns)</a>,
990
- <a href="https://profiles.wordpress.org/yahil/">Yahil Madakiya (yahil)</a>
991
</p>
992
993
<h3 class="wp-people-group"><?php _e( 'With our thanks to these Open Source projects', 'buddypress' ); ?></h3>
952
953
<h3 class="wp-people-group"><?php printf( esc_html__( 'Contributors to BuddyPress %s', 'buddypress' ), self::display_version() ); ?></h3>
954
<p class="wp-credits-list">
955
+ <a href="https://github.com/baconbro">baconbro</a>,
956
<a href="https://profiles.wordpress.org/boonebgorges/">Boone B Gorges (boonebgorges)</a>,
957
+ <a href="https://profiles.wordpress.org/joncadams/">boop (joncadams)</a>,
958
<a href="https://profiles.wordpress.org/sbrajesh/">Brajesh Singh (sbrajesh)</a>,
959
+ <a href="https://profiles.wordpress.org/dcavins/">David Cavins (dcavins)</a>,
960
+ <a href="https://profiles.wordpress.org/ericlewis/">Eric Lewis (ericlewis)</a>,
961
+ <a href="https://profiles.wordpress.org/geminorum/">geminorum</a>,
962
+ <a href="https://profiles.wordpress.org/gingerbooch/">gingerbooch</a>,
963
+ <a href="https://profiles.wordpress.org/ivinco/">Ivinco</a>,
964
+ <a href="https://profiles.wordpress.org/whyisjake/">Jake Spurlock (whyisjake)</a>,
965
+ <a href="https://profiles.wordpress.org/JarretC/">Jarret (JarretC)</a>,
966
<a href="https://profiles.wordpress.org/johnjamesjacoby/">John James Jacoby (johnjamesjacoby)</a>,
967
+ <a href="https://profiles.wordpress.org/klawton/">klawton</a>,
968
+ <a href="https://profiles.wordpress.org/kristianngve/">Kristian Yngve (kristianngve)</a>,
969
+ <a href="https://profiles.wordpress.org/maniou/">Maniou</a>,
970
+ <a href="https://profiles.wordpress.org/netweblogic/">Marcus (netweblogic)</a>,
971
<a href="https://profiles.wordpress.org/imath/">Mathieu Viet (imath)</a>,
972
+ <a href="https://github.com/bhoot-biswas">Mithun Biswas</a>,
973
+ <a href="https://profiles.wordpress.org/modemlooper/">modemlooper</a>,
974
<a href="https://profiles.wordpress.org/DJPaul/">Paul Gibbs (DJPaul)</a>,
975
<a href="https://profiles.wordpress.org/r-a-y/">r-a-y</a>,
976
+ <a href="https://profiles.wordpress.org/razor90/">razor90</a>,
977
<a href="https://profiles.wordpress.org/espellcaste/">Renato Alves (espellcaste)</a>,
978
+ <a href="https://profiles.wordpress.org/slaFFik/">Slava Abakumov (slaFFik)</a>,
979
<a href="https://profiles.wordpress.org/netweb/">Stephen Edgar (netweb)</a>,
980
+ <a href="https://profiles.wordpress.org/truchot/">truchot</a>,
981
+ <a href="https://profiles.wordpress.org/venutius/">Venutius</a>,
982
+ <a href="https://profiles.wordpress.org/wegosi/">wegosi</a>,
983
</p>
984
985
<h3 class="wp-people-group"><?php _e( 'With our thanks to these Open Source projects', 'buddypress' ); ?></h3>
bp-core/classes/class-bp-component.php CHANGED
@@ -867,8 +867,35 @@ class BP_Component {
867
* Init the BP REST API.
868
*
869
* @since 5.0.0
870
- */
871
- public function rest_api_init() {
872
873
/**
874
* Fires in the rest_api_init method inside BP_Component.
867
* Init the BP REST API.
868
*
869
* @since 5.0.0
870
+ *
871
+ * @param array $controllers The list of BP REST controllers to load.
872
+ */
873
+ public function rest_api_init( $controllers = array() ) {
874
+ if ( is_array( $controllers ) && $controllers ) {
875
+ // Built-in controllers.
876
+ $_controllers = $controllers;
877
+
878
+ /**
879
+ * Use this filter to disable all or some REST API controllers
880
+ * for the component.
881
+ *
882
+ * This is a dynamic hook that is based on the component string ID.
883
+ *
884
+ * @since 5.0.0
885
+ *
886
+ * @param array $controllers The list of BP REST API controllers to load.
887
+ */
888
+ $controllers = (array) apply_filters( 'bp_' . $this->id . '_rest_api_controllers', $controllers );
889
+
890
+ foreach( $controllers as $controller ) {
891
+ if ( ! in_array( $controller, $_controllers, true ) ) {
892
+ continue;
893
+ }
894
+
895
+ $component_controller = new $controller;
896
+ $component_controller->register_routes();
897
+ }
898
+ }
899
900
/**
901
* Fires in the rest_api_init method inside BP_Component.
bp-groups/classes/class-bp-groups-component.php CHANGED
@@ -927,23 +927,17 @@ class BP_Groups_Component extends BP_Component {
927
* Init the BP REST API.
928
*
929
* @since 5.0.0
930
*/
931
- public function rest_api_init() {
932
- $controller = new BP_REST_Groups_Endpoint();
933
- $controller->register_routes();
934
-
935
- $controller = new BP_REST_Group_Membership_Endpoint();
936
- $controller->register_routes();
937
-
938
- $controller = new BP_REST_Group_Invites_Endpoint();
939
- $controller->register_routes();
940
-
941
- $controller = new BP_REST_Group_Membership_Request_Endpoint();
942
- $controller->register_routes();
943
-
944
- $controller = new BP_REST_Attachments_Group_Avatar_Endpoint();
945
- $controller->register_routes();
946
-
947
- parent::rest_api_init();
948
}
949
}
927
* Init the BP REST API.
928
*
929
* @since 5.0.0
930
+ *
931
+ * @param array $controllers Optional. See BP_Component::rest_api_init() for
932
+ * description.
933
*/
934
+ public function rest_api_init( $controllers = array() ) {
935
+ parent::rest_api_init( array(
936
+ 'BP_REST_Groups_Endpoint',
937
+ 'BP_REST_Group_Membership_Endpoint',
938
+ 'BP_REST_Group_Invites_Endpoint',
939
+ 'BP_REST_Group_Membership_Request_Endpoint',
940
+ 'BP_REST_Attachments_Group_Avatar_Endpoint',
941
+ ) );
942
}
943
}
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: 5.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: 5.0.0-RC2
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
@@ -461,21 +461,19 @@ class BP_Members_Component extends BP_Component {
461
* Init the BP REST API.
462
*
463
* @since 5.0.0
464
*/
465
- public function rest_api_init() {
466
- /**
467
- * As the Members component is always loaded,
468
- * let's register the Components endpoint here.
469
- */
470
- $controller = new BP_REST_Components_Endpoint();
471
- $controller->register_routes();
472
-
473
- $controller = new BP_REST_Members_Endpoint();
474
- $controller->register_routes();
475
-
476
- $controller = new BP_REST_Attachments_Member_Avatar_Endpoint();
477
- $controller->register_routes();
478
-
479
- parent::rest_api_init();
480
}
481
}
461
* Init the BP REST API.
462
*
463
* @since 5.0.0
464
+ *
465
+ * @param array $controllers Optional. See BP_Component::rest_api_init() for
466
+ * description.
467
*/
468
+ public function rest_api_init( $controllers = array() ) {
469
+ parent::rest_api_init( array(
470
+ /**
471
+ * As the Members component is always loaded,
472
+ * let's register the Components endpoint here.
473
+ */
474
+ 'BP_REST_Components_Endpoint',
475
+ 'BP_REST_Members_Endpoint',
476
+ 'BP_REST_Attachments_Member_Avatar_Endpoint',
477
+ ) );
478
}
479
}
bp-messages/classes/class-bp-messages-component.php CHANGED
@@ -438,11 +438,11 @@ class BP_Messages_Component extends BP_Component {
438
* Init the BP REST API.
439
*
440
* @since 5.0.0
441
*/
442
- public function rest_api_init() {
443
- $controller = new BP_REST_Messages_Endpoint();
444
- $controller->register_routes();
445
-
446
- parent::rest_api_init();
447
}
448
}
438
* Init the BP REST API.
439
*
440
* @since 5.0.0
441
+ *
442
+ * @param array $controllers Optional. See BP_Component::rest_api_init() for
443
+ * description.
444
*/
445
+ public function rest_api_init( $controllers = array() ) {
446
+ parent::rest_api_init( array( 'BP_REST_Messages_Endpoint' ) );
447
}
448
}
bp-notifications/classes/class-bp-notifications-component.php CHANGED
@@ -320,11 +320,11 @@ class BP_Notifications_Component extends BP_Component {
320
* Init the BP REST API.
321
*
322
* @since 5.0.0
323
*/
324
- public function rest_api_init() {
325
- $controller = new BP_REST_Notifications_Endpoint();
326
- $controller->register_routes();
327
-
328
- parent::rest_api_init();
329
}
330
}
320
* Init the BP REST API.
321
*
322
* @since 5.0.0
323
+ *
324
+ * @param array $controllers Optional. See BP_Component::rest_api_init() for
325
+ * description.
326
*/
327
+ public function rest_api_init( $controllers = array() ) {
328
+ parent::rest_api_init( array( 'BP_REST_Notifications_Endpoint' ) );
329
}
330
}
bp-xprofile/classes/class-bp-xprofile-component.php CHANGED
@@ -494,17 +494,15 @@ class BP_XProfile_Component extends BP_Component {
494
* Init the BP REST API.
495
*
496
* @since 5.0.0
497
*/
498
- public function rest_api_init() {
499
- $controller = new BP_REST_XProfile_Fields_Endpoint();
500
- $controller->register_routes();
501
-
502
- $controller = new BP_REST_XProfile_Field_Groups_Endpoint();
503
- $controller->register_routes();
504
-
505
- $controller = new BP_REST_XProfile_Data_Endpoint();
506
- $controller->register_routes();
507
-
508
- parent::rest_api_init();
509
}
510
}
494
* Init the BP REST API.
495
*
496
* @since 5.0.0
497
+ *
498
+ * @param array $controllers Optional. See BP_Component::rest_api_init() for
499
+ * description.
500
*/
501
+ public function rest_api_init( $controllers = array() ) {
502
+ parent::rest_api_init( array(
503
+ 'BP_REST_XProfile_Fields_Endpoint',
504
+ 'BP_REST_XProfile_Field_Groups_Endpoint',
505
+ 'BP_REST_XProfile_Data_Endpoint',
506
+ ) );
507
}
508
}
buddypress.pot CHANGED
@@ -2,9 +2,9 @@
2
# This file is distributed under the GPLv2 or later (license.txt).
3
msgid ""
4
msgstr ""
5
- "Project-Id-Version: BuddyPress 5.0.0-RC1\n"
6
"Report-Msgid-Bugs-To: https://buddypress.trac.wordpress.org\n"
7
- "POT-Creation-Date: 2019-09-16 22:41:25+00:00\n"
8
"MIME-Version: 1.0\n"
9
"Content-Type: text/plain; charset=utf-8\n"
10
"Content-Transfer-Encoding: 8bit\n"
@@ -3473,15 +3473,15 @@ msgstr ""
3473
msgid "Contributors to BuddyPress %s"
3474
msgstr ""
3475
3476
- #: bp-core/classes/class-bp-admin.php:993
3477
msgid "With our thanks to these Open Source projects"
3478
msgstr ""
3479
3480
- #: bp-core/classes/class-bp-admin.php:1007
3481
msgid "Contributor Emeriti"
3482
msgstr ""
3483
3484
- #: bp-core/classes/class-bp-admin.php:1012
3485
msgid "Project Founder"
3486
msgstr ""
3487
@@ -11651,7 +11651,7 @@ msgctxt "Colloquial alternative to \"learn about BuddyPress\""
11651
msgid "Hello, BuddyPress!"
11652
msgstr ""
11653
11654
- #: bp-core/classes/class-bp-admin.php:1048
11655
msgctxt "Email post type"
11656
msgid "Situations"
11657
msgstr ""
2
# This file is distributed under the GPLv2 or later (license.txt).
3
msgid ""
4
msgstr ""
5
+ "Project-Id-Version: BuddyPress 5.0.0-RC2\n"
6
"Report-Msgid-Bugs-To: https://buddypress.trac.wordpress.org\n"
7
+ "POT-Creation-Date: 2019-09-26 01:57:11+00:00\n"
8
"MIME-Version: 1.0\n"
9
"Content-Type: text/plain; charset=utf-8\n"
10
"Content-Transfer-Encoding: 8bit\n"
3473
msgid "Contributors to BuddyPress %s"
3474
msgstr ""
3475
3476
+ #: bp-core/classes/class-bp-admin.php:985
3477
msgid "With our thanks to these Open Source projects"
3478
msgstr ""
3479
3480
+ #: bp-core/classes/class-bp-admin.php:999
3481
msgid "Contributor Emeriti"
3482
msgstr ""
3483
3484
+ #: bp-core/classes/class-bp-admin.php:1004
3485
msgid "Project Founder"
3486
msgstr ""
3487
11651
msgid "Hello, BuddyPress!"
11652
msgstr ""
11653
11654
+ #: bp-core/classes/class-bp-admin.php:1040
11655
msgctxt "Email post type"
11656
msgid "Situations"
11657
msgstr ""
class-buddypress.php CHANGED
@@ -303,7 +303,7 @@ class BuddyPress {
303
304
/** Versions **********************************************************/
305
306
- $this->version = '5.0.0-RC1';
307
$this->db_version = 12385;
308
309
/** Loading ***********************************************************/
303
304
/** Versions **********************************************************/
305
306
+ $this->version = '5.0.0-RC2';
307
$this->db_version = 12385;
308
309
/** Loading ***********************************************************/