From 2e72e93cbd43a6beedb7d4bb0cbdb816fc17b90a Mon Sep 17 00:00:00 2001 From: Django Doucet Date: Sat, 4 Feb 2023 15:37:09 -0700 Subject: [PATCH] remove extra curly bracket --- includes/rest/class-inbox.php | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/includes/rest/class-inbox.php b/includes/rest/class-inbox.php index 1ea1569..350b19a 100644 --- a/includes/rest/class-inbox.php +++ b/includes/rest/class-inbox.php @@ -508,19 +508,18 @@ class Inbox { return false; } - // disable flood control - \remove_action( 'check_comment_flood', 'check_comment_flood_db', 10 ); + // disable flood control + \remove_action( 'check_comment_flood', 'check_comment_flood_db', 10 ); - // do not require email for AP entries - \add_filter( 'pre_option_require_name_email', '__return_false' ); + // do not require email for AP entries + \add_filter( 'pre_option_require_name_email', '__return_false' ); - $state = \wp_new_comment( $commentdata, true ); + $state = \wp_new_comment( $commentdata, true ); - \remove_filter( 'pre_option_require_name_email', '__return_false' ); + \remove_filter( 'pre_option_require_name_email', '__return_false' ); - // re-add flood control - \add_action( 'check_comment_flood', 'check_comment_flood_db', 10, 4 ); - } + // re-add flood control + \add_action( 'check_comment_flood', 'check_comment_flood_db', 10, 4 ); } /**