From 91bf9d9baeb47f925edf137d28fc7f6c0ce57795 Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 8 Nov 2011 14:24:14 +0000 Subject: [PATCH] Don't show the view link for a future post unless the current user has the permissions to edit the post. Treat future posts as a preview case. Props ocean90. fixes #18894 git-svn-id: http://svn.automattic.com/wordpress/trunk@19213 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-posts-list-table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/class-wp-posts-list-table.php b/wp-admin/includes/class-wp-posts-list-table.php index 3f05758737..0ce1793538 100644 --- a/wp-admin/includes/class-wp-posts-list-table.php +++ b/wp-admin/includes/class-wp-posts-list-table.php @@ -553,7 +553,7 @@ class WP_Posts_List_Table extends WP_List_Table { $actions['delete'] = "" . __( 'Delete Permanently' ) . ""; } if ( $post_type_object->public ) { - if ( in_array( $post->post_status, array( 'pending', 'draft' ) ) ) { + if ( in_array( $post->post_status, array( 'pending', 'draft', 'future' ) ) ) { if ( $can_edit_post ) $actions['view'] = '' . __( 'Preview' ) . ''; } elseif ( 'trash' != $post->post_status ) {