Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for PHP 7 #26

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Fixed a bug where it causes fields to be empty on Wordpress 4.8.x
yongzhihuang authored Nov 7, 2017
commit 2b194d114bda749c92b66f146d66b731d7379f8d
2 changes: 1 addition & 1 deletion includes.php
Original file line number Diff line number Diff line change
@@ -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;