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:
parent
26db844b28
commit
60d2b654ac
|
@ -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>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue