{"action":"closed","issue":{"url":"https://api.github.com/repos/WP-API/WP-API/issues/2522","repository_url":"https://api.github.com/repos/WP-API/WP-API","labels_url":"https://api.github.com/repos/WP-API/WP-API/issues/2522/labels{/name}","comments_url":"https://api.github.com/repos/WP-API/WP-API/issues/2522/comments","events_url":"https://api.github.com/repos/WP-API/WP-API/issues/2522/events","html_url":"https://github.com/WP-API/WP-API/issues/2522","id":157749542,"number":2522,"title":"\"sticky\" can only be set to true via \"POST /wp/v2/posts/<id>\"","user":{"login":"coderkevin","id":945228,"avatar_url":"https://avatars.githubusercontent.com/u/945228?v=3","gravatar_id":"","url":"https://api.github.com/users/coderkevin","html_url":"https://github.com/coderkevin","followers_url":"https://api.github.com/users/coderkevin/followers","following_url":"https://api.github.com/users/coderkevin/following{/other_user}","gists_url":"https://api.github.com/users/coderkevin/gists{/gist_id}","starred_url":"https://api.github.com/users/coderkevin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coderkevin/subscriptions","organizations_url":"https://api.github.com/users/coderkevin/orgs","repos_url":"https://api.github.com/users/coderkevin/repos","events_url":"https://api.github.com/users/coderkevin/events{/privacy}","received_events_url":"https://api.github.com/users/coderkevin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/WP-API/WP-API/labels/Support","name":"Support","color":"fef2c0"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-05-31T19:22:26Z","updated_at":"2016-06-26T12:06:36Z","closed_at":"2016-06-26T12:06:36Z","body":"I'm writing example code for using the API, and have found the \"sticky\" property to be a little too sticky, if you will.\r\n\r\nWhen I update a post, sticky can be set to true, but cannot be set to false. There's no error, the API returns a 200, but in the return data sticky is still true, even though I verified I'm sending { sticky: false } in the form data.\r\n\r\n(EDIT: This was tested with the current release: 2.0-beta13.1 )\r\n\r\n## To test:\r\nFull example code here:\r\nhttps://github.com/coderkevin/wp-rest-api-plugin-jquery-example/tree/sticky-bug\r\n\r\n1. Clone the example plugin repo into your plugins directory.\r\n2. Check out the 'sticky-bug' branch.\r\n3. Activate the plugin.\r\n4. Click the plugin menu item.\r\n5. Click in the search box and hit <enter>. This will show the first 10 posts.\r\n6. Click the \"sticky\" checkbox on one of the posts that is not yet sticky. It will update.\r\n7. Click the \"sticky\" checkbox on the same post to make it no longer sticky. It will update as still sticky.\r\n8. Check your network log in your JavaScript console and observe that { sticky: false } is being sent, and the resulting reply is 200, but the data is unchanged.\r\n"}}
{"actor":{"display_login":"danielbachhuber"}}