Fix for create_function deprecated in PHP 7.2
-
On line 652 of
rest-manager/includes/class-rest-manager-settings.php, it currently says:$callback = create_function('', 'echo "'.str_replace('"', '\"', $section['desc']).'";');create_functionis deprecated in PHP 7.2, so this line should be changed to:$callback = function() { echo str_replace('"', '\"', $section['desc']); };
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Fix for create_function deprecated in PHP 7.2’ is closed to new replies.