From 036f4ba5f0e5f34cb94b13867ca75181e64d241b Mon Sep 17 00:00:00 2001 From: danpros Date: Fri, 23 Feb 2024 10:02:35 +0700 Subject: [PATCH] Update functions.php --- system/includes/functions.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/system/includes/functions.php b/system/includes/functions.php index d5e928d..442032f 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -513,7 +513,7 @@ function get_posts($posts, $page = 1, $perpage = 0) $more = explode('', $content); if (isset($more['1'])) { - $content = $more['0'] . '
' . "\n\n" . '' . $more['1']; + $content = $more['0'] . '
' . $more['1']; } // Get the contents and convert it to HTML @@ -2273,10 +2273,8 @@ function get_teaser($string, $url = null, $char = null) if ($teaserType === 'full') { $readMore = explode('', $string); if (isset($readMore['1'])) { - $patterns = array('
', '


'); - $string = str_replace($patterns, '', $readMore['0']); - $string = replace_href($string, 'a', 'footnote-ref', $url); - return $string . ''; + $string = replace_href($readMore['0'], 'a', 'footnote-ref', $url); + return $string . ''; } else { return $string; }