I install a template on a foreign template on php 5.2.17-2 + mh1

uasort($BIERBAUM_GLOBALS['shortcodes'], function($a, $b) { return strcmp($a['title'], $b['title']); } 

When installed on php 5.5.36, the theme stops working. What is the error for this version?

  • Anonymous functions are introduced in php since version 5.3. - Visman
  • Thanks, can you send back? - Basil Jimmy
  • It only worked for me when installing php 5.5 - Basil Jimmy

1 answer 1

Unfortunately, the hosting had an outdated version of PHP 5.2, which Wordpress 4.0 could not work with according to the specification. https://codex.wordpress.org/%D0%9E%D1%81%D0%BE%D0%B1%D0%B5%D0%BD%D0%BD%D0%BE%D1%81%D1%82 % D0% B8_WordPress