Ticket #1612: url_to_postid-functions.php.diff
| File url_to_postid-functions.php.diff, 455 bytes (added by , 20 years ago) |
|---|
-
functions.php
247 247 // Substitute the substring matches into the query. 248 248 eval("\$query = \"$query\";"); 249 249 $query = new WP_Query($query); 250 if ( $query->is_ post|| $query->is_page )250 if ( $query->is_single || $query->is_page ) 251 251 return $query->post->ID; 252 252 else 253 253 return 0;