Ticket #11688: admin-template-preview_link_fix.patch
| File admin-template-preview_link_fix.patch, 984 bytes (added by , 17 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="' . get_permalink($post->ID) . '&preview=true" 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 }
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)