Ticket #3698: more.patch
| File more.patch, 1.1 KB (added by , 19 years ago) |
|---|
-
wp-includes/post-template.php
80 80 $page = count($pages); // give them the highest numbered page that DOES exist 81 81 82 82 $content = $pages[$page-1]; 83 if ( preg_match('/<!--more (.+?)?-->/', $content, $matches) ) {83 if ( preg_match('/<!--more\s*(?:\/)?-->/', $content, $matches) ) { 84 84 $content = explode($matches[0], $content, 2); 85 85 if ( !empty($matches[1]) && !empty($more_link_text) ) 86 86 $more_link_text = strip_tags(wp_kses_no_null(trim($matches[1]))); -
wp-includes/post.php
74 74 // get extended entry info (<!--more-->) 75 75 function get_extended($post) { 76 76 //Match the new style more links 77 if ( preg_match('/<!--more (.*?)-->/', $post, $matches) ) {77 if ( preg_match('/<!--more\s*(?:\/)?-->/', $post, $matches) ) { 78 78 list($main, $extended) = explode($matches[0], $post, 2); 79 79 } else { 80 80 $main = $post;