Fix for WordPress 3.6
-
I’ve tested WP Translit 0.3.9 with newest version of qTranslate (2.5.36 at the moment) and it’s working fine except for few php deprecated functions. I have fixed those in my local installation but it would be nice if author of this plugin would include this in new release as it is, really, just a minor fix and refers to newer versions of php language.
File wp-translit.php:
line 385
current:
$languages = split(',', $_SERVER["HTTP_ACCEPT_LANGUAGE"]);
fix:
$languages = explode(',', $_SERVER["HTTP_ACCEPT_LANGUAGE"]);
line 390
current:
if ( ereg("^(sr|mk|bg|ru)", $hlang) ) // && $hbr == 0 )
fix:
if ( preg_match("^(sr|mk|bg|ru)^", $hlang) ) // && $hbr == 0 )
line 469
current:
$_wp_wp_translit =& new wp_translit;
fix:
$_wp_wp_translit = new wp_translit;
That’s it. I hope this helps someone.
- The topic ‘Fix for WordPress 3.6’ is closed to new replies.