Only show comments and such if an individual post identifier is given.

git-svn-id: http://svn.automattic.com/wordpress/trunk@553 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2003-11-23 08:41:40 +00:00
parent 320f04b47e
commit f33ef28bfc
1 changed files with 5 additions and 1 deletions

View File

@ -306,7 +306,11 @@ if ($preview) {
$posts = $wpdb->get_results($request);
if (1 == count($posts)) {
$more = 1; $c = 1; $single = 1;
if ($id || $name) {
$more = 1;
$c = 1;
$single = 1;
}
if ($s) { // If they were doing a search and got one result
header('Location: ' . get_permalink($posts[0]->ID));
}