WordPress.org

Making WordPress.org

Changeset 6274


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

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

See #1173.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase
Files:
2 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');
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/header.php

    r6273 r6274  
    44$prefix = is_ssl() ? 'https://' : 'http://s.';
    55wp_enqueue_style( 'blog-wp4', $prefix.'wordpress.org/style/blog-wp4.css', array(), 4 );
    6 wp_enqueue_style( 'showcase', $prefix.'wordpress.org/wp-content/themes/pub/wporg-showcase/style.css', array(), '14aaaf' );
     6wp_enqueue_style( 'showcase', $prefix.'wordpress.org/wp-content/themes/pub/wporg-showcase/style.css', array(), 15 );
    77require WPORGPATH . 'header.php';
    88?>
Note: See TracChangeset for help on using the changeset viewer.