Ticket #11688: 11688.diff
| File 11688.diff, 1003 bytes (added by , 16 years ago) |
|---|
-
wp-admin/includes/template.php
1458 1458 } 1459 1459 if ( in_array($post->post_status, array('pending', 'draft')) ) { 1460 1460 if ( current_user_can('edit_post', $post->ID) ) 1461 $actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . esc_attr(sprintf(__('Preview “%s”'), $title)) . '" rel="permalink">' . __('Preview') . '</a>';1461 $actions['view'] = '<a href="' . add_query_arg( 'preview', 'true', get_permalink($post->ID) ) . '" title="' . esc_attr(sprintf(__('Preview “%s”'), $title)) . '" rel="permalink">' . __('Preview') . '</a>'; 1462 1462 } elseif ( 'trash' != $post->post_status ) { 1463 1463 $actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . esc_attr(sprintf(__('View “%s”'), $title)) . '" rel="permalink">' . __('View') . '</a>'; 1464 1464 }