Make WordPress Core

Changeset 13772


Ignore:
Timestamp:
03/20/2010 01:10:01 AM (15 years ago)
Author:
dd32
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post-template.php

    r13770 r13772  
    11911191        <input type="submit" class="button-secondary" value="<?php esc_attr_e( 'Compare Revisions' ); ?>" />
    11921192        <input type="hidden" name="action" value="diff" />
    1193         <input type="hidden" name="post_type" value="<?php echo esc_attr($GLOBALS['post_type']); ?>" />
     1193        <input type="hidden" name="post_type" value="<?php echo esc_attr($post->post_type); ?>" />
    11941194    </div>
    11951195</div>
Note: See TracChangeset for help on using the changeset viewer.