Managing lots of drafts > Next Queued Draft?
-
I’m looking in the post.php for some idea as to how to do this.
Since approving drafts is a large part of what I’m doing on a particular site, I’d like to have it so that when I publish a draft, it will take me to the next drafted post in the queue. Thoughts? I don’t mind editing core files for this.
I’ve been looking in this area:
case 'edit': $title = __('Edit'); $editing = true; $post_ID = $p = (int) $_GET['post']; $post = get_post($post_ID); if ( empty($post->ID) ) wp_die( __("You attempted to edit a post that doesn't exist. Perhaps it was deleted?") ); if ( 'page' == $post->post_type ) { wp_redirect("page.php?action=edit&post=$post_ID"); exit(); } if($post->post_status == 'draft') { wp_enqueue_script('prototype'); wp_enqueue_script('autosave'); } require_once('admin-header.php'); if ( !current_user_can('edit_post', $post_ID) ) die ( __('You are not allowed to edit this post.') ); $post = get_post_to_edit($post_ID); include('edit-form-advanced.php'); break;
- The topic ‘Managing lots of drafts > Next Queued Draft?’ is closed to new replies.