Make WordPress Core

Ticket #30910: 30910.patch

File 30910.patch, 547 bytes (added by e.mazovetskiy, 10 years ago)

suggested patch

  • link-template.php

     
    253253
    254254        $slug = $post->post_name;
    255255
    256         $draft_or_pending = isset($post->post_status) && in_array( $post->post_status, array( 'draft', 'pending', 'auto-draft' ) );
     256        $draft_or_pending = isset($post->post_status) && in_array( $post->post_status, array( 'draft', 'pending', 'auto-draft', 'future' ) );
    257257
    258258        $post_type = get_post_type_object($post->post_type);
    259259