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

February 12, 2011 


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