WordPress.org

Make WordPress Core

Ticket #22672: 22672.diff

File 22672.diff, 1.2 KB (added by nacin, 17 months ago)
  • wp-admin/edit-form-advanced.php

     
    7474 
    7575$notice = false; 
    7676$form_extra = ''; 
    77 if ( 'auto-draft' == get_post_status( $post ) ) { 
     77if ( 'auto-draft' == $post->post_status ) { 
    7878        if ( 'edit' == $action ) 
    7979                $post->post_title = ''; 
    8080        $autosave = false; 
     
    340340if ( $post_type_object->public && ! ( 'pending' == get_post_status( $post ) && !current_user_can( $post_type_object->cap->publish_posts ) ) ) { ?> 
    341341        <div id="edit-slug-box" class="hide-if-no-js"> 
    342342        <?php 
    343                 if ( $sample_permalink_html && 'auto-draft' != get_post_status( $post ) ) 
     343                if ( $sample_permalink_html && 'auto-draft' != $post->post_status ) 
    344344                        echo $sample_permalink_html; 
    345345        ?> 
    346346        </div> 
     
    368368        <td class="autosave-info"> 
    369369        <span class="autosave-message">&nbsp;</span> 
    370370<?php 
    371         if ( 'auto-draft' != get_post_status( $post ) ) { 
     371        if ( 'auto-draft' != $post->post_status ) { 
    372372                echo '<span id="last-edit">'; 
    373373                if ( $last_id = get_post_meta($post_ID, '_edit_last', true) ) { 
    374374                        $last_user = get_userdata($last_id);