PHP: latest 7.2.*
I get few warnings regarding this deprecation:
Deprecated: Function create_function() is deprecated in …/wp-content/themes/exproduct/library/core/admin/index.php on line 39 Deprecated: Function create_function() is deprecated in …/wp-content/themes/exproduct/library/core/admin/index.php on line 40 Deprecated: Function create_function() is deprecated in …/wp-content/themes/exproduct/library/theme/woo.php on line 58
Deprecated: Function create_function() is deprecated in …/wp-content/themes/exproduct/library/core/admin/index.php on line 39
Deprecated: Function create_function() is deprecated in …/wp-content/themes/exproduct/library/core/admin/index.php on line 40
Deprecated: Function create_function() is deprecated in …/wp-content/themes/exproduct/library/theme/woo.php on line 58
Should be easy to fix using similar approach as here: https://wordpress.org/support/topic/php-7-2-create_function-deprecated/
In fact, I tried it and it works, so you might want to update your theme code accordingly, to:
add_filter(‘login_headerurl’, function () { return get_home_url(“/”); }); add_filter(‘login_headertitle’, function () { return false; }); add_filter( ‘loop_shop_per_page’, function ($cols) { return exproduct_get_option(‘exproduct_products_per_page’,’9′); }, 20 );
add_filter(‘login_headerurl’, function () { return get_home_url(“/”); });
add_filter(‘login_headertitle’, function () { return false; });
add_filter( ‘loop_shop_per_page’, function ($cols) { return exproduct_get_option(‘exproduct_products_per_page’,’9′); }, 20 );
Hi
Thank you we will check it out and prepare updates after the weekend .
Thanks
Updated. Thanks