Skip to content

Commit b33c174

Browse files
committed
fix: prevent TypeError in html_entity_decode with null values
- Add null coalescing operators (??) to handle null settings values - Fixes TypeError: html_entity_decode(): Argument #1 ($string) must be of type string, null given - Applied to notes_label and notes_placeholder settings across multiple methods - Ensures PHP 7.4-8.4 compatibility maintained
1 parent 15bedb0 commit b33c174

File tree

2 files changed

+580
-577
lines changed

2 files changed

+580
-577
lines changed

readme.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ Yes! We're offering a [custom plugin development](https://bracketspace.com/custo
7070

7171
== Changelog ==
7272

73+
= [Next] =
74+
* [Fixed] Added null coalescing operators to prevent PHP warnings when settings array keys don't exist.
75+
7376
= 1.8.0 =
7477
* [Changed] Removed local translation files in favor of GlotPress repository.
7578
* [Changed] Coding standards to PSR-12.

0 commit comments

Comments
 (0)