WordPress.org

Make WordPress Core

Changeset 40315


Ignore:
Timestamp:
03/23/17 16:21:21 (5 weeks ago)
Author:
SergeyBiryukov
Message:

Twenty Seventeen: Declare jQuery as a dependency for navigation.js.

Props chesio.
Fixes #40224.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyseventeen/functions.php

    r40024 r40315  
    442442 
    443443    if ( has_nav_menu( 'top' ) ) { 
    444         wp_enqueue_script( 'twentyseventeen-navigation', get_theme_file_uri( '/assets/js/navigation.js' ), array(), '1.0', true ); 
     444        wp_enqueue_script( 'twentyseventeen-navigation', get_theme_file_uri( '/assets/js/navigation.js' ), array( 'jquery' ), '1.0', true ); 
    445445        $twentyseventeen_l10n['expand']         = __( 'Expand child menu', 'twentyseventeen' ); 
    446446        $twentyseventeen_l10n['collapse']       = __( 'Collapse child menu', 'twentyseventeen' ); 
Note: See TracChangeset for help on using the changeset viewer.