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:
parent
320f04b47e
commit
f33ef28bfc
|
@ -306,7 +306,11 @@ if ($preview) {
|
||||||
$posts = $wpdb->get_results($request);
|
$posts = $wpdb->get_results($request);
|
||||||
|
|
||||||
if (1 == count($posts)) {
|
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
|
if ($s) { // If they were doing a search and got one result
|
||||||
header('Location: ' . get_permalink($posts[0]->ID));
|
header('Location: ' . get_permalink($posts[0]->ID));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue