[wp-cvs] wordpress/wp-includes template-functions-post.php, 1.28,
1.29
Ryan Boren
rboren at users.sourceforge.net
Sun Aug 8 20:22:31 UTC 2004
Update of /cvsroot/cafelog/wordpress/wp-includes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13010
Modified Files:
template-functions-post.php
Log Message:
Gracefully handle multiple <!--more> tags. From Scott Reilly (coffee2code). Bug 0000113.
Index: template-functions-post.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-includes/template-functions-post.php,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** template-functions-post.php 11 Jun 2004 08:11:49 -0000 1.28
--- template-functions-post.php 8 Aug 2004 20:22:29 -0000 1.29
***************
*** 115,119 ****
}
$content = $pages[$page-1];
! $content = explode('<!--more-->', $content);
if ((preg_match('/<!--noteaser-->/', $post->post_content) && ((!$multipage) || ($page==1))))
$stripteaser = 1;
--- 115,119 ----
}
$content = $pages[$page-1];
! $content = explode('<!--more-->', $content, 2);
if ((preg_match('/<!--noteaser-->/', $post->post_content) && ((!$multipage) || ($page==1))))
$stripteaser = 1;
More information about the cvs
mailing list