Changeset 35 for trunk/bb-includes/template-functions.php
- Timestamp:
- 01/06/2005 01:38:55 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bb-includes/template-functions.php
r23 r35 327 327 328 328 function post_edit_link() { 329 global $current_user; 330 $how_old = bb_current_time() - get_post_timestamp(); 331 $limit = bb_get_option('edit_lock') * 60; 332 333 if ( ( $current_user->user_type < 1 ) && ( $how_old > $limit ) ) 334 return false; 335 329 336 if ( can_edit( get_post_author_id() ) ) 330 337 echo "<a href='" . bb_get_option('uri') . 'edit.php?id=' . get_post_id() . "'>Edit</a>";
Note: See TracChangeset
for help on using the changeset viewer.