WordPress.org

Make WordPress Core

Ticket #40224: 40224.patch

File 40224.patch, 900 bytes (added by chesio, 5 years ago)
  • src/wp-content/themes/twentyseventeen/functions.php

     
    441441        );
    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' );
    447447                $twentyseventeen_l10n['icon']           = twentyseventeen_get_svg( array( 'icon' => 'angle-down', 'fallback' => true ) );