Plugin Directory

Changeset 3335397


Ignore:
Timestamp:
07/28/2025 01:31:35 PM (7 months ago)
Author:
needle
Message:

Release 0.5.4

Location:
bp-groups-civicrm-sync/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • bp-groups-civicrm-sync/trunk/bp-groups-civicrm-sync.php

    r3263514 r3335397  
    55 * Plugin Name:       BP Groups CiviCRM Sync
    66 * Description:       Enables two-way synchronisation between BuddyPress Groups and CiviCRM Groups.
    7  * Version:           0.5.3
     7 * Version:           0.5.4
    88 * Plugin URI:        https://github.com/christianwach/bp-groups-civicrm-sync
    99 * GitHub Plugin URI: https://github.com/christianwach/bp-groups-civicrm-sync
     
    3636
    3737// Set our version here.
    38 define( 'BP_GROUPS_CIVICRM_SYNC_VERSION', '0.5.3' );
     38define( 'BP_GROUPS_CIVICRM_SYNC_VERSION', '0.5.4' );
    3939
    4040// Store reference to this file.
  • bp-groups-civicrm-sync/trunk/includes/civicrm/class-civicrm-group-contact.php

    r3263514 r3335397  
    325325            // Remove this Group membership.
    326326            $member_group_contact = $this->membership_delete( $member_group_params );
     327            if ( is_bool( $member_group_contact ) ) {
     328                $member_group_contact = [];
     329            }
    327330
    328331        }
     
    383386            // Remove this Group membership.
    384387            $acl_group_contact = $this->membership_delete( $acl_group_params );
     388            if ( is_bool( $acl_group_contact ) ) {
     389                $acl_group_contact = [];
     390            }
    385391
    386392        }
     
    580586                'contact_id' => $contact['contact_id'],
    581587            ];
    582             $group_contact = $this->membership_delete( $group_params );
     588            $this->membership_delete( $group_params );
    583589        }
    584590
  • bp-groups-civicrm-sync/trunk/languages/bp-groups-civicrm-sync.pot

    r3263514 r3335397  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: BP Groups CiviCRM Sync 0.5.3a\n"
     5"Project-Id-Version: BP Groups CiviCRM Sync 0.5.4a\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/bp-groups-civicrm-sync\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2025-03-28T12:56:32+00:00\n"
     12"POT-Creation-Date: 2025-07-28T13:30:26+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    14 "X-Generator: WP-CLI 2.11.0\n"
     14"X-Generator: WP-CLI 2.12.0\n"
    1515"X-Domain: bp-groups-civicrm-sync\n"
    1616
     
    7474#. translators: 1: The opening anchor tag, 2: The closing anchor tag
    7575#: assets/templates/wordpress/settings/metaboxes/metabox-settings-general.php:25
     76#, php-format
    7677msgid "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."
    7778msgstr ""
     
    7980#. translators: 1: The opening strong tag, 2: The closing strong tag
    8081#: assets/templates/wordpress/settings/metaboxes/metabox-settings-general.php:37
     82#, php-format
    8183msgid "%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."
    8284msgstr ""
     
    264266#. translators: 1: The ID of the Contact, 2: The ID of the User.
    265267#: includes/buddypress/class-buddypress.php:354
     268#, php-format
    266269msgid "Failed to sync User (Contact ID: %1$d) (User ID: %2$d)"
    267270msgstr ""
     
    269272#. translators: 1: The ID of the Contact, 2: The ID of the User.
    270273#: includes/buddypress/class-buddypress.php:363
     274#, php-format
    271275msgid "Added User to Member Group (Contact ID: %1$d) (User ID: %2$d)"
    272276msgstr ""
     
    274278#. translators: 1: The ID of the Contact, 2: The ID of the User.
    275279#: includes/buddypress/class-buddypress.php:372
     280#, php-format
    276281msgid "Added User to ACL Group (Contact ID: %1$d) (User ID: %2$d)"
    277282msgstr ""
     
    279284#. translators: 1: The ID of the Contact, 2: The ID of the User.
    280285#: includes/buddypress/class-buddypress.php:411
     286#, php-format
    281287msgid "Removed Contact (Contact ID: %1$d) (User ID: %2$d)"
    282288msgstr ""
     
    284290#. translators: 1: The ID of the Contact, 2: The ID of the User.
    285291#: includes/buddypress/class-buddypress.php:416
     292#, php-format
    286293msgid "Failed to remove Contact (Contact ID: %1$d) (User ID: %2$d)"
    287294msgstr ""
     
    290297#: includes/civicrm/class-civicrm-acl.php:142
    291298#: includes/civicrm/class-civicrm-acl.php:319
     299#, php-format
    292300msgid "Edit Contacts in Group: %s"
    293301msgstr ""
     
    319327#. translators: %d: The numeric ID of the WordPress User
    320328#: includes/civicrm/class-civicrm-contact.php:204
     329#, php-format
    321330msgid "No CiviCRM Contact ID could be found for WordPress User ID %d"
    322331msgstr ""
     
    329338#. translators: 1: The opening strong tag, 2: The closing strong tag
    330339#: includes/civicrm/class-civicrm-group-admin.php:175
     340#, php-format
    331341msgid "%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."
    332342msgstr ""
     
    343353#. translators: 1: The opening strong tag, 2: The closing strong tag
    344354#: includes/civicrm/class-civicrm-group-admin.php:392
     355#, php-format
    345356msgid "%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."
    346357msgstr ""
     
    351362
    352363#: includes/civicrm/class-civicrm-group-contact.php:122
    353 #: includes/civicrm/class-civicrm-group-contact.php:844
    354 #: includes/civicrm/class-civicrm-group-contact.php:898
     364#: includes/civicrm/class-civicrm-group-contact.php:850
     365#: includes/civicrm/class-civicrm-group-contact.php:904
    355366#: includes/civicrm/class-civicrm-group.php:367
    356367#: includes/civicrm/class-civicrm-group.php:430
     
    385396#. translators: %s: The name of the BuddyPress Group
    386397#: includes/civicrm/class-civicrm-group.php:1105
     398#, php-format
    387399msgid "%s: Administrator"
    388400msgstr ""
     
    394406#. translators: 1: The ID of the BuddyPress Group, 2: The ID of the Contact, 3: The ID of the User.
    395407#: includes/civicrm/class-civicrm.php:467
     408#, php-format
    396409msgid "Failed to sync User to BuddyPress Group (ID: %1$d) (Contact ID: %2$d) (User ID: %3$d)"
    397410msgstr ""
     
    399412#. translators: 1: The ID of the BuddyPress Group, 2: The ID of the Contact, 3: The ID of the User.
    400413#: includes/civicrm/class-civicrm.php:478
     414#, php-format
    401415msgid "Added User to BuddyPress Group (ID: %1$d) (Contact ID: %2$d) (User ID: %3$d)"
    402416msgstr ""
     
    404418#. translators: 1: The ID of the Contact, 2: The ID of the User.
    405419#: includes/civicrm/class-civicrm.php:534
     420#, php-format
    406421msgid "Removed User (Contact ID: %1$d) (User ID: %2$d)"
    407422msgstr ""
     
    409424#. translators: 1: The ID of the Contact, 2: The ID of the User.
    410425#: includes/civicrm/class-civicrm.php:539
     426#, php-format
    411427msgid "Failed to remove User (Contact ID: %1$d) (User ID: %2$d)"
    412428msgstr ""
  • bp-groups-civicrm-sync/trunk/readme.txt

    r3263514 r3335397  
    55Requires at least: 4.9
    66Tested up to: 6.8
    7 Stable tag: 0.5.3
     7Stable tag: 0.5.4
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
     
    4444
    4545== Changelog ==
     46
     47= 0.5.4 =
     48
     49* Fixes PHP warning
    4650
    4751= 0.5.3 =
Note: See TracChangeset for help on using the changeset viewer.