Make WordPress Core

Changeset 40373


Ignore:
Timestamp:
04/04/2017 06:37:47 AM (7 years ago)
Author:
swissspidy
Message:

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

Props chesio.
Fixes #40224.

Merges [40315] to the 4.7 branch.

Location:
branches/4.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.7

  • branches/4.7/src/wp-content/themes/twentyseventeen/functions.php

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