From 31d63a4c82357883f45bbe14bca78f725688f895 Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@5786 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 ) { ?>