From d5842abd35d34d9b2d7c95a6ff2c575426b2b533 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 6 Jul 2007 21:04:37 +0000 Subject: [PATCH] don't show Publish button when editing a future post. Props tellyworth. git-svn-id: http://svn.automattic.com/wordpress/trunk@5786 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-form-advanced.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index a4a24e7917..28d4a151b7 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -165,7 +165,7 @@ if ( $authors && count( $authors ) > 1 ) : post_status || 0 == $post_ID) { +if ( !in_array( $post->post_status, array('publish', 'future') ) || 0 == $post_ID ) { ?>