Ticket #9306: bp-diff-14.4-v-14.3.4.diff
| File bp-diff-14.4-v-14.3.4.diff, 17.3 KB (added by , 3 months ago) |
|---|
-
Users/cavinsd/Downloads/buddypress-14.
diff --git Users/cavinsd/Downloads/buddypress-14.3.4/bp-core/bp-core-functions.php Users/cavinsd/Downloads/buddypress-14.4.0/bp-core/bp-core-functions.php index 6da93ff6..561b6b49 100644
old new function bp_email_unsubscribe_handler() { 4577 4577 4578 4578 // Unsubscribe. 4579 4579 $meta_key = $emails[ $raw_email_type ]['unsubscribe']['meta_key']; 4580 bp_update_user_meta( $raw_user_id, $meta_key, 'no' ); 4580 4581 if ( 'no' !== bp_get_user_meta( $raw_user_id, $meta_key, true ) ) { 4582 bp_update_user_meta( $raw_user_id, $meta_key, 'no' ); 4583 } 4581 4584 4582 4585 $result_msg = $emails[ $raw_email_type ]['unsubscribe']['message']; 4583 $unsub_msg = __( 'You can change this or any other email notification preferences in your email settings.', 'buddypress' ); 4586 4587 if ( bp_is_active( 'settings' ) ) { 4588 $unsub_msg = __( 'You can change this or any other email notification preferences in your email settings.', 'buddypress' ); 4589 } else { 4590 $unsub_msg = ''; 4591 } 4584 4592 } 4585 4593 4586 4594 if ( $raw_user_id && $redirect_to ) { … … function bp_email_unsubscribe_handler() { 4592 4600 ); 4593 4601 4594 4602 // Template notices are only displayed on BP pages. 4595 bp_core_add_message( $message ); 4596 bp_core_redirect( bp_members_get_user_url( $raw_user_id ) ); 4603 if ( is_user_logged_in() ) { 4604 bp_core_add_message( $message ); 4605 bp_core_redirect( bp_members_get_user_url( $raw_user_id ) ); 4606 } else { 4607 wp_die( 4608 sprintf( '%1$s <a href="%2$s">%3$s</a>', esc_html( $result_msg ), esc_url( $redirect_to ), esc_html( $unsub_msg ) ), 4609 esc_html( $unsub_msg ), 4610 array( 4611 'link_url' => esc_url( home_url() ), 4612 'link_text' => esc_html__( 'Go to website\'s home page.', 'buddypress' ), 4613 ) 4614 ); 4615 } 4597 4616 4598 4617 exit; 4599 4618 } else { -
Users/cavinsd/Downloads/buddypress-14.
diff --git Users/cavinsd/Downloads/buddypress-14.3.4/bp-loader.php Users/cavinsd/Downloads/buddypress-14.4.0/bp-loader.php index 8b1da486..79f3d24a 100644
old new 21 21 * Domain Path: /bp-languages/ 22 22 * Requires PHP: 5.6 23 23 * Requires at least: 6.1 24 * Version: 14. 3.424 * Version: 14.4.0 25 25 */ 26 26 27 27 /** -
bp-members/classes/class-bp-rest-signup-endpoint.php
diff --git Users/cavinsd/Downloads/buddypress-14.3.4/bp-members/classes/class-bp-rest-signup-endpoint.php Users/cavinsd/Downloads/buddypress-14.4.0/bp-members/classes/class-bp-rest-signup-endpoint.php index aabca216..2fd778f9 100644
old new class BP_REST_Signup_Endpoint extends WP_REST_Controller { 706 706 $activation_key = $request->get_param( 'activation_key' ); 707 707 708 708 // Get the signup to activate thanks to the activation key. 709 $signup = $this->get_signup_object ( $activation_key);709 $signup = $this->get_signup_object_by_field( $activation_key, 'activation_key' ); 710 710 $activated = bp_core_activate_signup( $activation_key ); 711 711 712 712 if ( ! $activated ) { … … class BP_REST_Signup_Endpoint extends WP_REST_Controller { 761 761 // Get the activation key. 762 762 $activation_key = $request->get_param( 'activation_key' ); 763 763 764 // Block numeric IDs to prevent enumeration attacks. 765 if ( is_numeric( $activation_key ) ) { 766 return new WP_Error( 767 'bp_rest_invalid_activation_key_format', 768 __( 'Invalid activation key format.', 'buddypress' ), 769 array( 770 'status' => 400, 771 ) 772 ); 773 } 774 764 775 // Check the activation key is valid. 765 if ( $this->get_signup_object ( $activation_key) ) {776 if ( $this->get_signup_object_by_field( $activation_key, 'activation_key' ) ) { 766 777 $retval = true; 767 778 } 768 779 … … class BP_REST_Signup_Endpoint extends WP_REST_Controller { 988 999 return false; 989 1000 } 990 1001 1002 /** 1003 * Get signup object by specific field with security validation. 1004 * 1005 * @since 14.4.0 1006 * 1007 * @param int|string $identifier Signup identifier. 1008 * @param string $field Signup lookup field ('id', 'email', or 'activation_key'). 1009 * @return BP_Signup|false 1010 */ 1011 public function get_signup_object_by_field( $identifier, $field ) { 1012 $signup_args = array(); 1013 1014 if ( 'id' === $field && is_numeric( $identifier ) ) { 1015 $signup_args['include'] = array( intval( $identifier ) ); 1016 } else if ( 'email' === $field && is_email( $identifier ) ) { 1017 $signup_args['usersearch'] = $identifier; 1018 } else if ( 'activation_key' === $field ) { 1019 // The activation key is used when activating a signup. 1020 1021 // Block numeric IDs to prevent enumeration attacks. 1022 if ( is_numeric( $identifier ) ) { 1023 return false; 1024 } 1025 1026 // Basic validation: minimum length check. 1027 if ( empty( $identifier ) || strlen( $identifier ) < 10 ) { 1028 return false; 1029 } 1030 $signup_args['activation_key'] = $identifier; 1031 } 1032 1033 if ( ! empty( $signup_args ) ) { 1034 // Get signups. 1035 $signups = \BP_Signup::get( $signup_args ); 1036 1037 if ( ! empty( $signups['signups'] ) ) { 1038 return reset( $signups['signups'] ); 1039 } 1040 } 1041 1042 return false; 1043 } 1044 991 1045 /** 992 1046 * Check a user password for the REST API. 993 1047 * -
Users/cavinsd/Downloads/buddypress-14.
diff --git Users/cavinsd/Downloads/buddypress-14.3.4/buddypress.pot Users/cavinsd/Downloads/buddypress-14.4.0/buddypress.pot index f9029e5f..b69ef34e 100644
old new msgstr "" 9 9 "MIME-Version: 1.0\n" 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2025-0 3-20T18:57:16+00:00\n"12 "POT-Creation-Date: 2025-09-23T15:34:25+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.11.0\n" 15 15 "X-Domain: buddypress\n" … … msgstr "" 1473 1473 #: bp-activity/classes/class-bp-rest-activity-endpoint.php:1517 1474 1474 #: bp-blogs/classes/class-bp-rest-blogs-endpoint.php:817 1475 1475 #: bp-members/classes/class-bp-rest-members-endpoint.php:1254 1476 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1 2921476 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1346 1477 1477 msgid "Ensure result set includes specific IDs." 1478 1478 msgstr "" 1479 1479 1480 1480 #: bp-activity/classes/class-bp-rest-activity-endpoint.php:1526 1481 1481 #: bp-groups/classes/class-bp-rest-groups-endpoint.php:1434 1482 #: bp-members/classes/class-bp-rest-signup-endpoint.php:13 101482 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1364 1483 1483 #: bp-messages/classes/class-bp-rest-messages-endpoint.php:1244 1484 1484 #: bp-notifications/classes/class-bp-rest-notifications-endpoint.php:894 1485 1485 msgid "Order sort attribute ascending or descending." … … msgstr "" 4425 4425 msgid "You have been unsubscribed." 4426 4426 msgstr "" 4427 4427 4428 #: bp-core/bp-core-functions.php:458 34428 #: bp-core/bp-core-functions.php:4588 4429 4429 msgid "You can change this or any other email notification preferences in your email settings." 4430 4430 msgstr "" 4431 4431 4432 #: bp-core/bp-core-functions.php:4605 4432 #: bp-core/bp-core-functions.php:4612 4433 #: bp-core/bp-core-functions.php:4624 4433 4434 msgid "Go to website's home page." 4434 4435 msgstr "" 4435 4436 4436 #: bp-core/bp-core-functions.php:5 1964437 #: bp-core/bp-core-functions.php:5215 4437 4438 msgid "Discover BuddyPress Add-ons" 4438 4439 msgstr "" 4439 4440 4440 #: bp-core/bp-core-functions.php:5 1974441 #: bp-core/bp-core-functions.php:5216 4441 4442 msgid "Hello BuddyPress Add-ons!" 4442 4443 msgstr "" 4443 4444 4444 #: bp-core/bp-core-functions.php:5 1984445 #: bp-core/bp-core-functions.php:5217 4445 4446 msgid "Add-ons are features as Plugins or Blocks maintained by the BuddyPress development team & hosted on the WordPress.org plugins directory." 4446 4447 msgstr "" 4447 4448 4448 #: bp-core/bp-core-functions.php:5 1994449 #: bp-core/bp-core-functions.php:5218 4449 4450 msgid "Thanks to this new tab inside your Dashboard screen to add plugins, you’ll be able to find them faster and eventually contribute to beta features early to give the BuddyPress development team your feedbacks." 4450 4451 msgstr "" 4451 4452 4452 #: bp-core/bp-core-functions.php:52 124453 #: bp-core/bp-core-functions.php:52 324453 #: bp-core/bp-core-functions.php:5231 4454 #: bp-core/bp-core-functions.php:5251 4454 4455 msgid "Get The BP Classic Add-on" 4455 4456 msgstr "" 4456 4457 4457 #: bp-core/bp-core-functions.php:52 134458 #: bp-core/bp-core-functions.php:5232 4458 4459 msgid "Get ready for the brand-new BP Rewrites API!" 4459 4460 msgstr "" 4460 4461 4461 #: bp-core/bp-core-functions.php:52 144462 #: bp-core/bp-core-functions.php:5233 4462 4463 msgid "Our next major version (12.0.0) will introduce several large changes that could be incompatible with your site's configuration. To prevent problems, we've built the BP Classic Add-on, which you may want to proactively install if any of the following cases:" 4463 4464 msgstr "" 4464 4465 4465 #: bp-core/bp-core-functions.php:52 154466 #: bp-core/bp-core-functions.php:5234 4466 4467 msgid "Some of your BuddyPress plugins have not been updated lately." 4467 4468 msgstr "" 4468 4469 4469 #: bp-core/bp-core-functions.php:52 164470 #: bp-core/bp-core-functions.php:5235 4470 4471 msgid "BuddyPress 12.0.0 introduces the BP Rewrites API, which completely changes the way BuddyPress URLs are built and routed. This fundamental change requires most BuddyPress plugins to update how they deal with BuddyPress URLs. If your BuddyPress plugins have not been updated in the last few months, they are probably not ready for BuddyPress 12.0.0." 4471 4472 msgstr "" 4472 4473 4473 #: bp-core/bp-core-functions.php:52 174474 #: bp-core/bp-core-functions.php:5236 4474 4475 msgid "You are still using the BP Default theme." 4475 4476 msgstr "" 4476 4477 4477 #: bp-core/bp-core-functions.php:52 184478 #: bp-core/bp-core-functions.php:5237 4478 4479 msgid "You still use a BP Legacy Widget." 4479 4480 msgstr "" 4480 4481 4481 #: bp-core/bp-core-functions.php:52 194482 #: bp-core/bp-core-functions.php:5238 4482 4483 msgid "If any of the above items are true, we strongly advise you to install and activate the Classic Add-on before updating to BuddyPress 12.0.0." 4483 4484 msgstr "" 4484 4485 4485 #: bp-core/bp-core-functions.php:52 334486 #: bp-core/bp-core-functions.php:5252 4486 4487 msgid "Thank you for installing BuddyPress 12.0!" 4487 4488 msgstr "" 4488 4489 4489 #: bp-core/bp-core-functions.php:52 344490 #: bp-core/bp-core-functions.php:5253 4490 4491 msgid "BuddyPress 12.0 introduces major core changes, overhauling the way that BuddyPress builds and parses URLs." 4491 4492 msgstr "" 4492 4493 4493 #: bp-core/bp-core-functions.php:52 354494 #: bp-core/bp-core-functions.php:5254 4494 4495 msgid "If you find that your site is not working correctly with the new version, try installing the new BP Classic Add-on that adds backwards compatibility for plugins and themes that have not yet been updated to work with BuddyPress 12.0." 4495 4496 msgstr "" 4496 4497 … … msgid "Identifier for the signup. Can be a signup ID, an email address, or an ac 10257 10258 msgstr "" 10258 10259 10259 10260 #: bp-members/classes/class-bp-rest-signup-endpoint.php:295 10260 #: bp-members/classes/class-bp-rest-signup-endpoint.php:8 3410261 #: bp-members/classes/class-bp-rest-signup-endpoint.php:845 10261 10262 msgid "Invalid signup id." 10262 10263 msgstr "" 10263 10264 … … msgstr "" 10283 10284 msgid "Fail to activate the signup." 10284 10285 msgstr "" 10285 10286 10286 #: bp-members/classes/class-bp-rest-signup-endpoint.php:797 10287 #: bp-members/classes/class-bp-rest-signup-endpoint.php:768 10288 msgid "Invalid activation key format." 10289 msgstr "" 10290 10291 #: bp-members/classes/class-bp-rest-signup-endpoint.php:808 10287 10292 msgid "Your account has already been activated." 10288 10293 msgstr "" 10289 10294 10290 #: bp-members/classes/class-bp-rest-signup-endpoint.php:10 0510295 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1059 10291 10296 msgid "Passwords cannot be empty or contain the \"\\\" character." 10292 10297 msgstr "" 10293 10298 10294 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1 05610299 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1110 10295 10300 msgid "Password for the new user (never included)." 10296 10301 msgstr "" 10297 10302 10298 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1 06410303 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1118 10299 10304 msgid "The XProfile field data for the new user." 10300 10305 msgstr "" 10301 10306 10302 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1 07210307 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1126 10303 10308 msgid "The XProfile field ID." 10304 10309 msgstr "" 10305 10310 10306 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1 07910311 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1133 10307 10312 #: bp-xprofile/classes/class-bp-rest-xprofile-data-endpoint.php:73 10308 10313 msgid "The value(s) (comma separated list of values needs to be used in case of multiple values) for the field data." 10309 10314 msgstr "" 10310 10315 10311 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1 08710316 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1141 10312 10317 msgid "The visibility for the XProfile field." 10313 10318 msgstr "" 10314 10319 10315 #: bp-members/classes/class-bp-rest-signup-endpoint.php:11 4510320 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1199 10316 10321 msgid "A unique numeric ID for the signup." 10317 10322 msgstr "" 10318 10323 10319 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1 15110324 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1205 10320 10325 msgid "The username of the user the signup is for." 10321 10326 msgstr "" 10322 10327 10323 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1 15710328 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1211 10324 10329 msgid "The email for the user the signup is for." 10325 10330 msgstr "" 10326 10331 10327 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1 16310332 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1217 10328 10333 msgid "Activation key of the signup." 10329 10334 msgstr "" 10330 10335 10331 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1 16910336 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1223 10332 10337 msgid "The registered date for the user, in the site's timezone." 10333 10338 msgstr "" 10334 10339 10335 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1 17610340 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1230 10336 10341 msgid "The registered date for the user, as GMT." 10337 10342 msgstr "" 10338 10343 10339 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1 18310344 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1237 10340 10345 msgid "The date the activation email was sent to the user, in the site's timezone." 10341 10346 msgstr "" 10342 10347 10343 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1 19010348 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1244 10344 10349 msgid "The date the activation email was sent to the user, as GMT." 10345 10350 msgstr "" 10346 10351 10347 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1 19610352 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1250 10348 10353 msgid "The number of times the activation email was sent to the user." 10349 10354 msgstr "" 10350 10355 10351 #: bp-members/classes/class-bp-rest-signup-endpoint.php:12 0310356 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1257 10352 10357 msgid "The signup meta information" 10353 10358 msgstr "" 10354 10359 10355 #: bp-members/classes/class-bp-rest-signup-endpoint.php:12 1310360 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1267 10356 10361 msgid "The new user's full name. (Deprecated)" 10357 10362 msgstr "" 10358 10363 10359 #: bp-members/classes/class-bp-rest-signup-endpoint.php:12 2210364 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1276 10360 10365 msgid "Unique site name (slug) of the new user's child site." 10361 10366 msgstr "" 10362 10367 10363 #: bp-members/classes/class-bp-rest-signup-endpoint.php:12 2910368 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1283 10364 10369 msgid "Title of the new user's child site." 10365 10370 msgstr "" 10366 10371 10367 #: bp-members/classes/class-bp-rest-signup-endpoint.php:12 3610372 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1290 10368 10373 msgid "Search engine visibility of the new user's site." 10369 10374 msgstr "" 10370 10375 10371 #: bp-members/classes/class-bp-rest-signup-endpoint.php:12 4310376 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1297 10372 10377 msgid "Language to use for the new user's site." 10373 10378 msgstr "" 10374 10379 10375 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1 27610380 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1330 10376 10381 msgid "Total number of signups to return." 10377 10382 msgstr "" 10378 10383 10379 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1 28410384 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1338 10380 10385 msgid "Offset the result set by a specific number of items." 10381 10386 msgstr "" 10382 10387 10383 #: bp-members/classes/class-bp-rest-signup-endpoint.php:13 0110388 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1355 10384 10389 msgid "Order by a specific parameter (default: signup_id)." 10385 10390 msgstr "" 10386 10391 10387 #: bp-members/classes/class-bp-rest-signup-endpoint.php:13 1910392 #: bp-members/classes/class-bp-rest-signup-endpoint.php:1373 10388 10393 msgid "Specific user login to return." 10389 10394 msgstr "" 10390 10395 -
Users/cavinsd/Downloads/buddypress-14.
diff --git Users/cavinsd/Downloads/buddypress-14.3.4/class-buddypress.php Users/cavinsd/Downloads/buddypress-14.4.0/class-buddypress.php index b9f9357f..6c77545c 100644
old new class BuddyPress { 460 460 461 461 /** Versions */ 462 462 463 $this->version = '14. 3.4';463 $this->version = '14.4.0'; 464 464 $this->db_version = 13906; 465 465 466 466 /** Loading */ -
Users/cavinsd/Downloads/buddypress-14.
diff --git Users/cavinsd/Downloads/buddypress-14.3.4/readme.txt Users/cavinsd/Downloads/buddypress-14.4.0/readme.txt index 66d5971b..7f72c692 100644
old new License: GNU General Public License v2 or later 6 6 License URI: https://www.gnu.org/licenses/gpl-2.0.html 7 7 Requires PHP: 5.6 8 8 Requires at least: 6.1 9 Tested up to: 6. 710 Stable tag: 14. 3.49 Tested up to: 6.8 10 Stable tag: 14.4.0 11 11 12 12 Get together safely, in your own way, in WordPress. 13 13 … … Try <a href="https://wordpress.org/plugins/bbpress/">bbPress</a>. It integrates 130 130 131 131 == Upgrade Notice == 132 132 133 = 14.4.0= 134 See: https://codex.buddypress.org/releases/version-14-4-0/ 135 133 136 = 14.3.4 = 134 137 See: https://codex.buddypress.org/releases/version-14-3-4/ 135 138 … … See: https://codex.buddypress.org/releases/version-10-0-0/ 214 217 215 218 == Changelog == 216 219 220 = 14.4.0 = 221 See: https://codex.buddypress.org/releases/version-14-4-0/ 222 217 223 = 14.3.4 = 218 224 See: https://codex.buddypress.org/releases/version-14-3-4/ 219 225