advert

Sunday, 1 January 2012

PHP Deprecated: Function split()

Apache logs were feeded with repating message:
PHP Deprecated:  Function split()

[Sun Jan 01 22:37:33 2012] [error] [client XX.194.XX.27] PHP Deprecated:  Function split() is deprecated in /web/public/.../wordpress/wp-content/themes/test/library/misc.php on line 19, referer: http://www....tk/wordpress/wp-admin/index.php

So upgraded PHP code:
 //     $words = split($sep, $str);
        $words = explode($sep, $str);
was the cure.

0 komentářů:

Post a comment