From e4f1a65d22ac763a7f3a6daa7175d0627cdadb26 Mon Sep 17 00:00:00 2001 From: licoy Date: Fri, 25 Oct 2024 15:46:46 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E4=BC=98=E5=8C=96=E7=99=BE?= =?UTF-8?q?=E5=BA=A6=E6=8F=90=E4=BA=A4=E5=93=8D=E5=BA=94=20#448?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc/fun/core.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/fun/core.php b/inc/fun/core.php index 5215cb6f..bf820614 100755 --- a/inc/fun/core.php +++ b/inc/fun/core.php @@ -488,7 +488,7 @@ function pk_baidu_submit($post_ID) $post_url = get_permalink($post_ID); $api_url = pk_get_option('baidu_submit_url'); $resp = wp_remote_post($api_url, array('body' => $post_url, 'headers' => 'Content-Type: text/plain')); - $res = json_decode($resp['body'], true); + $res = @json_decode($resp['body'], true); if (isset($res['success'])) { add_post_meta($post_ID, 'baidu_submit_url_status', 1, true); }