diff options
Diffstat (limited to 'plugins/jetpack/modules/comment-likes.php')
-rw-r--r-- | plugins/jetpack/modules/comment-likes.php | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/plugins/jetpack/modules/comment-likes.php b/plugins/jetpack/modules/comment-likes.php index cf6dd1a7..c6e5ae8e 100644 --- a/plugins/jetpack/modules/comment-likes.php +++ b/plugins/jetpack/modules/comment-likes.php @@ -126,8 +126,23 @@ class Jetpack_Comment_Likes { wp_register_style( 'open-sans', 'https://fonts.googleapis.com/css?family=Open+Sans', array(), JETPACK__VERSION ); } wp_enqueue_style( 'jetpack_likes', plugins_url( 'likes/style.css', __FILE__ ), array( 'open-sans' ), JETPACK__VERSION ); - wp_enqueue_script( 'postmessage', plugins_url( '_inc/postmessage.js', JETPACK__PLUGIN_FILE ), array( 'jquery' ), JETPACK__VERSION, false ); - wp_enqueue_script( 'jetpack_resize', plugins_url( '_inc/jquery.jetpack-resize.js' , JETPACK__PLUGIN_FILE ), array( 'jquery' ), JETPACK__VERSION, false ); + wp_enqueue_script( + 'postmessage', + Jetpack::get_file_url_for_environment( '_inc/build/postmessage.min.js', '_inc/postmessage.js' ), + array( 'jquery' ), + JETPACK__VERSION, + false + ); + wp_enqueue_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_enqueue_script( 'jetpack_likes_queuehandler', plugins_url( 'likes/queuehandler.js' , __FILE__ ), array( 'jquery', 'postmessage', 'jetpack_resize' ), JETPACK__VERSION, true ); } |