Changeset 3460 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/functions.php
- Timestamp:
- 06/19/2016 11:03:43 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/functions.php
r3389 r3460 75 75 if ( is_singular( 'plugin' ) ) { 76 76 wp_enqueue_script( 'wporg-plugins-accordion', get_template_directory_uri() . '/js/section-accordion.js', array(), '20160525', true ); 77 78 $slug = get_queried_object()->post_name; 79 wp_enqueue_script( 'wporg-plugins-locale-banner', get_template_directory_uri() . '/js/locale-banner.js', array(), '20160525', true ); 80 wp_localize_script( 'wporg-plugins-locale-banner', 'wporgLocaleBanner', array( 81 'apiURL' => rest_url( "/plugins/v1/plugin/$slug/translations" ), 82 ) ); 77 83 } 78 84 }
Note: See TracChangeset
for help on using the changeset viewer.