Make WordPress Core

Ticket #40702: 40702.ajax-fix.diff

File 40702.ajax-fix.diff, 1.5 KB (added by obenland, 7 years ago)
  • src/wp-admin/includes/ajax-actions.php

     
    319319                ) );
    320320        } else {
    321321                if ( isset( $events['location'] ) ) {
    322                         // Send only the data that the client will use.
    323                         $events['location'] = $events['location']['description'];
    324 
    325322                        // Store the location network-wide, so the user doesn't have to set it on each site.
    326323                        update_user_option( $user_id, 'community-events-location', $events['location'], true );
    327324                }
  • src/wp-admin/includes/dashboard.php

     
    12431243                <?php printf(
    12441244                        /* translators: %s is a placeholder for the name of a city. */
    12451245                        __( 'Attend an upcoming event near %s.' ),
    1246                         '<strong>{{ data.location }}</strong>'
     1246                        '<strong>{{ data.location.description }}</strong>'
    12471247                ); ?>
    12481248        </script>
    12491249
     
    12801280                        <?php printf(
    12811281                                /* translators: 1: the city the user searched for, 2: meetup organization documentation URL */
    12821282                                __( 'There aren&#8217;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 }}',
    12841284                                __( 'https://make.wordpress.org/community/handbook/meetup-organizer/welcome/' )
    12851285                        ); ?>
    12861286                </li>