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') . ''; }