0

I cannot understand how update from deprecation this function:

function kses_bad_protocol_once($string, $allowed_protocols) {
    return preg_replace('/^((&[^;]*;|[\sA-Za-z0-9])*)'.
                          '(:|:|&#[Xx]3[Aa];)\s*/e',
                          'kses_bad_protocol_once2("\\1", $allowed_protocols)',
                          $string);
}

How I can pass to the function:

kses_bad_protocol_once2

the two parameter needed, converting this function with a pref_replace_callback one?

rai nalasa
  • 849
  • 1
  • 12
  • 32
Armeice
  • 31
  • 10
  • what is `kses_bad_protocol_once2` ? – RomanPerekhrest May 13 '16 at 08:50
  • Is another function... this function are writted by me and require 2 parameters. When the server was with PHP 5.2.6 this function work, but now the customer update the PHP server side with 5.5.14 version... – Armeice May 13 '16 at 08:57

0 Answers0