mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-17 03:56:07 +00:00
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…
x
Reference in New Issue
Block a user