mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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:
parent
2c80016b6a
commit
a7126004c7
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user