Fix unset notice on Revisions page for custom post_types. Use $post object instead of relying on a Global

git-svn-id: https://develop.svn.wordpress.org/trunk@13772 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2010-03-20 01:10:01 +00:00
parent 26db844b28
commit 60d2b654ac
1 changed files with 1 additions and 1 deletions

View File

@ -1190,7 +1190,7 @@ function wp_list_post_revisions( $post_id = 0, $args = null ) {
<div class="alignleft">
<input type="submit" class="button-secondary" value="<?php esc_attr_e( 'Compare Revisions' ); ?>" />
<input type="hidden" name="action" value="diff" />
<input type="hidden" name="post_type" value="<?php echo esc_attr($GLOBALS['post_type']); ?>" />
<input type="hidden" name="post_type" value="<?php echo esc_attr($post->post_type); ?>" />
</div>
</div>