Allow empty address field in venue map
This commit is contained in:
@@ -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 ):
|
||||
|
||||
Reference in New Issue
Block a user