Ticket #40702: 40702.ajax-fix.diff
File 40702.ajax-fix.diff, 1.5 KB (added by , 7 years ago) |
---|
-
src/wp-admin/includes/ajax-actions.php
319 319 ) ); 320 320 } else { 321 321 if ( isset( $events['location'] ) ) { 322 // Send only the data that the client will use.323 $events['location'] = $events['location']['description'];324 325 322 // Store the location network-wide, so the user doesn't have to set it on each site. 326 323 update_user_option( $user_id, 'community-events-location', $events['location'], true ); 327 324 } -
src/wp-admin/includes/dashboard.php
1243 1243 <?php printf( 1244 1244 /* translators: %s is a placeholder for the name of a city. */ 1245 1245 __( 'Attend an upcoming event near %s.' ), 1246 '<strong>{{ data.location }}</strong>'1246 '<strong>{{ data.location.description }}</strong>' 1247 1247 ); ?> 1248 1248 </script> 1249 1249 … … 1280 1280 <?php printf( 1281 1281 /* translators: 1: the city the user searched for, 2: meetup organization documentation URL */ 1282 1282 __( 'There aren’t any events scheduled near %1$s at the moment. Would you like to <a href="%2$s">organize one</a>?' ), 1283 '{{ data.location}}',1283 '{{ data.location.description }}', 1284 1284 __( 'https://make.wordpress.org/community/handbook/meetup-organizer/welcome/' ) 1285 1285 ); ?> 1286 1286 </li>