2023-01-20, 21:11:50
lines from 44 to 54 I replaced with this and it seems to work
but the use of classes for headers had to be abandoned, since such a warning appears
Code:
$allowargs = array(
'depth' => function($input) {return filter_var(intval($input), FILTER_VALIDATE_INT, array(1,6));},
'class' => function($input) {return filter_var($input, FILTER_UNSAFE_RAW, FILTER_FLAG_STRIP_LOW);},
'asc' => function($input) {return true;},
'abs' => function($input) {return true;},
'ul' => function($input) {return true;},
'ol' => function($input) {return true;},
'notoc' => function($input) {return true;},
'debug' => function($input) {return true;},
'demo' => function($input) {return true;},
);
Code:
Deprecated: preg_replace(): Passing null to parameter #2 ($replacement) of type array|string is deprecated in D:\OSPanel\domains\gsphp8.ia\plugins\sa_toc_anchors.php on line 71