Changeset 1467
- Timestamp:
- 04/01/2015 12:59:30 AM (10 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/functions.php
r1449 r1467 38 38 */ 39 39 function wporg_themes_scripts() { 40 wp_enqueue_style( 'wporg-themes', get_stylesheet_uri(), array(), filemtime( __DIR__ . '/style.css' ) ); 40 $script_debug = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG; 41 $suffix = $script_debug ? '' : '.min'; 42 43 // Concatenates core scripts when possible. 44 if ( ! $script_debug ) { 45 $GLOBALS['concatenate_scripts'] = true; 46 } 47 48 wp_enqueue_style( 'wporg-themes', get_stylesheet_uri(), array(), '1' ); 41 49 42 50 if ( ! is_singular( 'page' ) ) { 43 51 wp_enqueue_script( 'google-jsapi', '//www.google.com/jsapi', array( 'jquery' ), null, true ); 44 wp_enqueue_script( 'wporg-theme', get_template_directory_uri() . '/js/theme.js', array( 'wp-backbone' ), filemtime( __DIR__ . '/js/theme.js' ), true );52 wp_enqueue_script( 'wporg-theme', get_template_directory_uri() . "/js/theme{$suffix}.js", array( 'wp-backbone' ), '1', true ); 45 53 46 54 wp_localize_script( 'wporg-theme', '_wpThemeSettings', array( … … 66 74 67 75 // No emoji support needed. 68 remove_action( 'wp_ print_styles','print_emoji_styles');69 wp_dequeue_script( 'emoji' );76 remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); 77 remove_action( 'wp_print_styles', 'print_emoji_styles' ); 70 78 71 79 // No Jetpack styles needed.
Note: See TracChangeset
for help on using the changeset viewer.