<!--more--> regex fixes. Props Nazgul. fixes #3698

git-svn-id: https://develop.svn.wordpress.org/trunk@5244 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
rob1n
2007-04-11 22:47:36 +00:00
parent 73feece365
commit f8680b6c3a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ function &get_children($args = '', $output = OBJECT) {
// get extended entry info (<!--more-->)
function get_extended($post) {
//Match the new style more links
if ( preg_match('/<!--more(.*?)-->/', $post, $matches) ) {
if ( preg_match('/<!--more(.*?)?-->/', $post, $matches) ) {
list($main, $extended) = explode($matches[0], $post, 2);
} else {
$main = $post;