Make WordPress Core


Ignore:
Timestamp:
10/22/2020 04:03:25 AM (4 years ago)
Author:
tellyworth
Message:

Community Events: Display dates and times in the user's time zone.

Fixes #51130
Merges [49145], [49146], [49147], [49152], and [49201] to the 5.5 branch.
Props sippis, hlashbrooke, audrasjb, Rarst, iandunn

Location:
branches/5.5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.5

  • branches/5.5/src/wp-includes/script-loader.php

    r48925 r49275  
    12781278        $scripts->set_translations( 'wp-color-picker' );
    12791279
    1280         $scripts->add( 'dashboard', "/wp-admin/js/dashboard$suffix.js", array( 'jquery', 'admin-comments', 'postbox', 'wp-util', 'wp-a11y' ), false, 1 );
     1280        $scripts->add( 'dashboard', "/wp-admin/js/dashboard$suffix.js", array( 'jquery', 'admin-comments', 'postbox', 'wp-util', 'wp-a11y', 'wp-date' ), false, 1 );
     1281        $scripts->set_translations( 'dashboard' );
    12811282
    12821283        $scripts->add( 'list-revisions', "/wp-includes/js/wp-list-revisions$suffix.js" );
     
    17231724        'communityEventsData',
    17241725        array(
    1725             'nonce' => wp_create_nonce( 'community_events' ),
    1726             'cache' => $events_client->get_cached_events(),
    1727 
    1728             'l10n'  => array(
     1726            'nonce'       => wp_create_nonce( 'community_events' ),
     1727            'cache'       => $events_client->get_cached_events(),
     1728            'time_format' => get_option( 'time_format' ),
     1729
     1730            'l10n'        => array(
    17291731                'enter_closest_city'              => __( 'Enter your closest city to find nearby events.' ),
    17301732                'error_occurred_please_try_again' => __( 'An error occurred. Please try again.' ),
Note: See TracChangeset for help on using the changeset viewer.