WP-API/WP-API — pull request #55 by alisspers (2013-12-12 15:34:05+00:00)
Title: Fixes bugs with attaching featured images to posts

This merge fixes two bugs in `WP_JSON_Media::attachThubmnail()`.

- `attachThumbnail()` should dp nothing if `$update` is false since
the post ID is needed.
- The post ID must be fetched from the `$post` array.