Skip to content

Commit 18b5005

Browse files
dmsnellwestonruter
andcommitted
Change error level to warning.
Co-authored-by: Weston Ruter <westonruter@git.wordpress.org>
1 parent 7b8aa53 commit 18b5005

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/wp-includes/html-api/class-wp-html-processor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@ public function serialize(): ?string {
11151115
wp_trigger_error(
11161116
__METHOD__,
11171117
"An HTML Processor which has already started processing cannot serialize it's contents. Serialize immediately after creating the instance.",
1118-
E_USER_ERROR
1118+
E_USER_WARNING
11191119
);
11201120
return null;
11211121
}
@@ -1223,7 +1223,7 @@ public function serialize(): ?string {
12231223
wp_trigger_error(
12241224
__METHOD__,
12251225
"Cannot serialize HTML Processor with parsing error: {$this->get_last_error()}.",
1226-
E_USER_ERROR
1226+
E_USER_WARNING
12271227
);
12281228
return null;
12291229
}

0 commit comments

Comments
 (0)