diff options
Diffstat (limited to 'plugins/jetpack/modules/shortcodes/gist.php')
-rw-r--r-- | plugins/jetpack/modules/shortcodes/gist.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/jetpack/modules/shortcodes/gist.php b/plugins/jetpack/modules/shortcodes/gist.php index b5f2c038..072014ef 100644 --- a/plugins/jetpack/modules/shortcodes/gist.php +++ b/plugins/jetpack/modules/shortcodes/gist.php @@ -54,7 +54,13 @@ function github_gist_shortcode( $atts, $content = '' ) { return '<!-- Invalid Gist ID -->'; } - wp_enqueue_script( 'jetpack-gist-embed', plugins_url( 'js/gist.js', __FILE__ ), array( 'jquery' ), false, true ); + wp_enqueue_script( + 'jetpack-gist-embed', + Jetpack::get_file_url_for_environment( '_inc/build/shortcodes/js/gist.min.js', 'modules/shortcodes/js/gist.js' ), + array( 'jquery' ), + false, + true + ); if ( false !== strpos( $id, '#file-' ) ) { // URL points to a specific file in the gist |