WordPress.org

Make WordPress Core

Ticket #113: 0000113-multiple-mores.diff

File 0000113-multiple-mores.diff, 556 bytes (added by tormodh, 16 years ago)
  • .php

    old new  
    114114        $file = $pagenow; //$_SERVER['PHP_SELF'];
    115115    }
    116116    $content = $pages[$page-1];
    117     $content = explode('<!--more-->', $content);
     117    $content = explode('<!--more-->', $content, 2);
    118118    if ((preg_match('/<!--noteaser-->/', $post->post_content) && ((!$multipage) || ($page==1))))
    119119        $stripteaser = 1;
    120120    $teaser = $content[0];
     
    314314        }
    315315}
    316316
    317 ?>
    318  No newline at end of file
     317?>