Add upstream
This commit is contained in:
2
wp-content/plugins/jetpack/_inc/build/likes/post-count-jetpack.min.js
vendored
Normal file
2
wp-content/plugins/jetpack/_inc/build/likes/post-count-jetpack.min.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
var wpPostLikeCount=wpPostLikeCount||{};!function(t){wpPostLikeCount=jQuery.extend(wpPostLikeCount,{request:function(e){return t.ajax({type:"GET",url:wpPostLikeCount.jsonAPIbase+e.path,dataType:"jsonp",data:e.data,success:function(t){e.success(t)},error:function(t){e.error(t)}})}})}(jQuery);
|
||||
3
wp-content/plugins/jetpack/_inc/build/likes/post-count.min.js
vendored
Normal file
3
wp-content/plugins/jetpack/_inc/build/likes/post-count.min.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
/* Do not modify this file directly. It is compiled from other files. */
|
||||
/* jshint onevar: false, smarttabs: true */
|
||||
var wpPostLikeCount=wpPostLikeCount||{};!function(t){wpPostLikeCount=jQuery.extend(wpPostLikeCount,{jsonAPIbase:"https://public-api.wordpress.com/rest/v1",APIqueue:[],wpPostLikeCount:function(){t(".post-like-count").each(function(){var o=t(this).attr("data-post-id"),n=t(this).attr("data-blog-id");wpPostLikeCount.APIqueue.push("/sites/"+n+"/posts/"+o+"/likes")}),wpPostLikeCount.getCounts()},showCount:function(o,n){n>0&&(t("#post-like-count-"+o).find(".comment-count").hide(),t("#post-like-count-"+o).find(".comment-count").text(n),t("#post-like-count-"+o).find(".comment-count").fadeIn())},getCounts:function(){for(var t={path:"/batch",data:"",success:function(t){for(var o in t)if(!t[o].error_data){var n=o.split("/")[4];wpPostLikeCount.showCount(n,t[o].found)}},error:function(){}},o="",n=0;n<wpPostLikeCount.APIqueue.length;n++)n>0&&(o="&"),t.data+=o+"urls[]="+wpPostLikeCount.APIqueue[n];wpPostLikeCount.request(t)}})}(jQuery),jQuery(document).ready(function(){wpPostLikeCount.wpPostLikeCount()});
|
||||
3
wp-content/plugins/jetpack/_inc/build/likes/queuehandler.min.js
vendored
Normal file
3
wp-content/plugins/jetpack/_inc/build/likes/queuehandler.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user