Ticket #21894: fix-more-tag-599068.diff
| File fix-more-tag-599068.diff, 1.1 KB (added by , 14 years ago) |
|---|
-
wp-includes/post-template.php
188 188 $output = ''; 189 189 $hasTeaser = false; 190 190 191 // Only disable <!--more--> tag if we're displaying the is_single post itself 192 $show_full_content = $more; 193 if ( is_single() OR is_page() ) { 194 if ($post->ID != get_queried_object_id()) 195 $show_full_content = false; 196 } 197 191 198 // If post password required and it doesn't match the cookie. 192 199 if ( post_password_required() ) 193 200 return get_the_password_form(); … … 208 215 if ( (false !== strpos($post->post_content, '<!--noteaser-->') && ((!$multipage) || ($page==1))) ) 209 216 $stripteaser = true; 210 217 $teaser = $content[0]; 211 if ( $ more&& $stripteaser && $hasTeaser )218 if ( $show_full_content && $stripteaser && $hasTeaser ) 212 219 $teaser = ''; 213 220 $output .= $teaser; 214 221 if ( count($content) > 1 ) { 215 if ( $ more) {222 if ( $show_full_content ) { 216 223 $output .= '<span id="more-' . $post->ID . '"></span>' . $content[1]; 217 224 } else { 218 225 if ( ! empty($more_link_text) )
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)