From e9ee18fa5af97efd3ca2b736fe4a7b0bc92735e3 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 1 May 2012 17:52:08 +0000 Subject: [PATCH] Don't show the 'Preview Changes' button for a non-public post type. props intoxstudio, see #17609. git-svn-id: https://develop.svn.wordpress.org/trunk@20667 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/meta-boxes.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/meta-boxes.php b/wp-admin/includes/meta-boxes.php index 796a084fb9..60f0a0cab7 100644 --- a/wp-admin/includes/meta-boxes.php +++ b/wp-admin/includes/meta-boxes.php @@ -34,7 +34,7 @@ function post_submit_meta_box($post) { - +public ) : ?>
post_status ) { @@ -51,7 +51,7 @@ if ( 'publish' == $post->post_status ) {
- +