From 07d5fab8d6fca118a777bb3465ef57cec1b5f94b Mon Sep 17 00:00:00 2001 From: nacin Date: Sat, 13 Feb 2010 09:49:44 +0000 Subject: [PATCH] Add ?preview=true to edit post rows when draft|pending. Props MMN-o, fixes #11688 git-svn-id: http://svn.automattic.com/wordpress/trunk@13104 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 2b8a264f0f..37a41ada7d 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -1366,7 +1366,7 @@ function _post_row($a_post, $pending_comments, $mode) { } if ( in_array($post->post_status, array('pending', 'draft')) ) { if ( current_user_can($post_type_object->edit_cap, $post->ID) ) - $actions['view'] = '' . __('Preview') . ''; + $actions['view'] = '' . __('Preview') . ''; } elseif ( 'trash' != $post->post_status ) { $actions['view'] = '' . __('View') . ''; } @@ -1588,7 +1588,7 @@ foreach ( $posts_columns as $column_name => $column_display_name ) { } if ( in_array($post->post_status, array('pending', 'draft')) ) { if ( current_user_can($post_type_object->edit_cap, $page->ID) ) - $actions['view'] = '' . __('Preview') . ''; + $actions['view'] = '' . __('Preview') . ''; } elseif ( $post->post_status != 'trash' ) { $actions['view'] = '' . __('View') . ''; }