Make WordPress Core


Ignore:
Timestamp:
02/06/2010 10:07:57 AM (15 years ago)
Author:
markjaquith
Message:

Create post_status=auto-draft when creating a new post item. status changes to draft on first auto-save. now we always have a real post ID to work with. see #11889. fixes #11145. fixes #11990

File:
1 edited

Legend:

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

    r12979 r12987  
    112112    $permalink = get_option('permalink_structure');
    113113
    114     if ( '' != $permalink && !in_array($post->post_status, array('draft', 'pending')) ) {
     114    if ( '' != $permalink && !in_array($post->post_status, array('draft', 'pending', 'auto-draft')) ) {
    115115        $unixtime = strtotime($post->post_date);
    116116
Note: See TracChangeset for help on using the changeset viewer.