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

git-svn-id: https://develop.svn.wordpress.org/trunk@2822 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-08-30 04:07:12 +00:00
parent 4575c2a1ea
commit 61409382ad
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.
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;