From 181d5396814fe405c8f6d077a03c9c2699d63013 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 15 Feb 2006 07:16:58 +0000 Subject: [PATCH] Use post_type not post_status. git-svn-id: https://develop.svn.wordpress.org/trunk@3535 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 );