Skip to content

Commit f88c1be

Browse files
committed
fixs php8.0 issues with submitting forms
1 parent a3d7a71 commit f88c1be

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

includes/admin/class-form-builder-assets.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public function __construct() {
1010
}
1111

1212
public function init_actions() {
13-
add_action( 'in_admin_header', [ $this, 'remove_admin_notices' ] );
13+
//add_action( 'in_admin_header', [ $this, 'remove_admin_notices' ] );
1414
add_action( 'admin_enqueue_scripts', [ $this, 'builder_enqueue_scripts' ], 2000 );
1515
add_action( 'admin_print_scripts', [ $this, 'builder_mixins_script' ] );
1616
add_action( 'admin_footer', [ $this, 'admin_footer_js_templates' ] );

includes/library/Emogrifier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ protected function process( DOMDocument $xmlDocument ) {
339339
// Also store a reference of nodes with existing inline styles so we don't overwrite them.
340340
$this->purgeVisitedNodes();
341341

342-
set_error_handler( [$this, 'handleXpathError'], E_WARNING );
342+
//set_error_handler( [$this, 'handleXpathError'], E_WARNING );
343343

344344
$nodesWithStyleAttributes = $xPath->query( '//*[@style]' );
345345

0 commit comments

Comments
 (0)