WordPress.org

Making WordPress.org

Changeset 5349


Ignore:
Timestamp:
04/17/2017 10:41:04 AM (4 years ago)
Author:
ocean90
Message:

Plugin Directory: Hide

File:
1 edited

Legend:

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

    r5320 r5349  
    6868    }
    6969
    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    }
    7577
    7678    if ( get_query_var( 'plugin_advanced' ) ) {
     
    246248 */
    247249function hreflang_link_attributes() {
     250    if ( is_404() ) {
     251        return;
     252    }
     253
    248254    wp_cache_add_global_groups( array( 'locale-associations' ) );
    249255
Note: See TracChangeset for help on using the changeset viewer.