WordPress.org

Make WordPress Core

Ticket #19978: navigation_enqueuing.patch

File navigation_enqueuing.patch, 686 bytes (added by dimadin, 9 years ago)
  • wp-content/themes/twentytwelve/functions.php

     
    193193 * @since Twenty Twelve 1.0
    194194 */
    195195function twentytwelve_scripts() {
    196         wp_enqueue_script( 'jquery' );
    197         wp_enqueue_script( 'navigation', get_template_directory_uri() . '/js/navigation.js', 'jquery', '20120227', true );
     196        wp_enqueue_script( 'navigation', get_template_directory_uri() . '/js/navigation.js', array( 'jquery' ), '20120227', true );
    198197}
    199198add_action( 'wp_enqueue_scripts', 'twentytwelve_scripts' );
    200199