Suggested fixes for PHP 8
-
Using Collapsing Archives version 2.1.4 on a PHP 8 site, I’m getting PHP warnings. Managed to fix those with the following changes (deprecated functions)
In file collapsArchList.php line 298 replace
$title_text = wp_specialchars($text,1);
with:
$title_text = esc_html($text,1);In file collapsArchWidget.php line 44 replace
echo esc_attr($title) with echo attribute_escape($title);Hope that helps…
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Suggested fixes for PHP 8’ is closed to new replies.