Function create_function() is deprecated in code example
Example 1: PHP Deprecated: Function create_function()
//From
create_function( '$caps', "return '$caps';" );
//To
function($caps) {return $caps;}
Example 2: Function create_function() is deprecated in
//change create_function to anonymous like so:
//change:
$square = create_function('$x', 'return pow($x,2);');
//to:
$square = function($x){
return pow($x,2);
};