benbalter/WP-Document-Revisions — pull request #48 by cojennin (2013-03-13 19:39:31+00:00)
Title: Saving workflow state

$_POST['workflow-state'] is a slug, not an id. So compare slugs, not ids. Related to these two issues: [#1](http://wordpress.org/support/topic/unable-to-save-workflow-state-in-wp-351?replies=3) [#2](http://wordpress.org/support/topic/cannot-add-or-edit-workflow-state?replies=1)

The most recent change invalidates the need for this (it just always updates regardless), but it might be confusing down the road if the comparison is slugs and ids.