Make WordPress Core


Ignore:
Timestamp:
04/25/2006 08:46:19 AM (20 years ago)
Author:
ryan
Message:

Div balance across more. Props skeltoac. fixes #2348

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/template-functions-post.php

    r3750 r3751  
    8484        $content = $pages[$page-1];
    8585        $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))) )
    8787                $stripteaser = 1;
    8888        $teaser = $content[0];
     
    9494                        $output .= '<a id="more-'.$id.'"></a>'.$content[1];
    9595                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>");
    9797        }
    9898        if ( $preview ) // preview fix for javascript bug with foreign languages
Note: See TracChangeset for help on using the changeset viewer.