babble
babble copied to clipboard
Refactor Translation Job creation
See: https://github.com/cftp/babble/commit/72abfa1ccd1dd21bff655ac94130db856f21dde3#commitcomment-4127854
When the user clicks on the "Edit Post" button in the admin bar, rather than creating a Job then redirecting on the load-*
action for the post edit screen, we should amend the URL for the "Edit Post" button to create the job; e.g. link to the new translation job URL and pass params for the original post.
Need to check caps as appropriate; edit post button shouldn't show if the user cannot create a translation job.