Changeset 5349
- Timestamp:
- 04/17/2017 10:41:04 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/functions.php
r5320 r5349 68 68 } 69 69 70 wp_enqueue_script( 'wporg-plugins-locale-banner', get_template_directory_uri() . '/js/locale-banner.js', array(), '20160622', true ); 71 wp_localize_script( 'wporg-plugins-locale-banner', 'wporgLocaleBanner', array( 72 'apiURL' => rest_url( '/plugins/v1/locale-banner' ), 73 'currentPlugin' => is_singular( 'plugin' ) ? get_queried_object()->post_name : '', 74 ) ); 70 if ( ! is_404() ) { 71 wp_enqueue_script( 'wporg-plugins-locale-banner', get_template_directory_uri() . '/js/locale-banner.js', array(), '20160622', true ); 72 wp_localize_script( 'wporg-plugins-locale-banner', 'wporgLocaleBanner', array( 73 'apiURL' => rest_url( '/plugins/v1/locale-banner' ), 74 'currentPlugin' => is_singular( 'plugin' ) ? get_queried_object()->post_name : '', 75 ) ); 76 } 75 77 76 78 if ( get_query_var( 'plugin_advanced' ) ) { … … 246 248 */ 247 249 function hreflang_link_attributes() { 250 if ( is_404() ) { 251 return; 252 } 253 248 254 wp_cache_add_global_groups( array( 'locale-associations' ) ); 249 255
Note: See TracChangeset
for help on using the changeset viewer.