Make WordPress Core


Ignore:
Timestamp:
08/21/2008 05:52:03 AM (17 years ago)
Author:
markjaquith
Message:

Fix Edit Page link

File:
1 edited

Legend:

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

    r8692 r8699  
    469469        break;
    470470    case 'title':
     471        $edit_link = get_edit_post_link( $page->ID );
    471472        ?>
    472473        <td class="post-title"><strong><?php if ( current_user_can( 'edit_post', $page->ID ) ) { ?><a class="row-title" href="<?php echo $edit_link; ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), $title)); ?>"><?php echo $title ?></a><?php } else { echo $title; } ?></strong>
     
    478479
    479480        $actions = array();
    480         $actions['edit'] = '<a href="' . get_edit_post_link( $page->ID ) . '">' . __('Edit') . '</a>';
     481        $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit') . '</a>';
    481482        $actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("page.php?action=delete&amp;post=$page->ID", 'delete-post_' . $page->ID) . "' onclick=\"if ( confirm('" . js_escape(sprintf( ('draft' == $page->post_status) ? __("You are about to delete this draft '%s'\n  'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this page '%s'\n  'Cancel' to stop, 'OK' to delete."), $page->post_title )) . "') ) { return true;}return false;\">" . __('Delete') . "</a>";
    482483        $action_count = count($actions);
Note: See TracChangeset for help on using the changeset viewer.