From 766c92361b49254ccfa0fb3fe446fa6aa9596f1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E9=A2=97=E7=BA=A2=E5=BF=83?= Date: Mon, 16 Dec 2019 18:07:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E9=A1=B5=E4=BA=8C=E7=BB=B4=E7=A0=81?= =?UTF-8?q?=E4=B8=8D=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 精简下代码 --- templates/site-card.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/templates/site-card.php b/templates/site-card.php index a1fb8d2..8d39e19 100644 --- a/templates/site-card.php +++ b/templates/site-card.php @@ -1,8 +1,7 @@ ID); - $qrurl = $link_url; + $qrurl = $link_url ?: get_permalink($post->ID); $is_html = ''; if(get_post_meta($post->ID, '_wechat_qr', true)){ $qrurl="";