Changeset 4184 for trunk/wp-includes/post-template.php
- Timestamp:
- 09/11/2006 11:59:00 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/post-template.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post-template.php
r4180 r4184 83 83 if ( preg_match('/<!--more(.+?)?-->/', $content, $matches) ) { 84 84 $content = explode($matches[0], $content, 2); 85 if ( !empty($matches[1]) )85 if ( !empty($matches[1]) && !empty($more_link_text) ) 86 86 $more_link_text = strip_tags(wp_kses_no_null(trim($matches[1]))); 87 87 } else { … … 95 95 $output .= $teaser; 96 96 if ( count($content) > 1 ) { 97 if ( $more ) 97 if ( $more ) { 98 98 $output .= '<a id="more-'.$id.'"></a>'.$content[1]; 99 else 100 $output = balanceTags($output . ' <a href="'. get_permalink() . "#more-$id\">$more_link_text</a>"); 99 } else { 100 $output = balanceTags($output); 101 if ( ! empty($more_link_text) ) 102 $output .= ' <a href="'. get_permalink() . "#more-$id\">$more_link_text</a>"; 103 } 104 101 105 } 102 106 if ( $preview ) // preview fix for javascript bug with foreign languages
Note: See TracChangeset
for help on using the changeset viewer.