From 61409382ad286591e3f9efddaba292657381b146 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 30 Aug 2005 04:07:12 +0000 Subject: [PATCH] url_to_postid() typo fix. Props markjaquith. fixes #1612 git-svn-id: https://develop.svn.wordpress.org/trunk@2822 602fd350-edb4-49c9-b593-d223f7449a82 --- 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;