Definition:
function wp_is_post_autosave( $post ) {}
Determines if the specified post is an autosave.
Parameters
- int|object $post: Post ID or post object.
Return values
returns:False if not a revision, ID of autosave’s parent otherwise
Source code
function wp_is_post_autosave( $post ) {
if ( !$post = wp_get_post_revision( $post ) )
return false;
if ( "{$post->post_parent}-autosave" !== $post->post_name )
3805

February 12, 2011 


No comments yet... Be the first to leave a reply!