remove anonymous function to be compatible with PHP 5.2.4, the WordPress minimum