summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/modules/likes.php')
-rw-r--r--plugins/jetpack/modules/likes.php19
1 files changed, 17 insertions, 2 deletions
diff --git a/plugins/jetpack/modules/likes.php b/plugins/jetpack/modules/likes.php
index 1a91899b..84204cc3 100644
--- a/plugins/jetpack/modules/likes.php
+++ b/plugins/jetpack/modules/likes.php
@@ -279,8 +279,23 @@ class Jetpack_Likes {
* Register scripts
*/
function register_scripts() {
- wp_register_script( 'postmessage', plugins_url( '_inc/postmessage.js', dirname(__FILE__) ), array( 'jquery' ), JETPACK__VERSION, false );
- wp_register_script( 'jetpack_resize', plugins_url( '_inc/jquery.jetpack-resize.js' , dirname(__FILE__) ), array( 'jquery' ), JETPACK__VERSION, false );
+ wp_register_script(
+ 'postmessage',
+ Jetpack::get_file_url_for_environment( '_inc/build/postmessage.min.js', '_inc/postmessage.js' ),
+ array( 'jquery' ),
+ JETPACK__VERSION,
+ false
+ );
+ wp_register_script(
+ 'jetpack_resize',
+ Jetpack::get_file_url_for_environment(
+ '_inc/build/jquery.jetpack-resize.min.js',
+ '_inc/jquery.jetpack-resize.js'
+ ),
+ array( 'jquery' ),
+ JETPACK__VERSION,
+ false
+ );
wp_register_script( 'jetpack_likes_queuehandler', plugins_url( 'likes/queuehandler.js' , __FILE__ ), array( 'jquery', 'postmessage', 'jetpack_resize' ), JETPACK__VERSION, true );
}