Making WordPress.org

Changeset 14646


Ignore:
Timestamp:
01/30/2026 08:57:47 AM (8 months ago)
Author:
dd32
Message:

Official Events: Use the correct object syntax in [14645].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/official-wordpress-events/official-wordpress-events.php

    r14645 r14646  
    390390                                if ( $event['location'] != 'online' && ! str_contains( $event['location'], ',' ) ) {
    391391                                        $geocoded_location = implode(
    392                                                 ',',
     392                                                ', ',
    393393                                                array_filter(
    394394                                                        array(
    395                                                                 $wordcamp['_venue_city'] ?: $event['location'],
    396                                                                 $wordcamp['_venue_country_name'] ?: $wordcamp['_host_country_name'],
     395                                                                $wordcamp->{'_venue_city'} ?: $event['location'],
     396                                                                $wordcamp->{'_venue_country_name'} ?: $wordcamp->{'_host_country_name'},
    397397                                                        )
    398398                                                )
    399399                                        );
    400400
    401                                         if ( $geocoded_location ) {
     401                                        if ( str_contains( $geocoded_location, ',' ) ) {
     402                                                $this->log( "Using $geocoded_location instead of {$event['location']} for WordCamp {$wordcamp->id}" );
     403
    402404                                                $event['location'] = $geocoded_location;
    403405                                        }
Note: See TracChangeset for help on using the changeset viewer.