From 60d01b1f961342e08f6a64b220f0da3714b4793a Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 15 Feb 2006 07:16:58 +0000 Subject: [PATCH] Use post_type not post_status. git-svn-id: http://svn.automattic.com/wordpress/trunk@3535 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment-functions.php | 2 +- wp-includes/functions.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/comment-functions.php b/wp-includes/comment-functions.php index bada2dc45a..efe4c95827 100644 --- a/wp-includes/comment-functions.php +++ b/wp-includes/comment-functions.php @@ -767,7 +767,7 @@ function is_local_attachment($url) { return true; if ( $id = url_to_postid($url) ) { $post = & get_post($id); - if ( 'attachment' == $post->post_status ) + if ( 'attachment' == $post->post_type ) return true; } return false; diff --git a/wp-includes/functions.php b/wp-includes/functions.php index beca14f664..855f35cf5c 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -555,6 +555,7 @@ function get_postdata($postid) { 'post_password' => $post->post_password, 'to_ping' => $post->to_ping, 'pinged' => $post->pinged, + 'post_type' => $post->post_type, 'post_name' => $post->post_name );