Changeset 8484 for trunk/wp-admin/edit-post-rows.php
- Timestamp:
- 07/29/2008 05:22:58 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-post-rows.php
r7775 r8484 35 35 global $current_user; 36 36 $post_owner = ( $current_user->ID == $post->post_author ? 'self' : 'other' ); 37 $edit_link = get_edit_post_link( $post->ID ); 37 38 $title = get_the_title(); 38 39 if ( empty($title) ) … … 81 82 case 'title': 82 83 ?> 83 <td><strong><?php if ( current_user_can( 'edit_post', $post->ID ) ) { ?><a class="row-title" href=" post.php?action=edit&post=<?php the_ID(); ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), $title)); ?>"><?php echo $title ?></a><?php } else { echo $title; } ?></strong>84 <td><strong><?php if ( current_user_can( 'edit_post', $post->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> 84 85 <?php if ( !empty($post->post_password) ) { _e(' — <strong>Protected</strong>'); } elseif ('private' == $post->post_status) { _e(' — <strong>Private</strong>'); } ?></td> 85 86 <?php … … 174 175 case 'control_edit': 175 176 ?> 176 <td><?php if ( current_user_can('edit_post',$post->ID) ) { echo "<a href=' post.php?action=edit&post=$id' class='edit'>" . __('Edit') . "</a>"; } ?></td>177 <td><?php if ( current_user_can('edit_post',$post->ID) ) { echo "<a href='$edit_link' class='edit'>" . __('Edit') . "</a>"; } ?></td> 177 178 <?php 178 179 break;
Note: See TracChangeset
for help on using the changeset viewer.