From 592178fa471a3dac1efb463f80d3e1ec14f6d0d8 Mon Sep 17 00:00:00 2001 From: yhira Date: Fri, 24 Nov 2023 22:01:13 +0900 Subject: [PATCH] =?UTF-8?q?=E5=90=84=E3=82=AB=E3=83=BC=E3=83=89=E3=81=AE?= =?UTF-8?q?=E3=82=B9=E3=83=8B=E3=83=9A=E3=83=83=E3=83=88=E6=9C=80=E5=A4=A7?= =?UTF-8?q?=E6=96=87=E5=AD=97=E6=95=B0=E3=81=AE=E7=B5=B1=E4=B8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/blogcard-out.php | 2 +- lib/shortcodes.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/blogcard-out.php b/lib/blogcard-out.php index 0b4ecbf17..005ec3ff2 100644 --- a/lib/blogcard-out.php +++ b/lib/blogcard-out.php @@ -239,7 +239,7 @@ function url_to_external_ogp_blogcard_tag($url){ $image = strip_tags($image); - $snippet = get_content_excerpt( $snippet, 160 ); + $snippet = get_content_excerpt($snippet, get_entry_card_excerpt_max_length()); $snippet = strip_tags($snippet); if ($user_snippet) { $snippet = $user_snippet; diff --git a/lib/shortcodes.php b/lib/shortcodes.php index d73fc48fb..61d587903 100644 --- a/lib/shortcodes.php +++ b/lib/shortcodes.php @@ -811,7 +811,7 @@ function get_rss_feed_tag( $atts ) { $feed_url = $item->get_permalink(); $feed_title = str_replace(["\r\n", "\r", "\n"], '', $item->get_title()); $feed_date = $item->get_date(get_site_date_format()); - $feed_text = mb_substr(strip_tags($item->get_content()), 0, 110); + $feed_text = get_content_excerpt(strip_tags($item->get_content()), get_entry_card_excerpt_max_length()); $feed_content .= ''; $feed_content .= '
';