Make WordPress Core


Ignore:
Timestamp:
07/29/2008 05:22:58 AM (18 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/edit-attachment-rows.php

    r7831 r8484  
    5555    case 'media':
    5656        ?>
    57         <td><strong><a href="media.php?action=edit&amp;attachment_id=<?php the_ID(); ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), $att_title)); ?>"><?php echo $att_title; ?></a></strong><br />
     57        <td><strong><a href="<?php echo get_edit_post_link( $post->ID ); ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), $att_title)); ?>"><?php echo $att_title; ?></a></strong><br />
    5858        <?php echo strtoupper(preg_replace('/^.*?\.(\w+)$/', '$1', get_attached_file($post->ID))); ?>
    5959        <?php do_action('manage_media_media_column', $post->ID); ?>
     
    9898            }
    9999            ?>
    100             <td><strong><a href="post.php?action=edit&amp;post=<?php echo $post->post_parent; ?>"><?php echo $title ?></a></strong></td>
     100            <td><strong><a href="<?php echo get_edit_post_link( $post->post_parent ); ?>"><?php echo $title ?></a></strong></td>
    101101            <?php
    102102        } else {
Note: See TracChangeset for help on using the changeset viewer.