url_to_postid() typo fix. Props markjaquith. fixes #1612

git-svn-id: http://svn.automattic.com/wordpress/trunk@2822 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2005-08-30 04:07:12 +00:00
parent 344982b88c
commit a5dc15bfb4
1 changed files with 1 additions and 1 deletions

View File

@ -247,7 +247,7 @@ function url_to_postid($url) {
// Substitute the substring matches into the query. // Substitute the substring matches into the query.
eval("\$query = \"$query\";"); eval("\$query = \"$query\";");
$query = new WP_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; return $query->post->ID;
else else
return 0; return 0;