Skip to content

Commit

Permalink
Spread the returned array into the appropriate parameters.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdodd committed Dec 15, 2015
1 parent c045ba5 commit bc0b48b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions shared/lib/wp/support.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,16 @@ export default function wpcomSupport( wpcom ) {
},
req: {
del: function( ...args ) {
return del.apply( wpcom, extendRequest( 'del', args ) );
return del( ...extendRequest( 'del', args ) );
},
get: function( ...args ) {
return get.apply( wpcom, extendRequest( 'get', args ) );
return get( ...extendRequest( 'get', args ) );
},
post: function( ...args ) {
return post.apply( wpcom, extendRequest( 'post', args ) );
return post( ...extendRequest( 'post', args ) );
},
put: function( ...args ) {
return put.apply( wpcom, extendRequest( 'put', args ) );
return put( ...extendRequest( 'put', args ) );
}
}
} );
Expand Down

0 comments on commit bc0b48b

Please sign in to comment.