Changeset 13104
- Timestamp:
- 02/13/2010 09:49:44 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r13097 r13104 1367 1367 if ( in_array($post->post_status, array('pending', 'draft')) ) { 1368 1368 if ( current_user_can($post_type_object->edit_cap, $post->ID) ) 1369 $actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . esc_attr(sprintf(__('Preview “%s”'), $title)) . '" rel="permalink">' . __('Preview') . '</a>';1369 $actions['view'] = '<a href="' . add_query_arg( get_permalink($post->ID), 'preview', 'true' ) . '" title="' . esc_attr(sprintf(__('Preview “%s”'), $title)) . '" rel="permalink">' . __('Preview') . '</a>'; 1370 1370 } elseif ( 'trash' != $post->post_status ) { 1371 1371 $actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . esc_attr(sprintf(__('View “%s”'), $title)) . '" rel="permalink">' . __('View') . '</a>'; … … 1589 1589 if ( in_array($post->post_status, array('pending', 'draft')) ) { 1590 1590 if ( current_user_can($post_type_object->edit_cap, $page->ID) ) 1591 $actions['view'] = '<a href="' . get_permalink($page->ID) . '" title="' . esc_attr(sprintf(__('Preview “%s”'), $title)) . '" rel="permalink">' . __('Preview') . '</a>';1591 $actions['view'] = '<a href="' . add_query_arg( get_permalink($page->ID), 'preview', 'true' ) . '" title="' . esc_attr(sprintf(__('Preview “%s”'), $title)) . '" rel="permalink">' . __('Preview') . '</a>'; 1592 1592 } elseif ( $post->post_status != 'trash' ) { 1593 1593 $actions['view'] = '<a href="' . get_permalink($page->ID) . '" title="' . esc_attr(sprintf(__('View “%s”'), $title)) . '" rel="permalink">' . __('View') . '</a>';
Note: See TracChangeset
for help on using the changeset viewer.