Changeset 3335397
- Timestamp:
- 07/28/2025 01:31:35 PM (7 months ago)
- Location:
- bp-groups-civicrm-sync/trunk
- Files:
-
- 4 edited
-
bp-groups-civicrm-sync.php (modified) (2 diffs)
-
includes/civicrm/class-civicrm-group-contact.php (modified) (3 diffs)
-
languages/bp-groups-civicrm-sync.pot (modified) (19 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bp-groups-civicrm-sync/trunk/bp-groups-civicrm-sync.php
r3263514 r3335397 5 5 * Plugin Name: BP Groups CiviCRM Sync 6 6 * Description: Enables two-way synchronisation between BuddyPress Groups and CiviCRM Groups. 7 * Version: 0.5. 37 * Version: 0.5.4 8 8 * Plugin URI: https://github.com/christianwach/bp-groups-civicrm-sync 9 9 * GitHub Plugin URI: https://github.com/christianwach/bp-groups-civicrm-sync … … 36 36 37 37 // Set our version here. 38 define( 'BP_GROUPS_CIVICRM_SYNC_VERSION', '0.5. 3' );38 define( 'BP_GROUPS_CIVICRM_SYNC_VERSION', '0.5.4' ); 39 39 40 40 // Store reference to this file. -
bp-groups-civicrm-sync/trunk/includes/civicrm/class-civicrm-group-contact.php
r3263514 r3335397 325 325 // Remove this Group membership. 326 326 $member_group_contact = $this->membership_delete( $member_group_params ); 327 if ( is_bool( $member_group_contact ) ) { 328 $member_group_contact = []; 329 } 327 330 328 331 } … … 383 386 // Remove this Group membership. 384 387 $acl_group_contact = $this->membership_delete( $acl_group_params ); 388 if ( is_bool( $acl_group_contact ) ) { 389 $acl_group_contact = []; 390 } 385 391 386 392 } … … 580 586 'contact_id' => $contact['contact_id'], 581 587 ]; 582 $ group_contact = $this->membership_delete( $group_params );588 $this->membership_delete( $group_params ); 583 589 } 584 590 -
bp-groups-civicrm-sync/trunk/languages/bp-groups-civicrm-sync.pot
r3263514 r3335397 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: BP Groups CiviCRM Sync 0.5. 3a\n"5 "Project-Id-Version: BP Groups CiviCRM Sync 0.5.4a\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/bp-groups-civicrm-sync\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\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-28T12:56:32+00:00\n"12 "POT-Creation-Date: 2025-07-28T13:30:26+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 "X-Generator: WP-CLI 2.1 1.0\n"14 "X-Generator: WP-CLI 2.12.0\n" 15 15 "X-Domain: bp-groups-civicrm-sync\n" 16 16 … … 74 74 #. translators: 1: The opening anchor tag, 2: The closing anchor tag 75 75 #: assets/templates/wordpress/settings/metaboxes/metabox-settings-general.php:25 76 #, php-format 76 77 msgid "Depending on your use case, select whether you want your CiviCRM Groups to be assigned to a \"BuddyPress Groups\" Parent Group in CiviCRM. If you do, then CiviCRM Groups will be nested under - and inherit permissions from - the \"BuddyPress Groups\" Parent Group. Please refer to %1$sthe documentation%2$s to decide if this is useful to you or not." 77 78 msgstr "" … … 79 80 #. translators: 1: The opening strong tag, 2: The closing strong tag 80 81 #: assets/templates/wordpress/settings/metaboxes/metabox-settings-general.php:37 82 #, php-format 81 83 msgid "%1$sPlease Note:%2$s it is strongly recommended to decide how you want this set before you sync Groups. You can change this setting later, but it will require some heavy processing if you have a large number of Groups." 82 84 msgstr "" … … 264 266 #. translators: 1: The ID of the Contact, 2: The ID of the User. 265 267 #: includes/buddypress/class-buddypress.php:354 268 #, php-format 266 269 msgid "Failed to sync User (Contact ID: %1$d) (User ID: %2$d)" 267 270 msgstr "" … … 269 272 #. translators: 1: The ID of the Contact, 2: The ID of the User. 270 273 #: includes/buddypress/class-buddypress.php:363 274 #, php-format 271 275 msgid "Added User to Member Group (Contact ID: %1$d) (User ID: %2$d)" 272 276 msgstr "" … … 274 278 #. translators: 1: The ID of the Contact, 2: The ID of the User. 275 279 #: includes/buddypress/class-buddypress.php:372 280 #, php-format 276 281 msgid "Added User to ACL Group (Contact ID: %1$d) (User ID: %2$d)" 277 282 msgstr "" … … 279 284 #. translators: 1: The ID of the Contact, 2: The ID of the User. 280 285 #: includes/buddypress/class-buddypress.php:411 286 #, php-format 281 287 msgid "Removed Contact (Contact ID: %1$d) (User ID: %2$d)" 282 288 msgstr "" … … 284 290 #. translators: 1: The ID of the Contact, 2: The ID of the User. 285 291 #: includes/buddypress/class-buddypress.php:416 292 #, php-format 286 293 msgid "Failed to remove Contact (Contact ID: %1$d) (User ID: %2$d)" 287 294 msgstr "" … … 290 297 #: includes/civicrm/class-civicrm-acl.php:142 291 298 #: includes/civicrm/class-civicrm-acl.php:319 299 #, php-format 292 300 msgid "Edit Contacts in Group: %s" 293 301 msgstr "" … … 319 327 #. translators: %d: The numeric ID of the WordPress User 320 328 #: includes/civicrm/class-civicrm-contact.php:204 329 #, php-format 321 330 msgid "No CiviCRM Contact ID could be found for WordPress User ID %d" 322 331 msgstr "" … … 329 338 #. translators: 1: The opening strong tag, 2: The closing strong tag 330 339 #: includes/civicrm/class-civicrm-group-admin.php:175 340 #, php-format 331 341 msgid "%1$sNOTE:%2$s If you are going to create a BuddyPress Group, you only need to fill out the \"Group Title\" field (and optionally the \"Group Description\" field). The Group Type will be automatically set to \"Access Control\" and (if a container Group has been specified) the Parent Group will be automatically assigned to the container Group." 332 342 msgstr "" … … 343 353 #. translators: 1: The opening strong tag, 2: The closing strong tag 344 354 #: includes/civicrm/class-civicrm-group-admin.php:392 355 #, php-format 345 356 msgid "%1$sWARNING:%2$s You may wish to make sure your CiviCRM Contacts exist as WordPress Users before creating this Group. CiviCRM Contacts that do not have a corresponding WordPress User will have one created for them. You will need to review roles for the new WordPress Users when this process is complete." 346 357 msgstr "" … … 351 362 352 363 #: includes/civicrm/class-civicrm-group-contact.php:122 353 #: includes/civicrm/class-civicrm-group-contact.php:8 44354 #: includes/civicrm/class-civicrm-group-contact.php: 898364 #: includes/civicrm/class-civicrm-group-contact.php:850 365 #: includes/civicrm/class-civicrm-group-contact.php:904 355 366 #: includes/civicrm/class-civicrm-group.php:367 356 367 #: includes/civicrm/class-civicrm-group.php:430 … … 385 396 #. translators: %s: The name of the BuddyPress Group 386 397 #: includes/civicrm/class-civicrm-group.php:1105 398 #, php-format 387 399 msgid "%s: Administrator" 388 400 msgstr "" … … 394 406 #. translators: 1: The ID of the BuddyPress Group, 2: The ID of the Contact, 3: The ID of the User. 395 407 #: includes/civicrm/class-civicrm.php:467 408 #, php-format 396 409 msgid "Failed to sync User to BuddyPress Group (ID: %1$d) (Contact ID: %2$d) (User ID: %3$d)" 397 410 msgstr "" … … 399 412 #. translators: 1: The ID of the BuddyPress Group, 2: The ID of the Contact, 3: The ID of the User. 400 413 #: includes/civicrm/class-civicrm.php:478 414 #, php-format 401 415 msgid "Added User to BuddyPress Group (ID: %1$d) (Contact ID: %2$d) (User ID: %3$d)" 402 416 msgstr "" … … 404 418 #. translators: 1: The ID of the Contact, 2: The ID of the User. 405 419 #: includes/civicrm/class-civicrm.php:534 420 #, php-format 406 421 msgid "Removed User (Contact ID: %1$d) (User ID: %2$d)" 407 422 msgstr "" … … 409 424 #. translators: 1: The ID of the Contact, 2: The ID of the User. 410 425 #: includes/civicrm/class-civicrm.php:539 426 #, php-format 411 427 msgid "Failed to remove User (Contact ID: %1$d) (User ID: %2$d)" 412 428 msgstr "" -
bp-groups-civicrm-sync/trunk/readme.txt
r3263514 r3335397 5 5 Requires at least: 4.9 6 6 Tested up to: 6.8 7 Stable tag: 0.5. 37 Stable tag: 0.5.4 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html … … 44 44 45 45 == Changelog == 46 47 = 0.5.4 = 48 49 * Fixes PHP warning 46 50 47 51 = 0.5.3 =
Note: See TracChangeset
for help on using the changeset viewer.