Index: /sites/trunk/api.wordpress.org/public_html/events/1.0/index.php
===================================================================
--- /sites/trunk/api.wordpress.org/public_html/events/1.0/index.php (revision 9641)
+++ /sites/trunk/api.wordpress.org/public_html/events/1.0/index.php (revision 9642)
@@ -162,4 +162,9 @@
if ( ! empty( $location['country'] ) ) {
$event_args['country'] = $location['country'];
+
+ // If no specific location was found, but a country was, restrict to events from this country.
+ if ( empty( $event_args['nearby'] ) ) {
+ $event_args['restrict_by_country'] = true;
+ }
}