mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
<!--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:
@@ -80,7 +80,7 @@ function get_the_content($more_link_text = '(more...)', $stripteaser = 0, $more_
|
||||
$page = count($pages); // give them the highest numbered page that DOES exist
|
||||
|
||||
$content = $pages[$page-1];
|
||||
if ( preg_match('/<!--more(.+?)?-->/', $content, $matches) ) {
|
||||
if ( preg_match('/<!--more(.*?)?-->/', $content, $matches) ) {
|
||||
$content = explode($matches[0], $content, 2);
|
||||
if ( !empty($matches[1]) && !empty($more_link_text) )
|
||||
$more_link_text = strip_tags(wp_kses_no_null(trim($matches[1])));
|
||||
|
||||
Reference in New Issue
Block a user