{"action":"opened","issue":{"url":"https://api.github.com/repos/WP-API/WP-API/issues/2355","repository_url":"https://api.github.com/repos/WP-API/WP-API","labels_url":"https://api.github.com/repos/WP-API/WP-API/issues/2355/labels{/name}","comments_url":"https://api.github.com/repos/WP-API/WP-API/issues/2355/comments","events_url":"https://api.github.com/repos/WP-API/WP-API/issues/2355/events","html_url":"https://github.com/WP-API/WP-API/issues/2355","id":139894287,"number":2355,"title":"Avoid returning WP_Error in WP_REST_Posts_Controller::prepare_item_for_database()","user":{"login":"danielbachhuber","id":36432,"avatar_url":"https://avatars.githubusercontent.com/u/36432?v=3","gravatar_id":"","url":"https://api.github.com/users/danielbachhuber","html_url":"https://github.com/danielbachhuber","followers_url":"https://api.github.com/users/danielbachhuber/followers","following_url":"https://api.github.com/users/danielbachhuber/following{/other_user}","gists_url":"https://api.github.com/users/danielbachhuber/gists{/gist_id}","starred_url":"https://api.github.com/users/danielbachhuber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielbachhuber/subscriptions","organizations_url":"https://api.github.com/users/danielbachhuber/orgs","repos_url":"https://api.github.com/users/danielbachhuber/repos","events_url":"https://api.github.com/users/danielbachhuber/events{/privacy}","received_events_url":"https://api.github.com/users/danielbachhuber/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/WP-API/WP-API/labels/Bug","name":"Bug","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/WP-API/WP-API/milestones/10","html_url":"https://github.com/WP-API/WP-API/milestones/2.0","labels_url":"https://api.github.com/repos/WP-API/WP-API/milestones/10/labels","id":844496,"number":10,"title":"2.0","description":"","creator":{"login":"danielbachhuber","id":36432,"avatar_url":"https://avatars.githubusercontent.com/u/36432?v=3","gravatar_id":"","url":"https://api.github.com/users/danielbachhuber","html_url":"https://github.com/danielbachhuber","followers_url":"https://api.github.com/users/danielbachhuber/followers","following_url":"https://api.github.com/users/danielbachhuber/following{/other_user}","gists_url":"https://api.github.com/users/danielbachhuber/gists{/gist_id}","starred_url":"https://api.github.com/users/danielbachhuber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielbachhuber/subscriptions","organizations_url":"https://api.github.com/users/danielbachhuber/orgs","repos_url":"https://api.github.com/users/danielbachhuber/repos","events_url":"https://api.github.com/users/danielbachhuber/events{/privacy}","received_events_url":"https://api.github.com/users/danielbachhuber/received_events","type":"User","site_admin":false},"open_issues":29,"closed_issues":255,"state":"open","created_at":"2014-10-29T00:12:18Z","updated_at":"2016-03-10T14:00:26Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-03-10T14:00:26Z","updated_at":"2016-03-10T14:00:26Z","closed_at":null,"body":"For developers subclassing `prepare_item_for_database()`, it's inconsistent that request validation is happening in `prepare_item_for_database()` and that I have to check `parent::prepare_item_for_database()` for `WP_Error`\r\n\r\nIt would be better if request validation happened earlier, such that I could always expect to get the database object from `prepare_item_for_database()`"}}