Making WordPress.org

Changeset 7437


Ignore:
Timestamp:
07/12/2018 10:04:34 AM (7 years ago)
Author:
Otto42
Message:

Plugins: The FAQ section of single plugin pages is dependent on jQuery, so move the JS dependency there.

File:
1 edited

Legend:

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

    r7436 r7437  
    6868    if ( is_singular( 'plugin' ) ) {
    6969        wp_enqueue_script( 'wporg-plugins-popover', get_stylesheet_directory_uri() . '/js/popover.js', array(), '20171002', true );
    70         wp_enqueue_script( 'wporg-plugins-faq', get_stylesheet_directory_uri() . '/js/section-faq.js', array(), '20180131', true );
     70        wp_enqueue_script( 'wporg-plugins-faq', get_stylesheet_directory_uri() . '/js/section-faq.js', array( 'jquery' ), '20180131', true );
    7171    }
    7272
     
    120120    add_filter( 'jetpack_implode_frontend_css', '__return_false' );
    121121    wp_dequeue_script( 'devicepx' );
    122 
    123     wp_enqueue_script( 'jquery' );
    124122}
    125123add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\scripts' );
Note: See TracChangeset for help on using the changeset viewer.