Skip to content

Commit

Permalink
Merge pull request #578 from 10up/fix/undefined-var
Browse files Browse the repository at this point in the history
Fix an an undefined variable issue
  • Loading branch information
helen authored Apr 27, 2020
2 parents 4b72113 + ca150a8 commit b3eb3dc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -655,10 +655,10 @@ public function push( $post_id, $args = array() ) {

if ( ! empty( $response_headers['X-Distributor'] ) ) {
// We have Distributor on the other side
\Distributor\Subscriptions\create_subscription( $post_id, $remote_id, untrailingslashit( $this->base_url ), $signature );
\Distributor\Subscriptions\create_subscription( $post_id, $body_array['id'], untrailingslashit( $this->base_url ), $signature );
}

return $remote_id;
return $body_array['id'];
}

/**
Expand Down

0 comments on commit b3eb3dc

Please sign in to comment.