diff options
Diffstat (limited to 'plugins/jetpack/functions.gallery.php')
-rw-r--r-- | plugins/jetpack/functions.gallery.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/jetpack/functions.gallery.php b/plugins/jetpack/functions.gallery.php index b796a317..7fc90611 100644 --- a/plugins/jetpack/functions.gallery.php +++ b/plugins/jetpack/functions.gallery.php @@ -57,7 +57,12 @@ class Jetpack_Gallery_Settings { * This only happens if we're not in Jetpack, but on WPCOM instead. * This is the correct path for WPCOM. */ - wp_register_script( 'jetpack-gallery-settings', plugins_url( 'gallery-settings/gallery-settings.js', __FILE__ ), array( 'media-views' ), '20121225' ); + wp_register_script( + 'jetpack-gallery-settings', + Jetpack::get_file_url_for_environment( '_inc/build/gallery-settings.min.js', '_inc/gallery-settings.js' ), + array( 'media-views' ), + '20121225' + ); } wp_enqueue_script( 'jetpack-gallery-settings' ); |