Add upstream
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
var wpPostLikeCount = wpPostLikeCount || {};
|
||||
|
||||
( function( $ ) {
|
||||
wpPostLikeCount = jQuery.extend( wpPostLikeCount, {
|
||||
request: function( options ) {
|
||||
return $.ajax( {
|
||||
type: 'GET',
|
||||
url: wpPostLikeCount.jsonAPIbase + options.path,
|
||||
dataType: 'jsonp',
|
||||
data: options.data,
|
||||
success: function( response ) {
|
||||
options.success( response );
|
||||
},
|
||||
error: function( response ) {
|
||||
options.error( response );
|
||||
},
|
||||
} );
|
||||
},
|
||||
} );
|
||||
} )( jQuery );
|
||||
Reference in New Issue
Block a user