Changeset 3751
- Timestamp:
- 04/25/2006 08:46:19 AM (19 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions-formatting.php
r3717 r3751 405 405 1.0 First Version 406 406 */ 407 function balanceTags($text, $is_comment = 0 ) {408 409 if ( get_option('use_balanceTags') == 0)407 function balanceTags($text, $is_comment = 0, $force = false) { 408 409 if ( !$force && get_option('use_balanceTags') == 0 ) 410 410 return $text; 411 411 -
trunk/wp-includes/template-functions-post.php
r3750 r3751 84 84 $content = $pages[$page-1]; 85 85 $content = explode('<!--more-->', $content, 2); 86 if ( ( preg_match('/<!--noteaser-->/', $post->post_content) && ((!$multipage) || ($page==1))) )86 if ( (false !== strpos($post->post_content, '<!--noteaser-->') && ((!$multipage) || ($page==1))) ) 87 87 $stripteaser = 1; 88 88 $teaser = $content[0]; … … 94 94 $output .= '<a id="more-'.$id.'"></a>'.$content[1]; 95 95 else 96 $output .= ' <a href="'. get_permalink() . "#more-$id\">$more_link_text</a>";96 $output = balanceTags($output . ' <a href="'. get_permalink() . "#more-$id\">$more_link_text</a>"); 97 97 } 98 98 if ( $preview ) // preview fix for javascript bug with foreign languages
Note: See TracChangeset
for help on using the changeset viewer.