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

git-svn-id: http://svn.automattic.com/wordpress/trunk@13772 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
dd32 2010-03-20 01:10:01 +00:00
parent 2c80016b6a
commit a7126004c7

View File

@ -1190,7 +1190,7 @@ function wp_list_post_revisions( $post_id = 0, $args = null ) {
<div class="alignleft"> <div class="alignleft">
<input type="submit" class="button-secondary" value="<?php esc_attr_e( 'Compare Revisions' ); ?>" /> <input type="submit" class="button-secondary" value="<?php esc_attr_e( 'Compare Revisions' ); ?>" />
<input type="hidden" name="action" value="diff" /> <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>
</div> </div>