Use is_single() and is_page() to determine if single and more should be set. http://mosquito.wordpress.org/view.php?id=969 Props: coffee2code

git-svn-id: http://svn.automattic.com/wordpress/trunk@2378 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2005-02-25 02:07:08 +00:00
parent 894c4cc880
commit 9da4d0f021
1 changed files with 2 additions and 2 deletions

View File

@ -174,7 +174,7 @@ $posts = query_posts($query_string);
// Extract updated query vars back into global namespace.
extract($wp_query->query_vars);
if (1 == count($posts)) {
if ( is_single() || is_page() ) {
$more = 1;
$single = 1;
}
@ -255,4 +255,4 @@ if ( defined('WP_USE_THEMES') && constant('WP_USE_THEMES') ) {
}
endif;
?>
?>