Twenty Seventeen: Declare jQuery as a dependency for `navigation.js`.
Props chesio. Fixes #40224. Merges [40315] to the 4.7 branch. Built from https://develop.svn.wordpress.org/branches/4.7@40373 git-svn-id: http://core.svn.wordpress.org/branches/4.7@40280 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a394c05654
commit
cafbb22729
|
@ -440,7 +440,7 @@ function twentyseventeen_scripts() {
|
|||
);
|
||||
|
||||
if ( has_nav_menu( 'top' ) ) {
|
||||
wp_enqueue_script( 'twentyseventeen-navigation', get_theme_file_uri( '/assets/js/navigation.js' ), array(), '1.0', true );
|
||||
wp_enqueue_script( 'twentyseventeen-navigation', get_theme_file_uri( '/assets/js/navigation.js' ), array( 'jquery' ), '1.0', true );
|
||||
$twentyseventeen_l10n['expand'] = __( 'Expand child menu', 'twentyseventeen' );
|
||||
$twentyseventeen_l10n['collapse'] = __( 'Collapse child menu', 'twentyseventeen' );
|
||||
$twentyseventeen_l10n['icon'] = twentyseventeen_get_svg( array( 'icon' => 'angle-down', 'fallback' => true ) );
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.7.4-alpha-40369';
|
||||
$wp_version = '4.7.4-alpha-40373';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue