Consider 'auto-draft' a draft in get_post_permalink(). prevents custom post types from getting borked GUIDs. see #13555

git-svn-id: http://svn.automattic.com/wordpress/trunk@14948 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-05-26 17:25:57 +00:00
parent b54183ae4c
commit dd9d57ec6a
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ function get_post_permalink( $id = 0, $leavename = false, $sample = false ) {
$slug = $post->post_name;
$draft_or_pending = 'draft' == $post->post_status || 'pending' == $post->post_status;
$draft_or_pending = in_array( $post->post_status, array( 'draft', 'pending', 'auto-draft' ) );
$post_type = get_post_type_object($post->post_type);