{"action":"created","comment":{"url":"https://api.github.com/repos/xwp/wordpress-develop/pulls/comments/141274205","pull_request_review_id":65461933,"id":141274205,"diff_hunk":"@@ -4974,21 +5081,36 @@\n \t\t\t\t\tcloseBtn.find( '.screen-reader-text' ).text( api.l10n.close );\n \n \t\t\t\t} else {\n-\t\t\t\t\tsaveBtn.val( api.l10n.save );\n+\t\t\t\t\tif ( 'draft' === selectedChangesetStatus.get() ) {\n+\t\t\t\t\t\tsaveBtn.val( api.l10n.saveDraft );\n+\t\t\t\t\t} else if ( 'future' === selectedChangesetStatus.get() ) {\n+\t\t\t\t\t\tsaveBtn.val( api.l10n.schedule );\n+\t\t\t\t\t} else {\n+\t\t\t\t\t\tsaveBtn.val( api.l10n.publish );\n+\t\t\t\t\t}\n \t\t\t\t\tcloseBtn.find( '.screen-reader-text' ).text( api.l10n.cancel );\n \t\t\t\t}\n \n \t\t\t\t/*\n \t\t\t\t * Save (publish) button should be enabled if saving is not currently happening,\n \t\t\t\t * and if the theme is not active or the changeset exists but is not published.\n \t\t\t\t */\n-\t\t\t\tcanSave = ! saving() && ( ! activated() || ! saved() || ( '' !== changesetStatus() && 'publish' !== changesetStatus() ) );\n+\t\t\t\tcanSave = ! saving() && ( ! activated() || ! saved() || ( changesetStatus() !== selectedChangesetStatus() && '' !== changesetStatus() ) );\n \n \t\t\t\tsaveBtn.prop( 'disabled', ! canSave );\n \t\t\t});\n \n+\t\t\tselectedChangesetStatus.validate = function( status ) {\n+\t\t\t\tif ( '' === status || 'auto-draft' === status ) {\n+\t\t\t\t\treturn 'publish';","path":"src/wp-admin/js/customize-controls.js","position":null,"original_position":166,"commit_id":"b5211d18d6aee891f8e314efcecb1ff9ffe5d20e","original_commit_id":"230b83811f7a97ad33a1ff7ee7574e4526110168","user":{"login":"sayedtaqui","id":6297436,"avatar_url":"https://avatars2.githubusercontent.com/u/6297436?v=4","gravatar_id":"","url":"https://api.github.com/users/sayedtaqui","html_url":"https://github.com/sayedtaqui","followers_url":"https://api.github.com/users/sayedtaqui/followers","following_url":"https://api.github.com/users/sayedtaqui/following{/other_user}","gists_url":"https://api.github.com/users/sayedtaqui/gists{/gist_id}","starred_url":"https://api.github.com/users/sayedtaqui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sayedtaqui/subscriptions","organizations_url":"https://api.github.com/users/sayedtaqui/orgs","repos_url":"https://api.github.com/users/sayedtaqui/repos","events_url":"https://api.github.com/users/sayedtaqui/events{/privacy}","received_events_url":"https://api.github.com/users/sayedtaqui/received_events","type":"User","site_admin":false},"body":"@westonruter I think this is resolved now, correct?","created_at":"2017-09-27T08:28:00Z","updated_at":"2017-09-27T08:28:00Z","html_url":"https://github.com/xwp/wordpress-develop/pull/258#discussion_r141274205","pull_request_url":"https://api.github.com/repos/xwp/wordpress-develop/pulls/258","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/xwp/wordpress-develop/pulls/comments/141274205"},"html":{"href":"https://github.com/xwp/wordpress-develop/pull/258#discussion_r141274205"},"pull_request":{"href":"https://api.github.com/repos/xwp/wordpress-develop/pulls/258"}},"in_reply_to_id":139523305},"pull_request":{"url":"https://api.github.com/repos/xwp/wordpress-develop/pulls/258","id":141485442,"html_url":"https://github.com/xwp/wordpress-develop/pull/258","diff_url":"https://github.com/xwp/wordpress-develop/pull/258.diff","patch_url":"https://github.com/xwp/wordpress-develop/pull/258.patch","issue_url":"https://api.github.com/repos/xwp/wordpress-develop/issues/258","number":258,"state":"open","locked":false,"title":"[WIP] Trac #39896-UI: Customizer: Allow users to Draft changes before Publishing","user":{"login":"sayedtaqui","id":6297436,"avatar_url":"https://avatars2.githubusercontent.com/u/6297436?v=4","gravatar_id":"","url":"https://api.github.com/users/sayedtaqui","html_url":"https://github.com/sayedtaqui","followers_url":"https://api.github.com/users/sayedtaqui/followers","following_url":"https://api.github.com/users/sayedtaqui/following{/other_user}","gists_url":"https://api.github.com/users/sayedtaqui/gists{/gist_id}","starred_url":"https://api.github.com/users/sayedtaqui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sayedtaqui/subscriptions","organizations_url":"https://api.github.com/users/sayedtaqui/orgs","repos_url":"https://api.github.com/users/sayedtaqui/repos","events_url":"https://api.github.com/users/sayedtaqui/events{/privacy}","received_events_url":"https://api.github.com/users/sayedtaqui/received_events","type":"User","site_admin":false},"body":"https://core.trac.wordpress.org/ticket/39896\r\n\r\n**Todo Tasks**\r\n- ~Slide up / slide down animation of the publish settings section,~\r\n- [x] Switch publish settings to be positioned and animated in the same way as available widgets and nav menu panels.\r\n- [ ] Save and gear button behaviour. **[WIP]**\r\n- [x] Share Preview link and make the link clickable.\r\n- [x] Make the schedule date control working.\r\n- [x] When publish settings are open I think the cog half of the publish button should be \"pressed\" (via @melchoyce)\r\n- [x] Improve `wp.customize.previewer.save()` for changesets. See [#39275](https://core.trac.wordpress.org/ticket/39275)\r\n- [ ] Auto publish if sitting on Customizer with changeset scheduled and time arrived **[WIP]**\r\n- [x] De-activate the themes section when a changeset is not autodraft.\r\n- [ ] Add post locking?\r\n- [ ] Add unit tests for code added in #256.","created_at":"2017-09-17T13:00:51Z","updated_at":"2017-09-27T08:28:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"99506483ccd33081f233371c34736b9e521f1a4f","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/xwp/wordpress-develop/pulls/258/commits","review_comments_url":"https://api.github.com/repos/xwp/wordpress-develop/pulls/258/comments","review_comment_url":"https://api.github.com/repos/xwp/wordpress-develop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xwp/wordpress-develop/issues/258/comments","statuses_url":"https://api.github.com/repos/xwp/wordpress-develop/statuses/b5211d18d6aee891f8e314efcecb1ff9ffe5d20e","head":{"label":"xwp:trac-39896-ui","ref":"trac-39896-ui","sha":"b5211d18d6aee891f8e314efcecb1ff9ffe5d20e","user":{"login":"xwp","id":9003139,"avatar_url":"https://avatars2.githubusercontent.com/u/9003139?v=4","gravatar_id":"","url":"https://api.github.com/users/xwp","html_url":"https://github.com/xwp","followers_url":"https://api.github.com/users/xwp/followers","following_url":"https://api.github.com/users/xwp/following{/other_user}","gists_url":"https://api.github.com/users/xwp/gists{/gist_id}","starred_url":"https://api.github.com/users/xwp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xwp/subscriptions","organizations_url":"https://api.github.com/users/xwp/orgs","repos_url":"https://api.github.com/users/xwp/repos","events_url":"https://api.github.com/users/xwp/events{/privacy}","received_events_url":"https://api.github.com/users/xwp/received_events","type":"Organization","site_admin":false},"repo":{"id":17656498,"name":"wordpress-develop","full_name":"xwp/wordpress-develop","owner":{"login":"xwp","id":9003139,"avatar_url":"https://avatars2.githubusercontent.com/u/9003139?v=4","gravatar_id":"","url":"https://api.github.com/users/xwp","html_url":"https://github.com/xwp","followers_url":"https://api.github.com/users/xwp/followers","following_url":"https://api.github.com/users/xwp/following{/other_user}","gists_url":"https://api.github.com/users/xwp/gists{/gist_id}","starred_url":"https://api.github.com/users/xwp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xwp/subscriptions","organizations_url":"https://api.github.com/users/xwp/orgs","repos_url":"https://api.github.com/users/xwp/repos","events_url":"https://api.github.com/users/xwp/events{/privacy}","received_events_url":"https://api.github.com/users/xwp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xwp/wordpress-develop","description":"Clone of git://develop.git.wordpress.org/ synced once a minute","fork":false,"url":"https://api.github.com/repos/xwp/wordpress-develop","forks_url":"https://api.github.com/repos/xwp/wordpress-develop/forks","keys_url":"https://api.github.com/repos/xwp/wordpress-develop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xwp/wordpress-develop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xwp/wordpress-develop/teams","hooks_url":"https://api.github.com/repos/xwp/wordpress-develop/hooks","issue_events_url":"https://api.github.com/repos/xwp/wordpress-develop/issues/events{/number}","events_url":"https://api.github.com/repos/xwp/wordpress-develop/events","assignees_url":"https://api.github.com/repos/xwp/wordpress-develop/assignees{/user}","branches_url":"https://api.github.com/repos/xwp/wordpress-develop/branches{/branch}","tags_url":"https://api.github.com/repos/xwp/wordpress-develop/tags","blobs_url":"https://api.github.com/repos/xwp/wordpress-develop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xwp/wordpress-develop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xwp/wordpress-develop/git/refs{/sha}","trees_url":"https://api.github.com/repos/xwp/wordpress-develop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xwp/wordpress-develop/statuses/{sha}","languages_url":"https://api.github.com/repos/xwp/wordpress-develop/languages","stargazers_url":"https://api.github.com/repos/xwp/wordpress-develop/stargazers","contributors_url":"https://api.github.com/repos/xwp/wordpress-develop/contributors","subscribers_url":"https://api.github.com/repos/xwp/wordpress-develop/subscribers","subscription_url":"https://api.github.com/repos/xwp/wordpress-develop/subscription","commits_url":"https://api.github.com/repos/xwp/wordpress-develop/commits{/sha}","git_commits_url":"https://api.github.com/repos/xwp/wordpress-develop/git/commits{/sha}","comments_url":"https://api.github.com/repos/xwp/wordpress-develop/comments{/number}","issue_comment_url":"https://api.github.com/repos/xwp/wordpress-develop/issues/comments{/number}","contents_url":"https://api.github.com/repos/xwp/wordpress-develop/contents/{+path}","compare_url":"https://api.github.com/repos/xwp/wordpress-develop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xwp/wordpress-develop/merges","archive_url":"https://api.github.com/repos/xwp/wordpress-develop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xwp/wordpress-develop/downloads","issues_url":"https://api.github.com/repos/xwp/wordpress-develop/issues{/number}","pulls_url":"https://api.github.com/repos/xwp/wordpress-develop/pulls{/number}","milestones_url":"https://api.github.com/repos/xwp/wordpress-develop/milestones{/number}","notifications_url":"https://api.github.com/repos/xwp/wordpress-develop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xwp/wordpress-develop/labels{/name}","releases_url":"https://api.github.com/repos/xwp/wordpress-develop/releases{/id}","deployments_url":"https://api.github.com/repos/xwp/wordpress-develop/deployments","created_at":"2014-03-12T05:32:08Z","updated_at":"2017-08-05T01:58:42Z","pushed_at":"2017-09-27T08:23:31Z","git_url":"git://github.com/xwp/wordpress-develop.git","ssh_url":"git@github.com:xwp/wordpress-develop.git","clone_url":"https://github.com/xwp/wordpress-develop.git","svn_url":"https://github.com/xwp/wordpress-develop","homepage":"","size":119434,"stargazers_count":18,"watchers_count":18,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":113,"forks":9,"open_issues":113,"watchers":18,"default_branch":"master"}},"base":{"label":"xwp:master","ref":"master","sha":"1545e58ea69ffad7480774eee250ee93e3b3898d","user":{"login":"xwp","id":9003139,"avatar_url":"https://avatars2.githubusercontent.com/u/9003139?v=4","gravatar_id":"","url":"https://api.github.com/users/xwp","html_url":"https://github.com/xwp","followers_url":"https://api.github.com/users/xwp/followers","following_url":"https://api.github.com/users/xwp/following{/other_user}","gists_url":"https://api.github.com/users/xwp/gists{/gist_id}","starred_url":"https://api.github.com/users/xwp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xwp/subscriptions","organizations_url":"https://api.github.com/users/xwp/orgs","repos_url":"https://api.github.com/users/xwp/repos","events_url":"https://api.github.com/users/xwp/events{/privacy}","received_events_url":"https://api.github.com/users/xwp/received_events","type":"Organization","site_admin":false},"repo":{"id":17656498,"name":"wordpress-develop","full_name":"xwp/wordpress-develop","owner":{"login":"xwp","id":9003139,"avatar_url":"https://avatars2.githubusercontent.com/u/9003139?v=4","gravatar_id":"","url":"https://api.github.com/users/xwp","html_url":"https://github.com/xwp","followers_url":"https://api.github.com/users/xwp/followers","following_url":"https://api.github.com/users/xwp/following{/other_user}","gists_url":"https://api.github.com/users/xwp/gists{/gist_id}","starred_url":"https://api.github.com/users/xwp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xwp/subscriptions","organizations_url":"https://api.github.com/users/xwp/orgs","repos_url":"https://api.github.com/users/xwp/repos","events_url":"https://api.github.com/users/xwp/events{/privacy}","received_events_url":"https://api.github.com/users/xwp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xwp/wordpress-develop","description":"Clone of git://develop.git.wordpress.org/ synced once a minute","fork":false,"url":"https://api.github.com/repos/xwp/wordpress-develop","forks_url":"https://api.github.com/repos/xwp/wordpress-develop/forks","keys_url":"https://api.github.com/repos/xwp/wordpress-develop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xwp/wordpress-develop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xwp/wordpress-develop/teams","hooks_url":"https://api.github.com/repos/xwp/wordpress-develop/hooks","issue_events_url":"https://api.github.com/repos/xwp/wordpress-develop/issues/events{/number}","events_url":"https://api.github.com/repos/xwp/wordpress-develop/events","assignees_url":"https://api.github.com/repos/xwp/wordpress-develop/assignees{/user}","branches_url":"https://api.github.com/repos/xwp/wordpress-develop/branches{/branch}","tags_url":"https://api.github.com/repos/xwp/wordpress-develop/tags","blobs_url":"https://api.github.com/repos/xwp/wordpress-develop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xwp/wordpress-develop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xwp/wordpress-develop/git/refs{/sha}","trees_url":"https://api.github.com/repos/xwp/wordpress-develop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xwp/wordpress-develop/statuses/{sha}","languages_url":"https://api.github.com/repos/xwp/wordpress-develop/languages","stargazers_url":"https://api.github.com/repos/xwp/wordpress-develop/stargazers","contributors_url":"https://api.github.com/repos/xwp/wordpress-develop/contributors","subscribers_url":"https://api.github.com/repos/xwp/wordpress-develop/subscribers","subscription_url":"https://api.github.com/repos/xwp/wordpress-develop/subscription","commits_url":"https://api.github.com/repos/xwp/wordpress-develop/commits{/sha}","git_commits_url":"https://api.github.com/repos/xwp/wordpress-develop/git/commits{/sha}","comments_url":"https://api.github.com/repos/xwp/wordpress-develop/comments{/number}","issue_comment_url":"https://api.github.com/repos/xwp/wordpress-develop/issues/comments{/number}","contents_url":"https://api.github.com/repos/xwp/wordpress-develop/contents/{+path}","compare_url":"https://api.github.com/repos/xwp/wordpress-develop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xwp/wordpress-develop/merges","archive_url":"https://api.github.com/repos/xwp/wordpress-develop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xwp/wordpress-develop/downloads","issues_url":"https://api.github.com/repos/xwp/wordpress-develop/issues{/number}","pulls_url":"https://api.github.com/repos/xwp/wordpress-develop/pulls{/number}","milestones_url":"https://api.github.com/repos/xwp/wordpress-develop/milestones{/number}","notifications_url":"https://api.github.com/repos/xwp/wordpress-develop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xwp/wordpress-develop/labels{/name}","releases_url":"https://api.github.com/repos/xwp/wordpress-develop/releases{/id}","deployments_url":"https://api.github.com/repos/xwp/wordpress-develop/deployments","created_at":"2014-03-12T05:32:08Z","updated_at":"2017-08-05T01:58:42Z","pushed_at":"2017-09-27T08:23:31Z","git_url":"git://github.com/xwp/wordpress-develop.git","ssh_url":"git@github.com:xwp/wordpress-develop.git","clone_url":"https://github.com/xwp/wordpress-develop.git","svn_url":"https://github.com/xwp/wordpress-develop","homepage":"","size":119434,"stargazers_count":18,"watchers_count":18,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":113,"forks":9,"open_issues":113,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/xwp/wordpress-develop/pulls/258"},"html":{"href":"https://github.com/xwp/wordpress-develop/pull/258"},"issue":{"href":"https://api.github.com/repos/xwp/wordpress-develop/issues/258"},"comments":{"href":"https://api.github.com/repos/xwp/wordpress-develop/issues/258/comments"},"review_comments":{"href":"https://api.github.com/repos/xwp/wordpress-develop/pulls/258/comments"},"review_comment":{"href":"https://api.github.com/repos/xwp/wordpress-develop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xwp/wordpress-develop/pulls/258/commits"},"statuses":{"href":"https://api.github.com/repos/xwp/wordpress-develop/statuses/b5211d18d6aee891f8e314efcecb1ff9ffe5d20e"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"sayedtaqui"}}