Make WordPress Core


Ignore:
Timestamp:
04/09/2005 05:12:36 PM (20 years ago)
Author:
ryan
Message:

Remove old preview stuff. Allow draft posts to be displayed if the logged in user has edit permissions on the draft. Don't use cruft-free links for drafts since they might not have a slug. http://mosquito.wordpress.org/view.php?id=1220

File:
1 edited

Legend:

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

    r2499 r2523  
    4545    $permalink = get_settings('permalink_structure');
    4646
    47     if ('' != $permalink) {
     47    if ('' != $permalink && 'draft' != $post->post_status) {
    4848        $unixtime = strtotime($post->post_date);
    4949
Note: See TracChangeset for help on using the changeset viewer.