mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-28 08:24:30 +00:00
Dashboard: Persist location for community events
Fixes a bug where cached events & location data was not accessible because the cache key could not be regenerated without latitude and longitude information. Discovered and fixed during #wcber contributor day. Props soean, kubik-rubik, obenland. See #40702. git-svn-id: https://develop.svn.wordpress.org/trunk@40651 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1243,7 +1243,7 @@ function wp_print_community_events_templates() {
|
||||
<?php printf(
|
||||
/* translators: %s is a placeholder for the name of a city. */
|
||||
__( 'Attend an upcoming event near %s.' ),
|
||||
'<strong>{{ data.location }}</strong>'
|
||||
'<strong>{{ data.location.description }}</strong>'
|
||||
); ?>
|
||||
</script>
|
||||
|
||||
@@ -1280,7 +1280,7 @@ function wp_print_community_events_templates() {
|
||||
<?php printf(
|
||||
/* translators: 1: the city the user searched for, 2: meetup organization documentation URL */
|
||||
__( 'There aren’t any events scheduled near %1$s at the moment. Would you like to <a href="%2$s">organize one</a>?' ),
|
||||
'{{data.location}}',
|
||||
'{{ data.location.description }}',
|
||||
__( 'https://make.wordpress.org/community/handbook/meetup-organizer/welcome/' )
|
||||
); ?>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user