I'm confused about some of the messages that can appear on a post entry/edit screen in the admin area:
$messages['post'] = array( 0 => '', // Unused. Messages start at index 1. 1 => __( 'Post updated.' ) . $view_post_link_html, 2 => __( 'Custom field updated.' ), 3 => __( 'Custom field deleted.' ), 4 => __( 'Post updated.' ), /* translators: %s: date and time of the revision */ 5 => isset($_GET['revision']) ? sprintf( __( 'Post restored to revision from %s.' ), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false, 6 => __( 'Post published.' ) . $view_post_link_html, 7 => __( 'Post saved.' ), 8 => __( 'Post submitted.' ) . $preview_post_link_html, 9 => sprintf( __( 'Post scheduled for: %s.' ), '<strong>' . $scheduled_date . '</strong>' ) . $scheduled_post_link_html, 10 => __( 'Post draft updated.' ) . $preview_post_link_html, );
For instance, what is the difference between indices 1 and 4? When is one called, versus the other? Also, what is the difference between indices 7, 8, and 10? They sound like they would appear if you're saving a draft of a post that has not yet been published (which would trigger #6.)
I haven't been able to find any kind of guide for which message occurs at what time.
Thanks for shedding some light on the subject!