From a5dc15bfb41b0c784ef1b2a6525a283790d2ecce Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 30 Aug 2005 04:07:12 +0000 Subject: [PATCH] url_to_postid() typo fix. Props markjaquith. fixes #1612 git-svn-id: http://svn.automattic.com/wordpress/trunk@2822 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 1346b8893d..08b2ddd63a 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -247,7 +247,7 @@ function url_to_postid($url) { // Substitute the substring matches into the query. eval("\$query = \"$query\";"); $query = new WP_Query($query); - if ( $query->is_post || $query->is_page ) + if ( $query->is_single || $query->is_page ) return $query->post->ID; else return 0;