WordPress.org

Make WordPress Core

Changeset 20667


Ignore:
Timestamp:
05/01/2012 05:52:08 PM (9 years ago)
Author:
nacin
Message:

Don't show the 'Preview Changes' button for a non-public post type. props intoxstudio, see #17609.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/meta-boxes.php

    r20346 r20667  
    3535<img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" class="ajax-loading" id="draft-ajax-loading" alt="" />
    3636</div>
    37 
     37<?php if ( $post_type_object->public ) : ?>
    3838<div id="preview-action">
    3939<?php
     
    5252<input type="hidden" name="wp-preview" id="wp-preview" value="" />
    5353</div>
    54 
     54<?php endif; // public post type ?>
    5555<div class="clear"></div>
    5656</div><?php // /minor-publishing-actions ?>
Note: See TracChangeset for help on using the changeset viewer.