Changeset 12324
- Timestamp:
- 12/14/2022 02:16:09 AM (3 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins
- Files:
-
- 2 edited
-
functions.php (modified) (1 diff)
-
js/locale-banner.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/functions.php
r12098 r12324 91 91 92 92 if ( ! is_404() ) { 93 wp_enqueue_script( 'wporg-plugins-locale-banner', get_stylesheet_directory_uri() . '/js/locale-banner.js', array( 'jquery' ), '20200401', true );93 wp_enqueue_script( 'wporg-plugins-locale-banner', get_stylesheet_directory_uri() . '/js/locale-banner.js', array( 'jquery' ), filemtime( __DIR__ . '/js/locale-banner.js' ), true ); 94 94 wp_localize_script( 'wporg-plugins-locale-banner', 'wporgLocaleBanner', array( 95 95 'apiURL' => rest_url( '/plugins/v1/locale-banner' ), -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/js/locale-banner.js
r9668 r12324 10 10 url: wporgLocaleBanner.apiURL, 11 11 dataType: 'json', 12 data: { 13 'plugin_slug': wporgLocaleBanner.currentPlugin 14 }, 12 data: wporgLocaleBanner.currentPlugin ? { 'plugin_slug': wporgLocaleBanner.currentPlugin } : {}, 15 13 success: function ( response ) { 16 14 if ( ! response.suggest_string ) {
Note: See TracChangeset
for help on using the changeset viewer.