Only show comments and such if an individual post identifier is given.
git-svn-id: https://develop.svn.wordpress.org/trunk@553 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
65b06fc431
commit
c08d7f6082
|
@ -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