Skip to content

Commit

Permalink
Delete does not use data variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
drsdre committed Apr 6, 2017
1 parent 4d2a1bc commit ff1c028
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,14 +267,12 @@ public function postData(
*
* @param string $entity_url
* @param string $context
* @param array $data
*
* @return self
*/
public function deleteData(
$entity_url,
$context = 'edit',
array $data
$context = 'edit'
) {
// Set context
$data['context'] = $context;
Expand All @@ -283,7 +281,6 @@ public function deleteData(
$this->createAuthenticatedRequest()
->setMethod( 'delete' )
->setUrl( str_replace( $this->endpoint . '/', '', $entity_url ) ) // Strip endpoint url from url param
->setData( $data )
;

$this->executeRequest();
Expand Down

0 comments on commit ff1c028

Please sign in to comment.