Making WordPress.org


Ignore:
Timestamp:
12/14/2017 11:33:51 PM (7 years ago)
Author:
coffee2code
Message:

W.org Showcase: Properly set script/stylesheet versions when enqueueing.

See #1173.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/functions.php

    r6273 r6274  
    224224    wp_enqueue_script( 'jquery' ); // explicit enqueue
    225225    wp_enqueue_script( 'jquery-cycle', get_template_directory_uri() . '/js/jquery.cycle2.min.js', array( 'jquery' ) );
    226     wp_enqueue_script( 'wpsc-scripts', get_template_directory_uri() . '/js/scripts.js', array( 'jquery', 'jquery-cycle' ), 'aaa' );
     226    wp_enqueue_script( 'wpsc-scripts', get_template_directory_uri() . '/js/scripts.js', array( 'jquery', 'jquery-cycle' ), '20171214' );
    227227}
    228228add_action('wp_enqueue_scripts', 'wpsc_scripts');
Note: See TracChangeset for help on using the changeset viewer.