Changeset 8699 for trunk/wp-admin/includes/template.php
- Timestamp:
- 08/21/2008 05:52:03 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r8692 r8699 469 469 break; 470 470 case 'title': 471 $edit_link = get_edit_post_link( $page->ID ); 471 472 ?> 472 473 <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> … … 478 479 479 480 $actions = array(); 480 $actions['edit'] = '<a href="' . get_edit_post_link( $page->ID ). '">' . __('Edit') . '</a>';481 $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit') . '</a>'; 481 482 $actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("page.php?action=delete&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>"; 482 483 $action_count = count($actions);
Note: See TracChangeset
for help on using the changeset viewer.