Use get_edit_post_link() instead of hardcoding edit links. Props mdawaffe. fixes #7425

git-svn-id: http://svn.automattic.com/wordpress/trunk@8484 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2008-07-29 05:22:58 +00:00
parent a6ab2ece1d
commit c2e5bd7c3b
10 changed files with 23 additions and 16 deletions

View File

@@ -457,7 +457,7 @@ foreach ($posts_columns as $column_name=>$column_display_name) {
break;
case 'title':
?>
<td><strong><a class="row-title" href="page.php?action=edit&amp;post=<?php the_ID(); ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), $title)); ?>"><?php echo $pad; echo $title ?></a></strong>
<td><strong><a class="row-title" href="<?php echo get_edit_post_link( $page->ID ); ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), $title)); ?>"><?php echo $pad; echo $title ?></a></strong>
<?php if ('private' == $page->post_status) _e(' &#8212; <strong>Private</strong>'); ?></td>
<?php
break;