• 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)
  • Thread Starter papijo

    (@papijo)

    2 more fixes!

    File collapsing-archives\options.txt line 149 replace:
    echo attribute_escape($key) with echo esc_attr($key)

    File collapsing-archives\processOptions.php line 34 replace:
    $title = attribute_escape($options[$number][‘title’]);
    with:
    $title = esc_attr($options[$number][‘title’]);

Viewing 1 replies (of 1 total)
  • The topic ‘Suggested fixes for PHP 8’ is closed to new replies.