Changeset 3303 for trunk/wp-includes/template-functions-links.php
- Timestamp:
- 12/13/2005 07:19:56 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-functions-links.php
r3122 r3303 210 210 get_currentuserinfo(); 211 211 212 if ( !user_can_edit_post($user_ID, $post->ID) || is_attachment()) {212 if ( !user_can_edit_post($user_ID, $post->ID) ) { 213 213 return; 214 214 } 215 215 216 $location = get_settings('siteurl') . "/wp-admin/post.php?action=edit&post=$post->ID"; 216 if ( is_attachment() ) 217 $file = 'attachments'; 218 else 219 $file = 'post'; 220 221 $location = get_settings('siteurl') . "/wp-admin/{$file}.php?action=edit&post=$post->ID"; 217 222 echo $before . "<a href=\"$location\">$link</a>" . $after; 218 223 }
Note: See TracChangeset
for help on using the changeset viewer.