[wp-hackers] After Publish Revisions

Kevin Newman CaptainN at unFocus.com
Mon Dec 13 18:15:40 UTC 2010


I need to allow for users to edit a published post, without taking that 
page down after the edit, or having those edits apply immediately - 
edits need to be approved by an editor, admin, or some new moderator role.

Kevin N.


On 12/10/10 9:07 PM, Ryan Bilesky wrote:
> Custom post statuses aren't quite fullt there...see
> http://core.trac.wordpress.org/ticket/12706
>
> Why don't you just use the pending post status?
>
> On Dec 10, 2010 10:37 AM, "Kevin Newman"<CaptainN at unfocus.com>  wrote:
> Hi all,
>
> I'm going to add the ability to edit a post (and it's metadata) after it has
> been published but not to take affect immediately (meaning an editor or
> admin will have to approve the changes). I'm going to add all the necessary
> new capabilities and custom post_status, and build off the existing
> auto_save and revisions system in WP. I want to do this as cleanly as
> possible - model it on the way existing systems work in WP core.
>
> Is there any info that might help with this - history on previous attempts
> at it, etc.?
>
> Here is a quick initial stab at some of the data stuff:
>
> I'm guessing I'll need to add:
> post_type:    publish_revision
> post_status: inherit
>
> Alternatively, for custom post types:
> post_type:    custom_post_name
> post_status: publish_revision
>
> Or it might require both, I'm not sure yet - and I'll be essentially
> modifying the" after publish revision" (for lack of a better term) to match
> an auto-draft (post_status) or a revision (post_type) by resetting the
> post_name, and post_parent fields.
>
> I'm just starting this process, and will be testing various things today.
>
> Thanks,
>
> Kevin N.
>
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers



More information about the wp-hackers mailing list