Allow empty address field in venue map

This commit is contained in:
Brian Miyaji
2016-09-25 20:51:16 +10:00
parent ba122151b7
commit 03539703a2

View File

@@ -19,6 +19,8 @@ $longitude = sp_array_value( $meta, 'sp_longitude', null );
$zoom = get_option( 'sportspress_map_zoom', 15 );
$maptype = get_option( 'sportspress_map_type', 'roadmap' );
$maptype = strtolower( $maptype );
if ( '' === $address ) $address = '+';
if ( 'satellite' !== $maptype ) $maptype = 'roadmap';
if ( $latitude != null && $longitude != null ):