Making WordPress.org


Ignore:
Timestamp:
04/01/2020 03:03:01 AM (5 years ago)
Author:
dd32
Message:

Plugin Directory: Switch the locale banner to a GET request and cache the request for up-to 1 hour.

See #3604.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/functions.php

    r9543 r9668  
    8888
    8989    if ( ! is_404() ) {
    90         wp_enqueue_script( 'wporg-plugins-locale-banner', get_stylesheet_directory_uri() . '/js/locale-banner.js', array( 'jquery' ), '20181209', true );
     90        wp_enqueue_script( 'wporg-plugins-locale-banner', get_stylesheet_directory_uri() . '/js/locale-banner.js', array( 'jquery' ), '20200401', true );
    9191        wp_localize_script( 'wporg-plugins-locale-banner', 'wporgLocaleBanner', array(
    9292            'apiURL'        => rest_url( '/plugins/v1/locale-banner' ),
Note: See TracChangeset for help on using the changeset viewer.