After installing PHP 7.2.10, the following error appeared:
PHP Error Backtrace Backtrace from warning 'Function create_function()
is deprecated' at /var/www/site/data/www/site/wp-config.php 110:
/var/www/site/data/www/site/wp-load.php 37 calling require_once()
/var/www/site/data/www/site/wp-admin/admin.php 31 calling require_once()
/var/www/site/data/www/site/wp-admin/post.php 12 calling require_once()
Total PHP Notices: 1 NOTICE: wp-config.php:110 - Function
create_function() is deprecated
How can this problem be solved?
Perhaps this is due to the fact that create_function deprecated in php 7.2
Here is what I found in my topic:
public function __construct() {
$this->print_meta_box_content_callback = create_function( '$post,$args', 'echo $args["args"];' );
}
How do I fix my code so that it does not conflict with 7.2.0?
Thanks for your help