diff --git a/src/wp-admin/includes/ajax-actions.php b/src/wp-admin/includes/ajax-actions.php index 029e20e62b..a2e829bf65 100644 --- a/src/wp-admin/includes/ajax-actions.php +++ b/src/wp-admin/includes/ajax-actions.php @@ -319,9 +319,6 @@ function wp_ajax_get_community_events() { ) ); } else { if ( isset( $events['location'] ) ) { - // Send only the data that the client will use. - $events['location'] = $events['location']['description']; - // Store the location network-wide, so the user doesn't have to set it on each site. update_user_option( $user_id, 'community-events-location', $events['location'], true ); } diff --git a/src/wp-admin/includes/dashboard.php b/src/wp-admin/includes/dashboard.php index b25426e753..0f0058127f 100644 --- a/src/wp-admin/includes/dashboard.php +++ b/src/wp-admin/includes/dashboard.php @@ -1243,7 +1243,7 @@ function wp_print_community_events_templates() { {{ data.location }}' + '{{ data.location.description }}' ); ?> @@ -1280,7 +1280,7 @@ function wp_print_community_events_templates() { organize one?' ), - '{{data.location}}', + '{{ data.location.description }}', __( 'https://make.wordpress.org/community/handbook/meetup-organizer/welcome/' ) ); ?>