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:
parent
4575c2a1ea
commit
61409382ad
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user