From 927fdf4ddfc76745848358b0bc184c8153ab0fc5 Mon Sep 17 00:00:00 2001 From: Atsushi Hayashida Date: Mon, 29 Jul 2019 16:11:52 +0900 Subject: [PATCH] =?UTF-8?q?HTML=E5=90=8D=E3=81=AE=E3=83=95=E3=82=A9?= =?UTF-8?q?=E3=83=AB=E3=83=80=E3=81=A8=E6=8B=A1=E5=BC=B5=E5=AD=90=E3=81=AE?= =?UTF-8?q?=E3=81=AA=E3=81=84=E4=B8=AD=E8=BA=AB=E3=81=8C=E3=81=A7=E3=81=8D?= =?UTF-8?q?=E3=82=8B=E5=95=8F=E9=A1=8C=E3=81=AB=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- includes/class-static_press.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/class-static_press.php b/includes/class-static_press.php index 4f375ff..13314e6 100644 --- a/includes/class-static_press.php +++ b/includes/class-static_press.php @@ -727,6 +727,9 @@ private function single_url($url_type = 'single') { $permalink = get_permalink($post->ID); if (is_wp_error($permalink)) continue; + if (preg_match('/.*\.html\/.*/', $permalink, $m)) { + continue; + } $count = 1; if ( $splite = preg_split("##", $post->post_content) ) $count = count($splite);