WordPress.org

Make WordPress Core

Ticket #20029: meta-boxes.php.diff

File meta-boxes.php.diff, 833 bytes (added by intoxstudio, 2 years ago)
  • wp-admin/includes/meta-boxes.php

     
    3535<img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" class="ajax-loading" id="draft-ajax-loading" alt="" /> 
    3636</div> 
    3737 
     38<?php 
     39if( $post_type_object->public ) { 
     40?> 
    3841<div id="preview-action"> 
    3942<?php 
    4043if ( 'publish' == $post->post_status ) { 
     
    5154<a class="preview button" href="<?php echo $preview_link; ?>" target="wp-preview" id="post-preview" tabindex="4"><?php echo $preview_button; ?></a> 
    5255<input type="hidden" name="wp-preview" id="wp-preview" value="" /> 
    5356</div> 
     57<?php 
     58} 
     59?> 
    5460 
    5561<div class="clear"></div> 
    5662</div><?php // /minor-publishing-actions ?>