Fatal error in 8.1.3+ – footer_text():
-
Hi,
After updating Image Regenerate & Select Crop from 8.1.2 to 8.1.3 (also tested 8.1.4), the site crashes with a fatal error in wp-admin
- Plugin version:
- 8.1.2 → Works fine
- 8.1.3 → Fatal error
- 8.1.4 → Fatal error
It appears that the method:
public function footer_text(string $original)
does not handle null values. WordPress sometimes passes null to the admin_footer_text filter, which causes a TypeError in PHP 8+.
Suggested fix:
public function footer_text($original = ”) {
$original = (string) $original;
}or
public function footer_text(?string $original = ”)
This would restore PHP 8 compatibility.
Please advise.
Thank you. - Plugin version:
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
You must be logged in to reply to this topic.