Make WordPress Core

Ticket #32097: 32097.patch

File 32097.patch, 763 bytes (added by dlh, 9 years ago)
  • src/wp-admin/includes/meta-boxes.php

     
    3232<?php } elseif ( 'pending' == $post->post_status && $can_publish ) { ?>
    3333<input type="submit" name="save" id="save-post" value="<?php esc_attr_e('Save as Pending'); ?>" class="button" />
    3434<?php } ?>
     35
     36<?php
     37if ( $post_type_object->public
     38        || ( ! in_array( $post->post_status, array( 'publish', 'future', 'private' ) ) && ( 'pending' !== $post->post_status || $can_publish ) ) ) :
     39?>
    3540<span class="spinner"></span>
     41<?php endif; ?>
     42
    3643</div>
    3744<?php if ( $post_type_object->public ) : ?>
    3845<div id="preview-action">