From f080ca7504ecca5b139d4d796d0e7432c0398036 Mon Sep 17 00:00:00 2001 From: Max <113095229+rankment@users.noreply.github.com> Date: Thu, 6 Oct 2022 21:35:13 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=88=86=E9=A1=B5=E4=B8=AD=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=9C=80=E5=90=8E=E4=B8=80=E9=A1=B5=E7=9A=84=E9=93=BE?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- functions.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/functions.php b/functions.php index e8e0f050..83cbe14e 100755 --- a/functions.php +++ b/functions.php @@ -340,7 +340,10 @@ function pk_paging($pnum = 2) } } } - if ($paged < $max_page - $pnum - 1) echo "
  • ...
  • "; + if ($paged < $max_page - $pnum - 1) { + echo "
  • ...
  • "; + page_link($max_page); + } echo '
  • '; next_posts_link('»'); echo '
  • '; From 840363ee987495fc1446ad8b635ea47f39813c5e Mon Sep 17 00:00:00 2001 From: Max <113095229+rankment@users.noreply.github.com> Date: Fri, 7 Oct 2022 09:52:14 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug:=20=E7=BB=99=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E5=8A=A0=E4=B8=8Aalt/title?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit title,alt 内容需要双引号 --- functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions.php b/functions.php index 83cbe14e..bc711434 100755 --- a/functions.php +++ b/functions.php @@ -448,8 +448,8 @@ function content_img_add_alt_title($content) preg_match_all('//', $content, $images); if (!is_null($images)) { foreach ($images[1] as $index => $value) { - $new_img = str_replace('