Making WordPress.org


Ignore:
Timestamp:
07/17/2024 11:19:52 AM (23 months ago)
Author:
psrpinto
Message:

Translate: Sync "Translation Events" from GitHub

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-translation-events/includes/attendee/attendee-repository.php

    r13753 r13906  
    1616        $wpdb->query(
    1717            $wpdb->prepare(
    18                 "insert ignore into {$gp_table_prefix}event_attendees (event_id, user_id, is_host, is_new_contributor) values (%d, %d, %d, %d)",
     18                "insert ignore into {$gp_table_prefix}event_attendees (event_id, user_id, is_host, is_new_contributor, is_remote) values (%d, %d, %d, %d, %d)",
    1919                array(
    2020                    'event_id'           => $attendee->event_id(),
     
    2222                    'is_host'            => $attendee->is_host() ? 1 : 0,
    2323                    'is_new_contributor' => $attendee->is_new_contributor() ? 1 : 0,
     24                    'is_remote'          => $attendee->is_remote() ? 1 : 0,
    2425                ),
    2526            ),
     
    4344        $wpdb->update(
    4445            "{$gp_table_prefix}event_attendees",
    45             array( 'is_host' => $attendee->is_host() ? 1 : 0 ),
     46            array(
     47                'is_host'   => $attendee->is_host() ? 1 : 0,
     48                'is_remote' => $attendee->is_remote() ? 1 : 0,
     49            ),
    4650            array(
    4751                'event_id' => $attendee->event_id(),
     
    132136                        is_host,
    133137                        is_new_contributor,
     138                        is_remote,
    134139                        (
    135140                            select group_concat( distinct locale )
     
    159164                    '1' === $row->is_new_contributor,
    160165                    null === $row->locales ? array() : explode( ',', $row->locales ),
     166                    '1' === $row->is_remote,
    161167                );
    162168            },
     
    184190                    is_host,
    185191                    is_new_contributor,
     192                    is_remote,
    186193                    (
    187194                        select group_concat( distinct locale )
     
    209216                    '1' === $row->is_new_contributor,
    210217                    null === $row->locales ? array() : explode( ',', $row->locales ),
     218                    '1' === $row->is_remote,
    211219                );
    212220            },
Note: See TracChangeset for help on using the changeset viewer.