From 74eecbbdb7b09e47870d9161c75336f30e49395c Mon Sep 17 00:00:00 2001 From: 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: http://svn.automattic.com/wordpress/trunk@20667 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 ) {
- +