Changeset 11007 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/functions.php
- Timestamp:
- 06/03/2021 06:36:20 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/functions.php
r11002 r11007 88 88 get_theme_file_uri( '/css/style.css' ), 89 89 array( 'dashicons', 'open-sans' ), 90 10090 filemtime( __DIR__ . '/css/style.css' ) 91 91 ); 92 92 … … 101 101 if ( is_page( 'stats' ) ) { 102 102 wp_enqueue_script( 'google-charts', 'https://www.gstatic.com/charts/loader.js', [], null, true ); 103 wp_enqueue_script( 'wporg-page-stats', get_theme_file_uri( '/js/page-stats.js' ), [ 'jquery', 'google-charts' ], 3, true );103 wp_enqueue_script( 'wporg-page-stats', get_theme_file_uri( '/js/page-stats.js' ), [ 'jquery', 'google-charts' ], filemtime( __DIR__ . '/js/page-stats.js' ), true ); 104 104 wp_localize_script( 'wporg-page-stats', 'wporgPageStats', [ 105 'trunk' => number_format( WP_CORE_STABLE_BRANCH + 0.1, 1 ), /* trunk */ 105 'trunk' => number_format( WP_CORE_STABLE_BRANCH + 0.1, 1 ), /* trunk */ 106 'viewAsChart' => __( 'View as Chart', 'wporg' ), 107 'viewAsTable' => __( 'View as Table', 'wporg' ), 106 108 ] ); 107 109 } elseif ( is_page( 'download' ) ) {
Note: See TracChangeset
for help on using the changeset viewer.