diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index 45139aa9a9..d0b1ed579d 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -74,7 +74,7 @@ if ( isset($_GET['message']) ) { $notice = false; $form_extra = ''; -if ( 'auto-draft' == get_post_status( $post ) ) { +if ( 'auto-draft' == $post->post_status ) { if ( 'edit' == $action ) $post->post_title = ''; $autosave = false; @@ -340,7 +340,7 @@ if ( !empty($shortlink) ) if ( $post_type_object->public && ! ( 'pending' == get_post_status( $post ) && !current_user_can( $post_type_object->cap->publish_posts ) ) ) { ?>
@@ -368,7 +368,7 @@ if ( post_type_supports($post_type, 'editor') ) {