Make WordPress Core


Ignore:
Timestamp:
07/29/2008 05:22:58 AM (16 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r8455 r8484  
    458458    case 'title':
    459459        ?>
    460         <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>
     460        <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>
    461461        <?php if ('private' == $page->post_status) _e(' &#8212; <strong>Private</strong>'); ?></td>
    462462        <?php
Note: See TracChangeset for help on using the changeset viewer.