Skip to content
This repository has been archived by the owner on Sep 24, 2018. It is now read-only.

Allow attaching media to posts on creation #294

Merged
merged 3 commits into from
Jul 17, 2014

Conversation

pkevan
Copy link
Contributor

@pkevan pkevan commented Jun 5, 2014

Images can now be associated with posts, assuming they exist. Based on current xml-rpc method

Fixes #269

@rmccue
Copy link
Member

rmccue commented Jun 9, 2014

Thanks! We'll review for 1.2 :)

@rmccue rmccue added this to the 1.2 milestone Jun 9, 2014
@rmccue
Copy link
Member

rmccue commented Jul 7, 2014

Looking pretty good, but we should check the correct permissions for the type instead, as it could be attached to a CPT.

@rmccue rmccue removed the Review label Jul 7, 2014
- Now checks the post type of the post id being passed
- Rename variable to make it clearer we are trying to upload to it (post_parent)
@pkevan
Copy link
Contributor Author

pkevan commented Jul 7, 2014

Good point Ryan. I've changed the pull to check permissions based on the type of the post_id

rmccue added a commit that referenced this pull request Jul 17, 2014
Allow attaching media to posts on creation
@rmccue rmccue merged commit b1033fb into WP-API:master Jul 17, 2014
@rmccue rmccue changed the title Allows adding of post id through post vars Allow attaching media to posts on creation Jul 17, 2014
@rmccue rmccue self-assigned this Jul 17, 2014
kellbot pushed a commit to kellbot/WP-API that referenced this pull request Aug 1, 2014
Allow attaching media to posts on creation
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants