Role Scoper 0.9.8 Fixes Various Editing Bugs

Role Scoper beta version 0.9.8 is now available to correct several newly discovered bugs. Under certain conditions, editing roles were not being credited. In the post edit interface, available categories were sometimes not listed.

This revision also eliminates a peculiar bug which I created in version 0.9.6:

One of the earlier problems was an inability to publish a post which had not been previously saved with category selection. This stemmed from the WP core’s checking for the publish_posts, which Role Scoper credits selectively based on post category. Problem was the publish_posts check is made before the new post categories are stored to DB, so the query-based Role Scoper capability check didn’t see them, causing newly published posts to be saved with “pending” status.

My workaround was to call wp_set_object_terms myself prior to performing a scoped publish_posts cap check. Little did I suspect that, since the selected category IDs are initially posted as string values, the function wp_set_object_terms will store category ID “123” as a new category with name “123”. This curiosity and its technical description can now be deprecated to an unpleasant memory if you download version 0.9.8.