summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/class.photon.php')
-rw-r--r--plugins/jetpack/class.photon.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/jetpack/class.photon.php b/plugins/jetpack/class.photon.php
index 636217d7..58a3e11d 100644
--- a/plugins/jetpack/class.photon.php
+++ b/plugins/jetpack/class.photon.php
@@ -1014,6 +1014,15 @@ class Jetpack_Photon {
* @return null
*/
public function action_wp_enqueue_scripts() {
- wp_enqueue_script( 'jetpack-photon', plugins_url( 'modules/photon/photon.js', JETPACK__PLUGIN_FILE ), array( 'jquery' ), 20130122, true );
+ wp_enqueue_script(
+ 'jetpack-photon',
+ Jetpack::get_file_url_for_environment(
+ '_inc/build/photon/photon.min.js',
+ 'modules/photon/photon.js'
+ ),
+ array( 'jquery' ),
+ 20130122,
+ true
+ );
}
}