From 14382c3d845c719ee1c71f6120339cc080726877 Mon Sep 17 00:00:00 2001 From: Yongzhi Huang Date: Wed, 1 Nov 2017 12:00:38 -0400 Subject: [PATCH] Fixed a bug in regex where it failed to match anything, this will make this plugin work for wp 4.8.2 --- includes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes.php b/includes.php index cba79d0..f4b8542 100644 --- a/includes.php +++ b/includes.php @@ -109,7 +109,7 @@ function hookpress_print_edit_webhook( $id ){ $fields = array(); foreach ($args as $arg) { - if (preg_match('[A-Z]+',$arg)) + if (preg_match('/[A-Z]+/',$arg)) $fields = array_merge($fields,hookpress_get_fields($arg)); else $fields[] = $arg;