From 6fe63e4de4b7f51aebf43cd60bb987ed358e2b33 Mon Sep 17 00:00:00 2001 From: Jeff Date: Mon, 13 Nov 2023 04:55:28 -0600 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=BC=80=E6=94=BE=E9=A6=96=E6=9D=A1?= =?UTF-8?q?=E8=AF=84=E8=AE=BA=20Bark=20=E6=8E=A8=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- functions.php | 3 ++- style.css | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/functions.php b/functions.php index 6a8bd77..51a3937 100755 --- a/functions.php +++ b/functions.php @@ -144,7 +144,8 @@ function bark_push_msg( $comment_id ) { return false; } $comment = get_comment( $comment_id ); - if ( (int) $comment->comment_parent <= 0 || $comment->comment_approved === 'spam' ) { + // 如果是垃圾评论,则不推送 + if ( $comment->comment_approved === 'spam' ) { return false; } $token = trim( get_theme_mod( 'biji_setting_bark' ) ); diff --git a/style.css b/style.css index cb09a4f..cb933ba 100644 --- a/style.css +++ b/style.css @@ -5,7 +5,7 @@ Description: Simple, smooth, data-driven, responsive WordPress theme Author: Tokin Author URI: https://biji.io - Version: 0.7.37 + Version: 0.7.38 Tested up to: 5.9.3 Requires at least: 5.8 Requires PHP: 7.0