Make WordPress Core


Ignore:
Timestamp:
04/15/2006 12:59:40 AM (20 years ago)
Author:
ryan
Message:

Make sure permalinks for draft pages use query string style since the slug might not be set yet.

File:
1 edited

Legend:

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

    r3696 r3708  
    9393    $pagestruct = $wp_rewrite->get_page_permastruct();
    9494
    95     if ( '' != $pagestruct ) {
     95    if ( '' != $pagestruct && 'draft' != $post->post_status ) {
    9696        $link = get_page_uri($id);
    9797        $link = str_replace('%pagename%', $link, $pagestruct);
Note: See TracChangeset for help on using the changeset viewer.