Making WordPress.org

Changeset 6813


Ignore:
Timestamp:
03/01/2018 06:59:21 PM (8 years ago)
Author:
iandunn
Message:

Official WordPress Events: Trim commas and whitespace from location.

Previously locations missing a city would appear like, , Isle of Man instead of just Isle of Man.

File:
1 edited

Legend:

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

    r6811 r6813  
    351351                                                                empty( $location_parts['country_name'] ) ? '' : ', ' . $location_parts['country_name']
    352352                                                        );
     353                                                        $location         = trim( $location, ", \t\n\r\0\x0B" );
    353354                                                }
    354355
Note: See TracChangeset for help on using the changeset viewer.